You are here

function monitoring_sensor_manager in Monitoring 8

Same name and namespace in other branches
  1. 7 monitoring.module \monitoring_sensor_manager()

Returns an instance of the sensor manager.

Return value

\Drupal\monitoring\Sensor\SensorManager The sensor manager.

4 calls to monitoring_sensor_manager()
MonitoringSystemMemoryPluginTest::testSystemMemorySensorPlugin in tests/src/Kernel/MonitoringSystemMemoryPluginTest.php
Tests the system memory sensor plugin.
monitoring_demo_install in modules/demo/monitoring_demo.install
Implements hook_install().
monitoring_drush_disable in ./monitoring.drush.inc
Drush callback to disable a sensor.
monitoring_drush_enable in ./monitoring.drush.inc
Drush callback to enable a sensor.

File

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

Code

function monitoring_sensor_manager() {
  return \Drupal::service('monitoring.sensor_manager');
}