protected static function SensorRunner::getSensorCid in Monitoring 7
Same name and namespace in other branches
- 8 src/SensorRunner.php \Drupal\monitoring\SensorRunner::getSensorCid()
Gets sensor cache id.
Parameters
string $sensor_name:
Return value
string Cache id.
3 calls to SensorRunner::getSensorCid()
- SensorRunner::cacheResults in lib/
Drupal/ monitoring/ SensorRunner.php - Cache results if caching applies.
- SensorRunner::loadCache in lib/
Drupal/ monitoring/ SensorRunner.php - Loads available sensor results from cache.
- SensorRunner::resetCache in lib/
Drupal/ monitoring/ SensorRunner.php - Reset sensor result caches.
File
- lib/
Drupal/ monitoring/ SensorRunner.php, line 346 - Contains \Drupal\monitoring\SensorRunner.
Class
- SensorRunner
- Instantiate and run requested sensors.
Namespace
Drupal\monitoringCode
protected static function getSensorCid($sensor_name) {
return 'monitoring_sensor_result:' . $sensor_name;
}