You are here

public function SensorResult::isOk in Monitoring 8

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

Checks if sensor is in OK state.

Return value

boolean

Overrides SensorResultInterface::isOk

File

src/Result/SensorResult.php, line 452

Class

SensorResult
Generic container for the sensor result.

Namespace

Drupal\monitoring\Result

Code

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