class Monitoring in DRD Agent 8.3
Same name and namespace in other branches
- 4.0.x src/Agent/Remote/Monitoring.php \Drupal\drd_agent\Agent\Remote\Monitoring
Implements the Monitoring class.
Hierarchy
- class \Drupal\drd_agent\Agent\Remote\Base implements ContainerInjectionInterface, BaseInterface
- class \Drupal\drd_agent\Agent\Remote\Monitoring
Expanded class hierarchy of Monitoring
File
- src/
Agent/ Remote/ Monitoring.php, line 8
Namespace
Drupal\drd_agent\Agent\RemoteView source
class Monitoring extends Base {
/**
* {@inheritdoc}
*/
public function collect() : array {
$review = [];
if ($this->moduleHandler
->moduleExists('monitoring')) {
/* @var \Drupal\monitoring\Result\SensorResultInterface $result */
foreach (monitoring_sensor_run_multiple() as $result) {
$review[$result
->getSensorId()] = $result
->toArray();
$review[$result
->getSensorId()]['label'] = $result
->getSensorConfig()
->getLabel();
}
}
return $review;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Base:: |
protected | property | ||
Base:: |
protected | property | ||
Base:: |
protected | property | ||
Base:: |
protected | property | ||
Base:: |
protected | property | ||
Base:: |
protected | property | ||
Base:: |
protected | property | ||
Base:: |
public static | function |
Instantiates a new instance of this class. Overrides ContainerInjectionInterface:: |
|
Base:: |
public | function | Base constructor. | |
Monitoring:: |
public | function |
Collect the security review results. Overrides BaseInterface:: |