monitoring-8.x-1.x-dev/monitoring.api.php
monitoring.api.php
<?php
use Drupal\monitoring\Entity\SensorConfig;
/**
* @file
* Monitoring API documentation.
*/
/**
* Allows to alter sensor links on the sensor overview page.
*
* @param array $links
* Links to be altered.
* @param \Drupal\monitoring\Entity\SensorConfig $sensor_config
* Sensor config object of a sensor for which links are being altered.
*
* @see \Drupal\monitoring\Controller\SensorList::content()
*/
function hook_monitoring_sensor_links_alter(&$links, SensorConfig $sensor_config) {
}
/**
* Allows processing the result on each sensor run.
*
* @param \Drupal\monitoring\Result\SensorResultInterface[] $results
* The sensor results.
*/
function hook_monitoring_run_sensors(array $results) {
}
