You are here

protected function DatabaseAggregatorSensorPluginBase::getConditions in Monitoring 8

Gets conditions to be used in the select query.

Return value

array List of conditions where each condition is an associative array:

  • field: Name of the field to filter on. Configurable fields are supported using the field_name.column_name syntax.
  • value: The value to limit by, either an array or a scalar value.
  • operator: Any of the supported operators.
6 calls to DatabaseAggregatorSensorPluginBase::getConditions()
ContentEntityAggregatorSensorPlugin::getEntityQuery in src/Plugin/monitoring/SensorPlugin/ContentEntityAggregatorSensorPlugin.php
Builds the entity query for verbose output.
ContentEntityAggregatorSensorPlugin::getEntityQueryAggregate in src/Plugin/monitoring/SensorPlugin/ContentEntityAggregatorSensorPlugin.php
Builds the entity aggregate query.
DatabaseAggregatorSensorPlugin::getAggregateQuery in src/Plugin/monitoring/SensorPlugin/DatabaseAggregatorSensorPlugin.php
Builds simple aggregate query over one db table.
DatabaseAggregatorSensorPlugin::getHistoryQuery in src/Plugin/monitoring/SensorPlugin/DatabaseAggregatorSensorPlugin.php
Builds history query over one db table.
DatabaseAggregatorSensorPlugin::getOldestEntry in src/Plugin/monitoring/SensorPlugin/DatabaseAggregatorSensorPlugin.php
Get the timestamp of the oldest entry that fits owr conditions.

... See full list

File

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

Class

DatabaseAggregatorSensorPluginBase
Base class for database aggregator sensors.

Namespace

Drupal\monitoring\SensorPlugin

Code

protected function getConditions() {
  return $this->sensorConfig
    ->getSetting('conditions', array());
}