public function __construct()
 {
     parent::__construct();
     $this->setDefaultTarget('service');
     $this->setFields(array('cv_name' => 'Name of the custom variable', 'cv_value' => 'Value contained ba the variable'));
     $this->setApiMappingFields(array('cv_name' => 'SERVICE_CUSTOMVARIABLE_NAME', 'cv_value' => 'SERVICE_CUSTOMVARIABLE_VALUE'));
     $this->setType('IcingaDataTarget');
     $this->setDescription('Limit data access to customvariables');
 }
 /**
  * Constructor
  *
  * Just configure the object
  */
 public function __construct()
 {
     parent::__construct();
     $this->setDefaultTarget('value');
     $this->setFields(array('value' => 'The sql part service'));
     $this->setType('IcingaDataTarget');
     $this->setDescription('Limit data access to services');
     $this->setApiMappingFields(array('value' => 'SERVICE_NAME'));
     $this->ornull = true;
 }
 public function __construct()
 {
     parent::__construct();
     $this->setDefaultTarget('hostgroup');
     $this->setFields(array('hostgroup' => 'The sql part of a hostgroup name'));
     $this->setType('IcingaDataTarget');
     $this->setDescription('Limit data access to hostgroups');
     $this->setApiMappingFields(array('hostgroup' => 'HOSTGROUP_NAME'));
     $this->ornull = true;
     $this->ornullfield = '${HOST_OBJECT_ID}';
 }
 public function __construct()
 {
     parent::__construct();
     $this->setType('IcingaDataTarget');
     $this->setDescription('Limit data access to commands');
 }