-
Notifications
You must be signed in to change notification settings - Fork 7
/
downtimes.go
25 lines (22 loc) · 995 Bytes
/
downtimes.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package transit
// Downtime describes downtime schedule.
type Downtime struct {
EntityType string `json:"entityType"`
EntityName string `json:"entityName"`
HostName string `json:"hostName"`
ServiceDescription string `json:"serviceDescription,omitempty"`
ScheduledDowntimeDepth int `json:"scheduledDowntimeDepth"`
}
// Downtimes defines type used for ClearInDowntime API payload.
type Downtimes struct {
BizHostServiceInDowntimes []Downtime `json:"bizHostServiceInDowntimes"`
}
// DowntimesRequest defines type used for SetInDowntime API payload.
type DowntimesRequest struct {
HostNames []string `json:"hostNames"`
HostGroupNames []string `json:"hostGroupNames"`
ServiceDescriptions []string `json:"serviceDescriptions"`
ServiceGroupCategoryNames []string `json:"serviceGroupCategoryNames"`
SetHosts bool `json:"setHosts"`
SetServices bool `json:"setServices"`
}