protected function SensorResult::setResultData in Monitoring 8
Same name and namespace in other branches
- 7 lib/Drupal/monitoring/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 src/
Result/ SensorResult.php - Compiles added status messages sets the status.
- SensorResult::setExecutionTime in src/
Result/ SensorResult.php - Sets sensor execution time in ms.
- SensorResult::setExpectedValue in src/
Result/ SensorResult.php - Sets sensor expected value.
- SensorResult::setStatus in src/
Result/ SensorResult.php - Sets sensor status.
- SensorResult::setValue in src/
Result/ SensorResult.php - Sets sensor value.
File
- src/
Result/ SensorResult.php, line 106
Class
- SensorResult
- Generic container for the sensor result.
Namespace
Drupal\monitoring\ResultCode
protected function setResultData($key, $value) {
$this->data[$key] = $value;
$this->isCached = FALSE;
}