class SensorPlugin in Monitoring 8
Defines SensorPlugin annotation object for reference by SensorPlugin Plugins.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\monitoring\Annotation\SensorPlugin
Expanded class hierarchy of SensorPlugin
22 classes are annotated with SensorPlugin
- CommerceTurnoverSensorPlugin in src/
Plugin/ monitoring/ SensorPlugin/ CommerceTurnoverSensorPlugin.php - Monitors commerce order turnover stats.
- ConfigValueSensorPlugin in src/
Plugin/ monitoring/ SensorPlugin/ ConfigValueSensorPlugin.php - Generic sensor that checks for a configuration value.
- ContentEntityAggregatorSensorPlugin in src/
Plugin/ monitoring/ SensorPlugin/ ContentEntityAggregatorSensorPlugin.php - Content entity database aggregator.
- DatabaseAggregatorSensorPlugin in src/
Plugin/ monitoring/ SensorPlugin/ DatabaseAggregatorSensorPlugin.php - Database aggregator able to query a single db table.
- DatabaseDiskUsagePlugin in src/
Plugin/ monitoring/ SensorPlugin/ DatabaseDiskUsagePlugin.php - Monitors database disk usage.
File
- src/
Annotation/ SensorPlugin.php, line 17 - Contains \Drupal\monitoring\Annotation\SensorPlugin.
Namespace
Drupal\monitoring\AnnotationView source
class SensorPlugin extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* @ingroup plugin_translatable
*
* @var \Drupal\Core\Annotation\Translation
*/
public $label;
/**
* @ingroup plugin_translatable
*
* @var \Drupal\Core\Annotation\Translation (optional)
*/
public $description = '';
/**
* The provider of the annotated class.
*
* @var string
*/
public $provider;
/**
* Whether plugin instances can be created or not.
*
* @var boolean
*/
public $addable;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |
SensorPlugin:: |
public | property | Whether plugin instances can be created or not. | |
SensorPlugin:: |
public | property | ||
SensorPlugin:: |
public | property | The plugin ID. | |
SensorPlugin:: |
public | property | ||
SensorPlugin:: |
public | property | The provider of the annotated class. |