You are here

public function SensorResultInterface::getFormattedValue in Monitoring 8

Gets the sensor metric value formatted for UI output.

Parameters

mixed $value: Sensor result value.

Return value

mixed Whatever value the sensor is supposed to return.

1 method overrides SensorResultInterface::getFormattedValue()
SensorResult::getFormattedValue in src/Result/SensorResult.php
Formats the value to be human readable.

File

src/Result/SensorResultInterface.php, line 54
Contains \Drupal\monitoring\Result\SensorResultInterface.

Class

SensorResultInterface
Interface for a sensor result.

Namespace

Drupal\monitoring\Result

Code

public function getFormattedValue($value);