You are here

public function DatabaseDiskUsagePlugin::__construct in Monitoring 8

DatabaseDiskUsagePlugin constructor.

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_system: The state storage object.

\Drupal\Core\Database\Connection $database: The database connection to be used.

Overrides SensorPluginBase::__construct

File

src/Plugin/monitoring/SensorPlugin/DatabaseDiskUsagePlugin.php, line 53

Class

DatabaseDiskUsagePlugin
Monitors database disk usage.

Namespace

Drupal\monitoring\Plugin\monitoring\SensorPlugin

Code

public function __construct(SensorConfig $sensor_config, $plugin_id, $plugin_definition, StateInterface $state_system, Connection $database) {
  parent::__construct($sensor_config, $plugin_id, $plugin_definition);
  $this->state = $state_system;
  $this->database = $database;
}