You are here

public function SensorResultEntity::getMessage in Monitoring 8

Gets sensor status message.

Must not be called on an uncompiled result.

Return value

string Sensor status message.

Overrides SensorResultDataInterface::getMessage

File

src/Entity/SensorResultEntity.php, line 111
Contains \Drupal\monitoring\Entity\SensorResultEntity.

Class

SensorResultEntity
The monitoring_sensor_result entity class.

Namespace

Drupal\monitoring\Entity

Code

public function getMessage() {
  $this
    ->get('sensor_message')->value;
}