You are here

class SensorPlugin in Monitoring 8

Defines SensorPlugin annotation object for reference by SensorPlugin Plugins.

Hierarchy

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.

... See full list

File

src/Annotation/SensorPlugin.php, line 17
Contains \Drupal\monitoring\Annotation\SensorPlugin.

Namespace

Drupal\monitoring\Annotation
View 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

Namesort descending Modifiers Type Description Overrides
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object. 2
SensorPlugin::$addable public property Whether plugin instances can be created or not.
SensorPlugin::$description public property
SensorPlugin::$id public property The plugin ID.
SensorPlugin::$label public property
SensorPlugin::$provider public property The provider of the annotated class.