public function SensorResult::getValue in Monitoring 7
Same name and namespace in other branches
- 8 src/Result/SensorResult.php \Drupal\monitoring\Result\SensorResult::getValue()
Gets the sensor metric value.
Return value
mixed Whatever value the sensor is supposed to return.
Overrides SensorResultInterface::getValue
6 calls to SensorResult::getValue()
- SensorResult::assessComparison in lib/Drupal/ monitoring/ Result/ SensorResult.php 
- Performs comparison of expected and actual sensor values.
- SensorResult::assessThresholds in lib/Drupal/ monitoring/ Result/ SensorResult.php 
- Deal with thresholds.
- SensorResult::compile in lib/Drupal/ monitoring/ Result/ SensorResult.php 
- Compiles added status messages sets the status.
- SensorResult::getFormattedValue in lib/Drupal/ monitoring/ Result/ SensorResult.php 
- Formats the value to be human readable.
- SensorResult::toArray in lib/Drupal/ monitoring/ Result/ SensorResult.php 
- Returns sensor result data as array.
File
- lib/Drupal/ monitoring/ Result/ SensorResult.php, line 327 
- Contains \Drupal\monitoring\Result\SensorResult.
Class
- SensorResult
- Generic container for the sensor result.
Namespace
Drupal\monitoring\ResultCode
public function getValue() {
  return $this
    ->getResultData('sensor_value');
}