You are here

function Thresholds::__construct in Monitoring 7

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

Constructs a Thresholds object.

Parameters

\Drupal\monitoring\Sensor\SensorInfo $sensor_info: The SensorInfo instance.

File

lib/Drupal/monitoring/Sensor/Thresholds.php, line 38
Contains \Drupal\monitoring\Sensor\Thresholds.

Class

Thresholds
Determine status based on thresholds during sensor run.

Namespace

Drupal\monitoring\Sensor

Code

function __construct(SensorInfo $sensor_info) {
  $this->sensorInfo = $sensor_info;
}