You are here

public function DatabaseAggregatorSensorPlugin::getDefaultConfiguration in Monitoring 8

Default configuration for a sensor.

Return value

array An array of default configurations.

Overrides DatabaseAggregatorSensorPluginBase::getDefaultConfiguration

2 methods override DatabaseAggregatorSensorPlugin::getDefaultConfiguration()
Redirect404SensorPlugin::getDefaultConfiguration in src/Plugin/monitoring/SensorPlugin/Redirect404SensorPlugin.php
Default configuration for a sensor.
WatchdogAggregatorSensorPlugin::getDefaultConfiguration in src/Plugin/monitoring/SensorPlugin/WatchdogAggregatorSensorPlugin.php
Default configuration for a sensor.

File

src/Plugin/monitoring/SensorPlugin/DatabaseAggregatorSensorPlugin.php, line 84
Contains \Drupal\monitoring\Plugin\monitoring\SensorPlugin\DatabaseAggregatorSensorPlugin.

Class

DatabaseAggregatorSensorPlugin
Database aggregator able to query a single db table.

Namespace

Drupal\monitoring\Plugin\monitoring\SensorPlugin

Code

public function getDefaultConfiguration() {
  $default_config = parent::getDefaultConfiguration();
  $default_config['settings'] = [
    'history_status' => TRUE,
  ];
  return $default_config;
}