You are here

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\Entity

Code

public function getStatus() {
  return $this
    ->get('sensor_status')->value;
}