mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 01:04:12 +02:00
ServiceSet: add CLI command, fix key
This commit is contained in:
parent
b7018627a0
commit
f2f04c44e8
14
application/clicommands/ServicesetCommand.php
Normal file
14
application/clicommands/ServicesetCommand.php
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Icinga\Module\Director\Clicommands;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Manage Icinga Service Sets
|
||||||
|
*
|
||||||
|
* Use this command to show, create, modify or delete Icinga Service
|
||||||
|
* objects
|
||||||
|
*/
|
||||||
|
class ServicesetCommand extends ServiceCommand
|
||||||
|
{
|
||||||
|
protected $type = 'ServiceSet';
|
||||||
|
}
|
@ -78,6 +78,8 @@ class IcingaService extends IcingaObject
|
|||||||
|
|
||||||
protected $supportsApplyRules = true;
|
protected $supportsApplyRules = true;
|
||||||
|
|
||||||
|
protected $supportsSets = true;
|
||||||
|
|
||||||
protected $keyName = array('host_id', 'object_name');
|
protected $keyName = array('host_id', 'object_name');
|
||||||
|
|
||||||
protected $prioritizedProperties = array('host_id');
|
protected $prioritizedProperties = array('host_id');
|
||||||
|
@ -19,6 +19,8 @@ class IcingaServiceSet extends IcingaObject
|
|||||||
'description' => null,
|
'description' => null,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
protected $keyName = array('host_id', 'object_name');
|
||||||
|
|
||||||
protected $supportsCustomVars = true;
|
protected $supportsCustomVars = true;
|
||||||
|
|
||||||
protected $supportsApplyRules = true;
|
protected $supportsApplyRules = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user