You are here

public function WatchdogAggregatorSensorPlugin::getDefaultConfiguration in Monitoring 8

Default configuration for a sensor.

Return value

array An array of default configurations.

Overrides DatabaseAggregatorSensorPlugin::getDefaultConfiguration

File

src/Plugin/monitoring/SensorPlugin/WatchdogAggregatorSensorPlugin.php, line 75
Contains \Drupal\monitoring\Plugin\monitoring\SensorPlugin\WatchdogAggregatorSensorPlugin.

Class

WatchdogAggregatorSensorPlugin
Watchdog aggregator which handles replacement of variables in the message.

Namespace

Drupal\monitoring\Plugin\monitoring\SensorPlugin

Code

public function getDefaultConfiguration() {
  $default_config = array(
    'settings' => array(
      'table' => 'watchdog',
      'time_interval_field' => 'timestamp',
    ),
  );
  return $default_config;
}