mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
IcingaConfigFile: count apply objects...
...still no statistics persistence to db
This commit is contained in:
parent
c205d9f80d
commit
c3889ee5d8
@ -19,6 +19,8 @@ class IcingaConfigFile
|
|||||||
|
|
||||||
protected $cntTemplate = 0;
|
protected $cntTemplate = 0;
|
||||||
|
|
||||||
|
protected $cntApply = 0;
|
||||||
|
|
||||||
public function prepend($content)
|
public function prepend($content)
|
||||||
{
|
{
|
||||||
$this->content = $content . $this->content;
|
$this->content = $content . $this->content;
|
||||||
@ -103,6 +105,9 @@ class IcingaConfigFile
|
|||||||
case 'template':
|
case 'template':
|
||||||
$this->cntTemplate++;
|
$this->cntTemplate++;
|
||||||
break;
|
break;
|
||||||
|
case 'apply':
|
||||||
|
$this->cntApply++;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user