dist/monitor-all.js
function(attrs, callback) {
      var t = this,
          writableAttributes = t.get('writableAttributes') || [];

      // Validate the attributes are writable
      if (writableAttributes !== '*') {
        for (var attrName in attrs) {
          if (writableAttributes.indexOf(attrName) < 0) {
            return callback({code:'NOT_WRITABLE', msg: 'Attribute not writable: ' + attrName});
          }
        }
      }

      // Set the data
      var error = null;
      if (!t.set(attrs)) {
        error = {code:'VALIDATION_ERROR', msg:'Data set failed validation'};
        log.warn('set_control', error);
      }
      return callback(error);
    }
function(attrs, callback) {
      var t = this,
          writableAttributes = t.get('writableAttributes') || [];

      // Validate the attributes are writable
      if (writableAttributes !== '*') {
        for (var attrName in attrs) {
          if (writableAttributes.indexOf(attrName) < 0) {
            return callback({code:'NOT_WRITABLE', msg: 'Attribute not writable: ' + attrName});
          }
        }
      }

      // Set the data
      var error = null;
      if (!t.set(attrs)) {
        error = {code:'VALIDATION_ERROR', msg:'Data set failed validation'};
        log.warn('set_control', error);
      }
      return callback(error);
    }
function ( attrs , callback ) { var t = this , writableAttributes = t . get ( 'writableAttributes' ) || [ ] ; // Validate the attributes are writable if ( writableAttributes !== '*' ) { for ( var attrName in attrs ) { if ( writableAttributes . indexOf ( attrName ) < 0 ) { return callback ( { code : 'NOT_WRITABLE' , msg : 'Attribute not writable: ' + attrName } ) ; } } } // Set the data var error = null ; if ( ! t . set ( attrs ) ) { error = { code : 'VALIDATION_ERROR' , msg : 'Data set failed validation' } ; log . warn ( 'set_control' , error ) ; } return callback ( error ) ; }
Remotely set a probe attribute.

This allows setting probe attributes that are listed in writableAttributes.
It can be overwritten in derived Probe classes for greater control.

@method set_control
@param attrs {Object} Name/Value attributes to set.  All must be writable.
@param callback {Function(error)} Called when the attributes are set or error
Remotely set a probe attribute .