You are here

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

Class

SystemLoadSensorPlugin
Monitors system load time average.

Namespace

Drupal\monitoring\Plugin\monitoring\SensorPlugin

Code

public function getDefaultConfiguration() {
  return [
    'value_label' => '% Average',
    'caching_time' => 0,
    'value_type' => 'number',
    'thresholds' => [
      'type' => 'exceeds',
      'warning' => 80,
      'critical' => 100,
    ],
    'settings' => [
      'average_monitored' => '1',
    ],
  ];
}