You are here

public function SensorResultInterface::getPreviousResult in Monitoring 8

Gets the previous sensor result.

Return value

\Drupal\monitoring\Entity\SensorResultDataInterface|null A SensorResultEntity representing the previous sensor result. NULL if there is no previous result.

1 method overrides SensorResultInterface::getPreviousResult()
SensorResult::getPreviousResult in src/Result/SensorResult.php
Gets the previous sensor result.

File

src/Result/SensorResultInterface.php, line 217
Contains \Drupal\monitoring\Result\SensorResultInterface.

Class

SensorResultInterface
Interface for a sensor result.

Namespace

Drupal\monitoring\Result

Code

public function getPreviousResult();