-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
constants.go
64 lines (45 loc) · 1.74 KB
/
constants.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
package uptimerobot
// TypeHTTP represents an HTTP monitor.
const TypeHTTP = 1
// TypeKeyword represents a keyword monitor.
const TypeKeyword = 2
// TypePing represents a ping monitor.
const TypePing = 3
// TypePort represents a port monitor.
const TypePort = 4
// SubTypeHTTP represents an HTTP monitor subtype.
const SubTypeHTTP = 1
// SubTypeHTTPS represents an HTTPS monitor subtype.
const SubTypeHTTPS = 2
// SubTypeFTP represents an FTP monitor subtype.
const SubTypeFTP = 3
// SubTypeSMTP represents an SMTP monitor subtype.
const SubTypeSMTP = 4
// SubTypePOP3 represents a POP3 monitor subtype.
const SubTypePOP3 = 5
// SubTypeIMAP represents an IMAP monitor subtype.
const SubTypeIMAP = 6
// SubTypeCustomPort represents a custom port monitor subtype.
const SubTypeCustomPort = 99
// KeywordExists represents a keyword check which is critical if the keyword is
// found.
const KeywordExists = 1
// KeywordNotExists represents a keyword check which is critical if the keyword
// is not found.
const KeywordNotExists = 2
// StatusPaused is the status value which sets a monitor to paused status when
// calling EditMonitor.
const StatusPaused = 0
// StatusResumed is the status value which sets a monitor to resumed (unpaused)
// status when calling EditMonitor.
const StatusResumed = 1
// StatusUnknown is the status value indicating that the monitor status is
// currently unknown.
const StatusUnknown = 1
// StatusUp is the status value indicating that the monitor is currently up.
const StatusUp = 2
// StatusMaybeDown is the status value indicating that the monitor may be down,
// but this has not yet been confirmed.
const StatusMaybeDown = 8
// StatusDown is the status value indicating that the monitor is currently down.
const StatusDown = 9