You are here

public function SolrDiskUsageSensorPlugin::__construct in Monitoring 8

Instantiates a sensor object.

Parameters

\Drupal\monitoring\Entity\SensorConfig $sensor_config: Sensor config object.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\State\StateInterface $state: The state service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

Overrides SensorPluginBase::__construct

File

src/Plugin/monitoring/SensorPlugin/SolrDiskUsageSensorPlugin.php, line 62

Class

SolrDiskUsageSensorPlugin
Monitors the Solr disk usage.

Namespace

Drupal\monitoring\Plugin\monitoring\SensorPlugin

Code

public function __construct(SensorConfig $sensor_config, $plugin_id, $plugin_definition, StateInterface $state, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($sensor_config, $plugin_id, $plugin_definition);
  $this->state = $state;
  $this->entityTypeManager = $entity_type_manager;
}