public function SensorResultEntity::getStatus in Monitoring 8
Gets sensor status.
Return value
string Sensor status.
Overrides SensorResultDataInterface::getStatus
File
- src/
Entity/ SensorResultEntity.php, line 89 - Contains \Drupal\monitoring\Entity\SensorResultEntity.
Class
- SensorResultEntity
- The monitoring_sensor_result entity class.
Namespace
Drupal\monitoring\EntityCode
public function getStatus() {
return $this
->get('sensor_status')->value;
}