You are here

public function SensorResult::setValue in Monitoring 8

Same name and namespace in other branches
  1. 7 lib/Drupal/monitoring/Result/SensorResult.php \Drupal\monitoring\Result\SensorResult::setValue()

Sets sensor value.

Parameters

mixed $value:

Overrides SensorResultInterface::setValue

File

src/Result/SensorResult.php, line 395

Class

SensorResult
Generic container for the sensor result.

Namespace

Drupal\monitoring\Result

Code

public function setValue($sensor_value) {
  $this
    ->setResultData('sensor_value', $sensor_value);
}