You are here

function Thresholds::__construct in Monitoring 8

Same name and namespace in other branches
  1. 7 lib/Drupal/monitoring/Sensor/Thresholds.php \Drupal\monitoring\Sensor\Thresholds::__construct()

Constructs a Thresholds object.

Parameters

\Drupal\monitoring\Entity\SensorConfig $sensor_config: The SensorConfig instance.

File

src/Sensor/Thresholds.php, line 40
Contains \Drupal\monitoring\Sensor\Thresholds.

Class

Thresholds
Determine status based on thresholds during sensor run.

Namespace

Drupal\monitoring\Sensor

Code

function __construct(SensorConfig $sensor_config) {
  $this->sensorConfig = $sensor_config;
}