-
Notifications
You must be signed in to change notification settings - Fork 1
/
command_models.go
90 lines (79 loc) · 2.7 KB
/
command_models.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
package op5
type AckHostProblem struct {
HostName string `json:"host_name"`
Sticky int `json:"sticky"`
Notify bool `json:"notify"`
Persistent bool `json:"persistent"`
Comment string `json:"comment"`
}
type AckServiceProblem struct {
HostName string `json:"host_name"`
ServiceDescription string `json:"service_description"`
Sticky int `json:"sticky"`
Notify bool `json:"notify"`
Persistent bool `json:"persistent"`
Comment string `json:"comment"`
}
type DelDowntimeByHostName struct {
HostName string `json:"host_name"`
ServiceDescription string `json:"service_description"`
DowntimeStartTime string `json:"downtime_start_time"`
Comment string `json:"comment"`
}
type ProcHostCheckResult struct {
HostName string `json:"host_name"`
StatusCode int `json:"status_code"`
PluginOutput string `json:"plugin_output"`
}
type ProcServiceCheckResult struct {
HostName string `json:"host_name"`
ServiceDescription string `json:"service_description"`
StatusCode int `json:"status_code"`
PluginOutput string `json:"plugin_output"`
}
type SchPropagateHostDowntime struct {
HostName string `json:"host_name"`
StartTime string `json:"start_time"`
EndTime string `json:"end_time"`
Fixed bool `json:"fixed"`
TriggerID int `json:"trigger_id"`
Duration int `json:"duration"`
Comment string `json:"comment"`
}
type SchPropagateTriggeredHostDowntime struct {
HostName string `json:"host_name"`
StartTime string `json:"start_time"`
EndTime string `json:"end_time"`
Fixed bool `json:"fixed"`
TriggerID int `json:"trigger_id"`
Duration int `json:"duration"`
Comment string `json:"comment"`
}
type SchHostCheck struct {
HostName string `json:"host_name"`
CheckTime string `json:"check_time"`
}
type SchHostDowntime struct {
HostName string `json:"host_name"`
StartTime string `json:"start_time"`
EndTime string `json:"end_time"`
Fixed bool `json:"fixed"`
TriggerID int `json:"trigger_id"`
Duration int `json:"duration"`
Comment string `json:"comment"`
}
type SchServiceCheck struct {
HostName string `json:"host_name"`
ServiceDescription string `json:"service_description"`
CheckTime string `json:"check_time"`
}
type SchServiceDowntime struct {
HostName string `json:"host_name"`
ServiceDescription string `json:"service_description"`
StartTime string `json:"start_time"`
EndTime string `json:"end_time"`
Fixed bool `json:"fixed"`
TriggerID int `json:"trigger_id"`
Duration int `json:"duration"`
Comment string `json:"comment"`
}