mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
IcingaNotification: base object
This commit is contained in:
parent
30868c16a1
commit
d3b9d2e9fe
45
library/Director/Objects/IcingaNotification.php
Normal file
45
library/Director/Objects/IcingaNotification.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
namespace Icinga\Module\Director\Objects;
|
||||
|
||||
class IcingaNotification extends IcingaObject
|
||||
{
|
||||
protected $table = 'icinga_notification';
|
||||
|
||||
protected $defaultProperties = array(
|
||||
'id' => null,
|
||||
'object_name' => null,
|
||||
'object_type' => null,
|
||||
'disabled' => 'n',
|
||||
'host_id' => null,
|
||||
'service_id' => null,
|
||||
// 'users' => null,
|
||||
// 'user_groups' => null,
|
||||
'times_begin' => null,
|
||||
'times_end' => null,
|
||||
'command' => null,
|
||||
'interval' => null,
|
||||
'period_id' => null,
|
||||
'zone_id' => null,
|
||||
);
|
||||
|
||||
protected $supportsGroups = true;
|
||||
|
||||
protected $supportsCustomVars = true;
|
||||
|
||||
protected $supportsImports = true;
|
||||
|
||||
protected $supportsApplyRules = true;
|
||||
|
||||
protected $supportsNotificationFilters = false; // -> true
|
||||
|
||||
protected $relations = array(
|
||||
'zone' => 'IcingaZone',
|
||||
'host' => 'IcingaHost',
|
||||
'command' => 'IcingaCommand',
|
||||
'period' => 'IcingaTimePeriod',
|
||||
'service' => 'IcingaService',
|
||||
);
|
||||
|
||||
// listOfRelations -> users, user_groups
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user