You are here

function monitoring_drush_sensor_config in Monitoring 8

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_sensor_config'
monitoring_drush_command in ./monitoring.drush.inc
Implements hook_drush_command().

File

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

Code

function monitoring_drush_sensor_config($sensor_name = NULL) {
  if (empty($sensor_name)) {
    monitoring_drush_sensor_config_all();
  }
  else {
    monitoring_drush_sensor_config_single($sensor_name);
  }
}