lib/monitors/microservice-monitor.js
function checkDependencies(dependencies, callback) {
  var checkedDependencies = {};

  async.each(dependencies, function (dependency, callback) {
    zoologist.getServiceDiscovery().queryForInstances(dependency, function(err, instances) {
      checkedDependencies[dependency] = ((instances) ? instances.length : 0);
      callback(err);
    });
  }, function(err) {
    // Ignore error and just return zero'd counts
    callback(null, checkedDependencies);
  });
}
function checkDependencies(dependencies, callback) {
  var checkedDependencies = {};

  async.each(dependencies, function (dependency, callback) {
    zoologist.getServiceDiscovery().queryForInstances(dependency, function(err, instances) {
      checkedDependencies[dependency] = ((instances) ? instances.length : 0);
      callback(err);
    });
  }, function(err) {
    // Ignore error and just return zero'd counts
    callback(null, checkedDependencies);
  });
}
function checkDependencies ( dependencies , callback ) { var checkedDependencies = { } ; async . each ( dependencies , function ( dependency , callback ) { zoologist . getServiceDiscovery ( ) . queryForInstances ( dependency , function ( err , instances ) { checkedDependencies [ dependency ] = ( ( instances ) ? instances . length : 0 ) ; callback ( err ) ; } ) ; } , function ( err ) { // Ignore error and just return zero'd counts callback ( null , checkedDependencies ) ; } ) ; }
Check the status of any dependencies of this service.
Check the status of any dependencies of this service .