Versions in this module Expand all Collapse all v0 v0.13.15 Jun 29, 2020 Changes in this version type Client + func (c *Client) GetMonitorWithLogs(ID int64) (Monitor, error) v0.13.4 Jun 29, 2020 Changes in this version + const KeywordExists + const KeywordNotExists + const StatusDown + const StatusMaybeDown + const StatusPaused + const StatusResumed + const StatusUnknown + const StatusUp + const SubTypeCustomPort + const SubTypeFTP + const SubTypeHTTP + const SubTypeHTTPS + const SubTypeIMAP + const SubTypePOP3 + const SubTypeSMTP + const TypeHTTP + const TypeKeyword + const TypePing + const TypePort + type Account struct + DownMonitors int + Email string + MonitorInterval int + MonitorLimit int + PausedMonitors int + UpMonitors int + func (a Account) String() string + type AlertContact struct + FriendlyName string + ID string + Status int + Type int + Value string + func (a AlertContact) String() string + type Client struct + Debug io.Writer + HTTPClient *http.Client + URL string + func New(apiKey string) Client + func (c *Client) AllAlertContacts() ([]AlertContact, error) + func (c *Client) AllMonitors() ([]Monitor, error) + func (c *Client) CreateMonitor(m Monitor) (int64, error) + func (c *Client) DeleteMonitor(ID int64) error + func (c *Client) EnsureMonitor(m Monitor) (int64, error) + func (c *Client) GetAccountDetails() (Account, error) + func (c *Client) GetMonitor(ID int64) (Monitor, error) + func (c *Client) MakeAPICall(verb string, r *Response, data []byte) error + func (c *Client) PauseMonitor(m Monitor) (Monitor, error) + func (c *Client) SearchMonitors(s string) ([]Monitor, error) + func (c *Client) StartMonitor(m Monitor) (Monitor, error) + type Error map[string]interface + type Log struct + Datetime int64 + Duration int + Reason LogReason + Type int + type LogReason struct + Code int + Detail string + type Monitor struct + AlertContacts []string + FriendlyName string + ID int64 + KeywordType int + KeywordValue string + Logs []Log + Port int + Status int + SubType int + Type int + URL string + func (m *Monitor) UnmarshalJSON(data []byte) error + func (m Monitor) FriendlyKeywordType() string + func (m Monitor) FriendlyStatus() string + func (m Monitor) FriendlySubType() string + func (m Monitor) FriendlyType() string + func (m Monitor) MarshalJSON() ([]byte, error) + func (m Monitor) String() string + type Pagination struct + Limit int + Offset int + Total int + type Response struct + Account Account + AlertContacts []AlertContact + Error Error + Monitor Monitor + Monitors []Monitor + Pagination Pagination + Stat string