public function SensorResult::isCritical in Monitoring 7
Same name and namespace in other branches
- 8 src/Result/SensorResult.php \Drupal\monitoring\Result\SensorResult::isCritical()
Checks if sensor is in CRITICAL state.
Return value
boolean
Overrides SensorResultInterface::isCritical
1 call to SensorResult::isCritical()
- SensorResult::compile in lib/
Drupal/ monitoring/ Result/ SensorResult.php - Compiles added status messages sets the status.
File
- lib/
Drupal/ monitoring/ Result/ SensorResult.php, line 398 - Contains \Drupal\monitoring\Result\SensorResult.
Class
- SensorResult
- Generic container for the sensor result.
Namespace
Drupal\monitoring\ResultCode
public function isCritical() {
return $this
->getStatus() == SensorResultInterface::STATUS_CRITICAL;
}