You are here

protected function SensorResult::getResultData in Monitoring 7

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

Gets result data.

Parameters

string $key: Data key.

Return value

mixed Stored data.

6 calls to SensorResult::getResultData()
SensorResult::getExecutionTime in lib/Drupal/monitoring/Result/SensorResult.php
Get sensor execution time in ms.
SensorResult::getExpectedValue in lib/Drupal/monitoring/Result/SensorResult.php
Gets the sensor expected value.
SensorResult::getMessage in lib/Drupal/monitoring/Result/SensorResult.php
Gets sensor status message.
SensorResult::getStatus in lib/Drupal/monitoring/Result/SensorResult.php
Gets sensor status.
SensorResult::getTimestamp in lib/Drupal/monitoring/Result/SensorResult.php
The result data timestamp.

... See full list

File

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

Class

SensorResult
Generic container for the sensor result.

Namespace

Drupal\monitoring\Result

Code

protected function getResultData($key) {
  return $this->data[$key];
}