/
uptime-responses.go
89 lines (80 loc) · 3.91 KB
/
uptime-responses.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
package uptime
type UptimeMonitorGetMonitorsResponse struct {
Count int `json:"count"`
Next *string `json:"next"`
Previous *string `json:"previous"`
Monitors []UptimeMonitorMonitor `json:"results"`
}
type UptimeMonitorPagination struct {
Offset int `json:"offset"`
Limit int `json:"limit"`
Total int `json:"total"`
}
type UptimeMonitorMonitor struct {
PK int `json:"pk"`
URL string `json:"url"`
Name string `json:"name"`
CachedRespTime float64 `json:"cached_response_time"`
CachedUptime float64 `json:"cached_uptime"`
ContactGroups []string `json:"contact_groups"`
CreatedAt string `json:"created_at"`
ModifiedAt string `json:"modified_at"`
Locations []string `json:"locations"`
Tags []string `json:"tags"`
CheckType string `json:"check_type"`
Escalations []UptimeMonitorEscalations `json:"escalations"`
Maintenance UptimeMonitorMaintenance `json:"maintenance"`
MonitoringServiceType string `json:"monitoring_service_type"`
IsPaused bool `json:"is_paused"`
StateIsUp bool `json:"state_is_up"`
MspScript string `json:"msp_script"`
MspDNSRecordType string `json:"msp_dns_record_type"`
MspIPVersion string `json:"msp_use_ip_version"`
MspSensitivity int `json:"msp_sensitivity"`
MspInterval int `json:"msp_interval"`
MspHeaders string `json:"msp_headers"`
MspNotes string `json:"msp_notes"`
MspEncryption string `json:"msp_encryption"`
MspExpectString string `json:"msp_expect_string"`
MspAddress string `json:"msp_address"`
MspProtocol string `json:"msp_protocol"`
MspDNSServer string `json:"msp_dns_server"`
MspSendString string `json:"msp_send_string"`
MspUsername string `json:"msp_username"`
MspExpectStringType string `json:"msp_expect_string_type"`
MspPassword string `json:"msp_password"`
MspThreshold int `json:"msp_threshold"`
MspIncludeGlobalMetrics bool `json:"msp_include_global_metrics"`
MspPort int `json:"msp_port"`
StatsURL string `json:"stats_url"`
AlertsURL string `json:"alerts_url"`
}
type UptimeMonitorMaintenance struct {
Timezone string `json:"timezone"`
State string `json:"state"`
Schedule []string `json:"schedule"`
}
type UptimeMonitorEscalations struct {
WaitTime int `json:"wait_time"`
ContactGroups []string `json:"contact_groups"`
}
type UptimeMonitorLogs struct {
Type int `json:"type"`
Datetime int `json:"datetime"`
Duration int `json:"duration"`
}
type UptimeMonitorMonitorResponse struct {
Errors bool `json:"errors"`
Details string `json:"details"`
Results UptimeMonitorMonitor `json:"results"`
}
type UptimeMonitorMonitorStatus struct {
ID int `json:"id"`
Status int `json:"status"`
}
type UptimeMonitorStatusMonitorResponse struct {
Stat string `json:"stat"`
Monitor struct {
ID int `json:"id"`
} `json:"monitor"`
}