You are here

function monitoring_drush_info in Monitoring 7

Drush callback to get available sensors info.

Shows either all sensors as a table or a specific one.

Parameters

string $sensor_name: Sensor name for which to print info.

1 string reference to 'monitoring_drush_info'
monitoring_drush_command in ./monitoring.drush.inc
Implements hook_drush_command().

File

./monitoring.drush.inc, line 134
Drush support for monitoring.

Code

function monitoring_drush_info($sensor_name = NULL) {
  if (empty($sensor_name)) {
    monitoring_drush_info_all();
  }
  else {
    monitoring_drush_info_single($sensor_name);
  }
}