-
Notifications
You must be signed in to change notification settings - Fork 106
/
uptime-responses.go
94 lines (82 loc) · 2.88 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
90
91
92
93
94
package uptimerobot
type UptimeMonitorGetMonitorsResponse struct {
Stat string `json:"stat"`
Pagination UptimeMonitorPagination `json:"pagination"`
Monitors []UptimeMonitorMonitor `json:"monitors"`
}
type UptimeMonitorPagination struct {
Offset int `json:"offset"`
Limit int `json:"limit"`
Total int `json:"total"`
}
type UptimeMonitorMonitor struct {
ID int `json:"id"`
FriendlyName string `json:"friendly_name"`
URL string `json:"url"`
Type int `json:"type"`
SubType string `json:"sub_type"`
KeywordType int `json:"keyword_type"`
KeywordValue string `json:"keyword_value"`
HTTPUsername string `json:"http_username"`
HTTPPassword string `json:"http_password"`
Port string `json:"port"`
Interval int `json:"interval"`
Status int `json:"status"`
CreateDatetime int `json:"create_datetime"`
Logs []UptimeMonitorLogs `json:"logs"`
AlertContacts []UptimeMonitorAlertContacts `json:"alert_contacts"`
}
type UptimeMonitorAlertContacts struct {
ID string `json:"id"`
Threshold int `json:"threshold"`
Recurrence int `json:"recurrence"`
}
type UptimeMonitorLogs struct {
Type int `json:"type"`
Datetime int `json:"datetime"`
Duration int `json:"duration"`
}
type UptimeMonitorNewMonitorResponse struct {
Stat string `json:"stat"`
Monitor UptimeMonitorMonitorStatus `json:"monitor"`
Error UptimeMonitorError `json:"error"`
}
type UptimeMonitorError struct {
Type string `json:"type"`
Message string `json:"message"`
}
type UptimeMonitorMonitorStatus struct {
ID int `json:"id"`
Status int `json:"status"`
}
type UptimeMonitorStatusMonitorResponse struct {
Stat string `json:"stat"`
Error UptimeMonitorError `json:"error"`
Monitor struct {
ID int `json:"id"`
} `json:"monitor"`
}
type UptimePublicStatusPage struct {
ID int `json:"id"`
FriendlyName string `json:"friendly_name"`
Monitors []int `json:"monitors"`
CustomDomain string `json:"custom_domain"`
Password string `json:"password"`
Sort int `json:"sort"`
Status int `json:"status"`
}
type UptimeStatusPageResponse struct {
Stat string `json:"stat"`
UptimePublicStatusPage struct {
ID int `json:"id"`
} `json:"psp"`
}
type UptimeStatusPagesResponse struct {
Stat string `json:"stat"`
Pagination struct {
Offset int `json:"offset"`
Limit int `json:"limit"`
Total int `json:"total"`
} `json:"pagination"`
StatusPages []UptimePublicStatusPage `json:"psps"`
}