You are here

protected function SensorResult::setResultData in Monitoring 7

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

Sets result data.

Parameters

string $key: Data key.

mixed $value: Data to set.

5 calls to SensorResult::setResultData()
SensorResult::compile in lib/Drupal/monitoring/Result/SensorResult.php
Compiles added status messages sets the status.
SensorResult::setExecutionTime in lib/Drupal/monitoring/Result/SensorResult.php
Sets sensor execution time in ms.
SensorResult::setExpectedValue in lib/Drupal/monitoring/Result/SensorResult.php
Sets sensor expected value.
SensorResult::setStatus in lib/Drupal/monitoring/Result/SensorResult.php
Sets sensor status.
SensorResult::setValue in lib/Drupal/monitoring/Result/SensorResult.php
Sets sensor value.

File

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

Class

SensorResult
Generic container for the sensor result.

Namespace

Drupal\monitoring\Result

Code

protected function setResultData($key, $value) {
  $this->data[$key] = $value;
  $this->isCached = FALSE;
}