mirror of
https://github.com/Icinga/icingaweb2-module-graphite.git
synced 2026-05-28 04:34:57 -04:00
GraphDatasource: allow to enable/disable single ones
This commit is contained in:
parent
fa379e0e32
commit
c75e75848b
1 changed files with 13 additions and 0 deletions
|
|
@ -42,6 +42,8 @@ class GraphDatasource
|
|||
|
||||
protected $stacked = false;
|
||||
|
||||
protected $enabled = true;
|
||||
|
||||
public function __construct($path)
|
||||
{
|
||||
$this->path = $path;
|
||||
|
|
@ -77,6 +79,17 @@ class GraphDatasource
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function isEnabled()
|
||||
{
|
||||
return $this->enabled;
|
||||
}
|
||||
|
||||
public function disable()
|
||||
{
|
||||
$this->enabled = false;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getName()
|
||||
{
|
||||
if ($this->alias !== null) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue