You are here

protected function DatabaseAggregatorSensorPlugin::getConditionsOperators in Monitoring 8

Provides list of operators for conditions.

Return value

array The operators supported.

1 call to DatabaseAggregatorSensorPlugin::getConditionsOperators()
DatabaseAggregatorSensorPlugin::buildConfigurationForm in src/Plugin/monitoring/SensorPlugin/DatabaseAggregatorSensorPlugin.php
Adds UI for variables table, conditions and keys.

File

src/Plugin/monitoring/SensorPlugin/DatabaseAggregatorSensorPlugin.php, line 569
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

protected function getConditionsOperators() {

  // See operators https://api.drupal.org/api/drupal/includes%21entity.inc/function/EntityFieldQuery%3A%3AaddFieldCondition/7
  return array(
    '=' => t('='),
    '!=' => t('!='),
    '<' => t('<'),
    '=<' => t('=<'),
    '>' => t('>'),
    '>=' => t('>='),
    'STARTS_WITH' => t('STARTS_WITH'),
    'CONTAINS' => t('CONTAINS'),
  );
}