You are here

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

Class

SystemMemorySensorPlugin
Monitors system memory.

Namespace

Drupal\monitoring\Plugin\monitoring\SensorPlugin

Code

public function getDefaultConfiguration() {
  $default_config = [
    'settings' => [
      'memory' => 'free',
      'value' => 'percentage',
    ],
  ];
  return $default_config;
}