public function SensorResult::getMessage in Monitoring 7
Same name and namespace in other branches
- 8 src/Result/SensorResult.php \Drupal\monitoring\Result\SensorResult::getMessage()
Gets sensor status message.
Must not be called on an uncompiled result.
Return value
string Sensor status message.
Overrides SensorResultInterface::getMessage
1 call to SensorResult::getMessage()
- SensorResult::toArray in lib/
Drupal/ monitoring/ Result/ SensorResult.php - Returns sensor result data as array.
File
- lib/
Drupal/ monitoring/ Result/ SensorResult.php, line 144 - Contains \Drupal\monitoring\Result\SensorResult.
Class
- SensorResult
- Generic container for the sensor result.
Namespace
Drupal\monitoring\ResultCode
public function getMessage() {
return $this
->getResultData('sensor_message');
}