You are here

public function SensorResult::isUnknown in Monitoring 7

Same name and namespace in other branches
  1. 8 src/Result/SensorResult.php \Drupal\monitoring\Result\SensorResult::isUnknown()

Checks if sensor is in UNKNOWN state.

Return value

boolean

Overrides SensorResultInterface::isUnknown

1 call to SensorResult::isUnknown()
SensorResult::compile in lib/Drupal/monitoring/Result/SensorResult.php
Compiles added status messages sets the status.

File

lib/Drupal/monitoring/Result/SensorResult.php, line 405
Contains \Drupal\monitoring\Result\SensorResult.

Class

SensorResult
Generic container for the sensor result.

Namespace

Drupal\monitoring\Result

Code

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