You are here

public function SensorResult::isUnknown in Monitoring 8

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

File

src/Result/SensorResult.php, line 445

Class

SensorResult
Generic container for the sensor result.

Namespace

Drupal\monitoring\Result

Code

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