You are here

protected function ValueComparisonSensorPluginBase::getExpectedValue in Monitoring 8

Gets the expected value.

Return value

mixed The expected value.

2 calls to ValueComparisonSensorPluginBase::getExpectedValue()
ValueComparisonSensorPluginBase::buildConfigurationForm in src/SensorPlugin/ValueComparisonSensorPluginBase.php
Adds expected value setting field into the sensor settings form.
ValueComparisonSensorPluginBase::runSensor in src/SensorPlugin/ValueComparisonSensorPluginBase.php
Runs the sensor, updating $sensor_result.

File

src/SensorPlugin/ValueComparisonSensorPluginBase.php, line 61
Contains \Drupal\monitoring\SensorPlugin\ValueComparisonSensorPluginBase

Class

ValueComparisonSensorPluginBase
Provides abstract functionality for a value comparison sensor.

Namespace

Drupal\monitoring\SensorPlugin

Code

protected function getExpectedValue() {
  return $this->sensorConfig
    ->getSetting('value');
}