ServiceSet: add CLI command, fix key

This commit is contained in:
Thomas Gelf 2016-10-12 07:31:00 +00:00
parent b7018627a0
commit f2f04c44e8
3 changed files with 18 additions and 0 deletions

View 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';
}

View File

@ -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');

View File

@ -19,6 +19,8 @@ class IcingaServiceSet extends IcingaObject
'description' => null,
);
protected $keyName = array('host_id', 'object_name');
protected $supportsCustomVars = true;
protected $supportsApplyRules = true;