You are here

function monitoring_sensor_info in Monitoring 7

Returns monitoring sensor info.

Return value

\Drupal\monitoring\Sensor\SensorInfo[] List of SensorInfo instances.

Throws

\Drupal\monitoring\Sensor\NonExistingSensorException In case a sensor name is provided, which does not exists.

See also

\Drupal\monitoring\Sensor\SensorManager

6 calls to monitoring_sensor_info()
MonitoringApiTest::testSensorInfoPrecedence in test/tests/monitoring.api.test
Test sensor info hook precedence.
MonitoringServicesTest::testSensorInfo in test/tests/monitoring.services.test
Test sensor info API calls.
monitoring_clear_missing_sensor_submit in ./monitoring.module
Submit callback to clear the disappeared sensors list.
monitoring_config_sensors_overview_form in ./monitoring.admin.inc
Sensors overview settings form.
monitoring_munin_multigraph_delete in modules/monitoring_munin/monitoring_munin.module
Deletes multigraph and remove from sensor settings.

... See full list

1 string reference to 'monitoring_sensor_info'
SensorManager::loadSensorInfo in lib/Drupal/monitoring/Sensor/SensorManager.php
Loads sensor info from hooks.

File

./monitoring.module, line 38
Monitoring bootstrap file.

Code

function monitoring_sensor_info() {
  return monitoring_sensor_manager()
    ->getSensorInfo();
}