You are here

public function SensorResult::isCritical in Monitoring 8

Same name and namespace in other branches
  1. 7 lib/Drupal/monitoring/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 src/Result/SensorResult.php
Compiles added status messages sets the status.

File

src/Result/SensorResult.php, line 438

Class

SensorResult
Generic container for the sensor result.

Namespace

Drupal\monitoring\Result

Code

public function isCritical() {
  return $this
    ->getStatus() == SensorResultInterface::STATUS_CRITICAL;
}