You are here

public function SensorInfo::getTimeIntervalValue in Monitoring 7

Gets time interval value.

Return value

int Number of seconds of the time interval. NULL in case the sensor does not define the time interval.

1 call to SensorInfo::getTimeIntervalValue()
SensorInfo::toArray in lib/Drupal/monitoring/Sensor/SensorInfo.php
Compiles sensor info values to an associative array.

File

lib/Drupal/monitoring/Sensor/SensorInfo.php, line 215
Contains \Drupal\monitoring\Sensor\SensorInfo.

Class

SensorInfo
Represents a sensor info as defined in hook_monitoring_sensor_info().

Namespace

Drupal\monitoring\Sensor

Code

public function getTimeIntervalValue() {
  return $this
    ->getSetting('time_interval_value', NULL);
}