You are here

public function SensorResultEntity::getTimestamp in Monitoring 8

The result data timestamp.

Return value

int UNIX timestamp.

Overrides SensorResultDataInterface::getTimestamp

File

src/Entity/SensorResultEntity.php, line 125
Contains \Drupal\monitoring\Entity\SensorResultEntity.

Class

SensorResultEntity
The monitoring_sensor_result entity class.

Namespace

Drupal\monitoring\Entity

Code

public function getTimestamp() {
  $this
    ->get('timestamp')->value;
}