public function SolrDiskUsageSensorPlugin::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/ SolrDiskUsageSensorPlugin.php, line 201
Class
- SolrDiskUsageSensorPlugin
- Monitors the Solr 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',
],
'settings' => [
'server' => '',
],
];
return $default_config;
}