public function SensorResultInterface::setExpectedValue in Monitoring 7
Same name and namespace in other branches
- 8 src/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 lib/
Drupal/ monitoring/ Result/ SensorResult.php - Sets sensor expected value.
File
- lib/
Drupal/ monitoring/ Result/ SensorResultInterface.php, line 166 - Contains \Drupal\monitoring\Result\SensorResultInterface.
Class
- SensorResultInterface
- Interface for a sensor result.
Namespace
Drupal\monitoring\ResultCode
public function setExpectedValue($value);