You are here

public function DatabaseAggregatorSensorPluginBase::getDefaultConfiguration in Monitoring 8

Default configuration for a sensor.

Return value

array An array of default configurations.

Overrides SensorPluginBase::getDefaultConfiguration

1 call to DatabaseAggregatorSensorPluginBase::getDefaultConfiguration()
DatabaseAggregatorSensorPlugin::getDefaultConfiguration in src/Plugin/monitoring/SensorPlugin/DatabaseAggregatorSensorPlugin.php
Default configuration for a sensor.
2 methods override DatabaseAggregatorSensorPluginBase::getDefaultConfiguration()
ContentEntityAggregatorSensorPlugin::getDefaultConfiguration in src/Plugin/monitoring/SensorPlugin/ContentEntityAggregatorSensorPlugin.php
Default configuration for a sensor.
DatabaseAggregatorSensorPlugin::getDefaultConfiguration in src/Plugin/monitoring/SensorPlugin/DatabaseAggregatorSensorPlugin.php
Default configuration for a sensor.

File

src/SensorPlugin/DatabaseAggregatorSensorPluginBase.php, line 176
Contains \Drupal\monitoring\SensorPlugin\DatabaseAggregatorSensorPluginBase.

Class

DatabaseAggregatorSensorPluginBase
Base class for database aggregator sensors.

Namespace

Drupal\monitoring\SensorPlugin

Code

public function getDefaultConfiguration() {
  $default_config = array(
    'value_type' => 'number',
  );
  return $default_config;
}