You are here

public function MultigraphInterface::addSensor in Monitoring 8

Includes a sensor.

Parameters

string $name: The machine name of the sensor that should be included by the multigraph.

string $label: (optional) Custom label for the sensor within the multigraph.

1 method overrides MultigraphInterface::addSensor()
Multigraph::addSensor in modules/multigraph/src/Entity/Multigraph.php
Includes a sensor.

File

modules/multigraph/src/MultigraphInterface.php, line 33
Contains \Drupal\monitoring_multigraph\MultigraphInterface.

Class

MultigraphInterface
Interface defining an aggregation of related sensors, called a multigraph.

Namespace

Drupal\monitoring_multigraph

Code

public function addSensor($name, $label = NULL);