-
Notifications
You must be signed in to change notification settings - Fork 2
/
check_params.go
42 lines (35 loc) · 1.08 KB
/
check_params.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
package gobearmon
type HttpCheckParams struct {
Url string `json:"url"`
Method string `json:"method"`
Body string `json:"body"`
Headers map[string]string `json:"headers"`
Timeout int `json:"timeout"`
Insecure bool `json:"insecure"`
Username string `json:"username"`
Password string `json:"password"`
ExpectStatus int `json:"expect_status"`
ExpectSubstring string `json:"expect_substring"`
}
type TcpCheckParams struct {
Address string `json:"address"`
Timeout int `json:"timeout"`
Payload string `json:"payload"`
ForceIP int `json:"force_ip"`
Expect string `json:"expect"`
}
type IcmpCheckParams struct {
Target string `json:"target"`
PacketLoss bool `json:"packetloss"`
ForceIP int `json:"force_ip"`
}
type SslExpireCheckParams struct {
Address string `json:"address"`
Days int `json:"days"`
}
type DnsCheckParams struct {
Server string `json:"server"` // optionally force to use this DNS server; form is address:port
Name string `json:"name"` // name to query
Type string `json:"type"` // DNS record type, e.g. A or CNAME
Expect string `json:"expect"` // expected response
}