public function SensorResultInterface::setExpectedValue in Monitoring 8
Same name and namespace in other branches
- 7 lib/Drupal/monitoring/Result/SensorResultInterface.php \Drupal\monitoring\Result\SensorResultInterface::setExpectedValue()
Sets sensor expected value.
Set to NULL if you want to prevent the default sensor result assessment. Use 0/FALSE values instead.
In case an interval is expected, do not set the expected value, thresholds are used instead.
The expected value is not considered when thresholds are configured.
Parameters
mixed $value:
1 method overrides SensorResultInterface::setExpectedValue()
- SensorResult::setExpectedValue in src/
Result/ SensorResult.php - Sets sensor expected value.
File
- src/
Result/ SensorResultInterface.php, line 114 - Contains \Drupal\monitoring\Result\SensorResultInterface.
Class
- SensorResultInterface
- Interface for a sensor result.
Namespace
Drupal\monitoring\ResultCode
public function setExpectedValue($value);