You are here

public function SensorConfigInterface::getThresholdValue in Monitoring 8

Gets the configured threshold value.

Parameters

string $key: Name of the threshold, for example warning or critical.

Return value

int|null The threshold value or NULL if not configured.

1 method overrides SensorConfigInterface::getThresholdValue()
SensorConfig::getThresholdValue in src/Entity/SensorConfig.php
Gets the configured threshold value.

File

src/SensorConfigInterface.php, line 125
Contains \Drupal\monitoring\SensorConfigInterface.

Class

SensorConfigInterface

Namespace

Drupal\monitoring

Code

public function getThresholdValue($key);