You are here

public function SensorResultEntity::getValue in Monitoring 8

Gets the sensor metric value.

Return value

mixed Whatever value the sensor is supposed to return.

Overrides SensorResultDataInterface::getValue

File

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

Class

SensorResultEntity
The monitoring_sensor_result entity class.

Namespace

Drupal\monitoring\Entity

Code

public function getValue() {
  $this
    ->get('sensor_value')->value;
}