public function SensorResult::getTimestamp in Monitoring 7
Same name and namespace in other branches
- 8 src/Result/SensorResult.php \Drupal\monitoring\Result\SensorResult::getTimestamp()
The result data timestamp.
Return value
int UNIX timestamp.
Overrides SensorResultInterface::getTimestamp
2 calls to SensorResult::getTimestamp()
- SensorResult::compile in lib/
Drupal/ monitoring/ Result/ SensorResult.php - Compiles added status messages sets the status.
- SensorResult::toArray in lib/
Drupal/ monitoring/ Result/ SensorResult.php - Returns sensor result data as array.
File
- lib/
Drupal/ monitoring/ Result/ SensorResult.php, line 453 - Contains \Drupal\monitoring\Result\SensorResult.
Class
- SensorResult
- Generic container for the sensor result.
Namespace
Drupal\monitoring\ResultCode
public function getTimestamp() {
return $this
->getResultData('timestamp');
}