- abstract type - http, tcp, icmp & dns monitor types - unmarshal from json into any monitor type
14 lines
272 B
Go
14 lines
272 B
Go
package cachet
|
|
|
|
type TCPMonitor struct {
|
|
// same as output from net.JoinHostPort
|
|
// defaults to parsed config from /etc/resolv.conf when empty
|
|
DNSServer string
|
|
|
|
// Will be converted to FQDN
|
|
Domain string
|
|
Type string
|
|
// expected answers (regex)
|
|
Expect []string
|
|
}
|