mirror of
https://github.com/Icinga/icingadb.git
synced 2026-05-28 04:35:54 -04:00
Add service state
This commit is contained in:
parent
4dc38c42e7
commit
7bc8bddc5a
2 changed files with 10 additions and 0 deletions
|
|
@ -15,6 +15,11 @@ type ServiceCustomvar struct {
|
|||
ServiceId types.Binary `json:"object_id"`
|
||||
}
|
||||
|
||||
type ServiceState struct {
|
||||
State `json:",inline"`
|
||||
ServiceId types.Binary `json:"object_id"`
|
||||
}
|
||||
|
||||
type Servicegroup struct {
|
||||
GroupMeta `json:",inline"`
|
||||
}
|
||||
|
|
@ -38,6 +43,10 @@ func NewServiceCustomvar() contracts.Entity {
|
|||
return &ServiceCustomvar{}
|
||||
}
|
||||
|
||||
func NewServiceState() contracts.Entity {
|
||||
return &ServiceState{}
|
||||
}
|
||||
|
||||
func NewServicegroup() contracts.Entity {
|
||||
return &Servicegroup{}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ var Factories = []contracts.EntityFactoryFunc{
|
|||
NewNotificationUsergroup,
|
||||
NewService,
|
||||
NewServiceCustomvar,
|
||||
NewServiceState,
|
||||
NewServicegroup,
|
||||
NewServicegroupCustomvar,
|
||||
NewServicegroupMember,
|
||||
|
|
|
|||
Loading…
Reference in a new issue