Add service state

This commit is contained in:
Noah Hilverling 2021-04-22 09:59:04 +02:00 committed by Eric Lippmann
parent 4dc38c42e7
commit 7bc8bddc5a
2 changed files with 10 additions and 0 deletions

View file

@ -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{}
}

View file

@ -37,6 +37,7 @@ var Factories = []contracts.EntityFactoryFunc{
NewNotificationUsergroup,
NewService,
NewServiceCustomvar,
NewServiceState,
NewServicegroup,
NewServicegroupCustomvar,
NewServicegroupMember,