mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 09:14:09 +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 $cntApply = 0;
|
||||
|
||||
public function prepend($content)
|
||||
{
|
||||
$this->content = $content . $this->content;
|
||||
@ -103,6 +105,9 @@ class IcingaConfigFile
|
||||
case 'template':
|
||||
$this->cntTemplate++;
|
||||
break;
|
||||
case 'apply':
|
||||
$this->cntApply++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user