You are here

public function DiskUsageSensorPlugin::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/DiskUsageSensorPlugin.php, line 92

Class

DiskUsageSensorPlugin
Monitors disk space usage.

Namespace

Drupal\monitoring\Plugin\monitoring\SensorPlugin

Code

public function getDefaultConfiguration() {
  return [
    'caching_time' => 86400,
    'value_type' => 'number',
    'category' => 'System',
    'value_label' => '%',
    'thresholds' => [
      'type' => 'exceeds',
      'warning' => 80,
      'critical' => 95,
    ],
    'settings' => [
      'directory' => 'public://',
    ],
  ];
}