You are here

public function SensorResult::getExpectedValue in Monitoring 7

Same name and namespace in other branches
  1. 8 src/Result/SensorResult.php \Drupal\monitoring\Result\SensorResult::getExpectedValue()

Gets the sensor expected value.

Return value

mixed Whatever value the sensor is supposed to return.

Overrides SensorResultInterface::getExpectedValue

3 calls to SensorResult::getExpectedValue()
SensorResult::assessComparison in lib/Drupal/monitoring/Result/SensorResult.php
Performs comparison of expected and actual sensor values.
SensorResult::compile in lib/Drupal/monitoring/Result/SensorResult.php
Compiles added status messages sets the status.
SensorResult::toArray in lib/Drupal/monitoring/Result/SensorResult.php
Returns sensor result data as array.

File

lib/Drupal/monitoring/Result/SensorResult.php, line 334
Contains \Drupal\monitoring\Result\SensorResult.

Class

SensorResult
Generic container for the sensor result.

Namespace

Drupal\monitoring\Result

Code

public function getExpectedValue() {
  return $this
    ->getResultData('sensor_expected_value');
}