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
Namespace
Drupal\monitoringCode
public function getThresholdValue($key);