ServiceSet: add CLI command, fix key
This commit is contained in:
parent
b7018627a0
commit
f2f04c44e8
|
@ -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 $supportsSets = true;
|
||||
|
||||
protected $keyName = array('host_id', 'object_name');
|
||||
|
||||
protected $prioritizedProperties = array('host_id');
|
||||
|
|
|
@ -19,6 +19,8 @@ class IcingaServiceSet extends IcingaObject
|
|||
'description' => null,
|
||||
);
|
||||
|
||||
protected $keyName = array('host_id', 'object_name');
|
||||
|
||||
protected $supportsCustomVars = true;
|
||||
|
||||
protected $supportsApplyRules = true;
|
||||
|
|
Loading…
Reference in New Issue