public function QueueSizeSensorPlugin::getDefaultConfiguration in Monitoring 8
Default configuration for a sensor.
Return value
array An array of default configurations.
Overrides SensorPluginBase::getDefaultConfiguration
File
- src/
Plugin/ monitoring/ SensorPlugin/ QueueSizeSensorPlugin.php, line 67 - Contains \Drupal\monitoring\Plugin\monitoring\SensorPlugin\QueueSizeSensorPlugin.
Class
- QueueSizeSensorPlugin
- Monitors number of items for a given core queue.
Namespace
Drupal\monitoring\Plugin\monitoring\SensorPluginCode
public function getDefaultConfiguration() {
$default_config = array(
'value_type' => 'number',
);
return $default_config;
}