You are here

public function SensorConfig::getTimeIntervalValue in Monitoring 8

Gets the time interval value.

Return value

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

Overrides SensorConfigInterface::getTimeIntervalValue

1 call to SensorConfig::getTimeIntervalValue()
SensorConfig::getDefinition in src/Entity/SensorConfig.php
Compiles sensor values to an associative array.

File

src/Entity/SensorConfig.php, line 270
Contains \Drupal\monitoring\Entity\SensorConfig.

Class

SensorConfig
Represents a sensor config entity class.

Namespace

Drupal\monitoring\Entity

Code

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