public function SensorPluginBase::getService in Monitoring 8
@todo: Replace with injection
Overrides SensorPluginInterface::getService
6 calls to SensorPluginBase::getService()
- DatabaseAggregatorSensorPlugin::getAggregateQuery in src/
Plugin/ monitoring/ SensorPlugin/ DatabaseAggregatorSensorPlugin.php - Builds simple aggregate query over one db table.
- DatabaseAggregatorSensorPlugin::getHistoryQuery in src/
Plugin/ monitoring/ SensorPlugin/ DatabaseAggregatorSensorPlugin.php - Builds history query over one db table.
- DatabaseAggregatorSensorPlugin::getOldestEntry in src/
Plugin/ monitoring/ SensorPlugin/ DatabaseAggregatorSensorPlugin.php - Get the timestamp of the oldest entry that fits owr conditions.
- DatabaseAggregatorSensorPlugin::getQuery in src/
Plugin/ monitoring/ SensorPlugin/ DatabaseAggregatorSensorPlugin.php - Builds the query for verbose output.
- DatabaseAggregatorSensorPlugin::validateConfigurationForm in src/
Plugin/ monitoring/ SensorPlugin/ DatabaseAggregatorSensorPlugin.php - Form validation handler.
File
- src/
SensorPlugin/ SensorPluginBase.php, line 98 - Contains \Drupal\monitoring\SensorPlugin\SensorPluginBase.
Class
- SensorPluginBase
- Abstract SensorPluginInterface implementation with common behaviour and will be extended by sensor plugins.
Namespace
Drupal\monitoring\SensorPluginCode
public function getService($id) {
return \Drupal::service($id);
}