You are here

public function SensorResult::isWarning in Monitoring 8

Same name and namespace in other branches
  1. 7 lib/Drupal/monitoring/Result/SensorResult.php \Drupal\monitoring\Result\SensorResult::isWarning()

Checks if sensor is in WARNING state.

Return value

boolean

Overrides SensorResultInterface::isWarning

File

src/Result/SensorResult.php, line 431

Class

SensorResult
Generic container for the sensor result.

Namespace

Drupal\monitoring\Result

Code

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