public function DatabaseDiskUsagePlugin::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/ DatabaseDiskUsagePlugin.php, line 249
Class
- DatabaseDiskUsagePlugin
- Monitors database disk usage.
Namespace
Drupal\monitoring\Plugin\monitoring\SensorPluginCode
public function getDefaultConfiguration() {
$default_config = [
'value_label' => 'mb',
'caching_time' => 86400,
'value_type' => 'number',
'thresholds' => [
'type' => 'exceeds',
],
];
return $default_config;
}