Versions in this module Expand all Collapse all v1 v1.1.0 Nov 16, 2021 Changes in this version + type APIError struct + Message string + StatusCode int + func (e APIError) Error() string + func (e APIError) RateLimited() bool + func (e APIError) Temporary() bool + type AlertContactMonitor struct + Id string + Recurrence int + Threshold int + Type int + Value string type ClientConfig + UserAgent *string type EditMonitorsParams + CustomHttpHeaders *string + CustomHttpStatuses *string type GetMonitorsParams + AlertContacts int + AllTimeUptimeDurations int + AllTimeUptimeRation int + CustomHttpHeaders int + CustomHttpStatuses int + CustomUptimeDurations int + CustomUptimeRatios *string + Limit *int + Logs int + MWindows int + Offset int + SSL int + Search *string + Timezone int type Monitor + AlertContacts *[]AlertContactMonitor + SSL *MonitorSSL + type MonitorSSL struct + Brand string + DisableNotifications int + Expires int + IgnoreErrors int + LastCheck interface{} + Product string type NewMonitorsParams + CustomHttpHeaders *string + CustomHttpStatuses *string v1.0.1 Nov 11, 2021 v1.0.0 Nov 10, 2021 Changes in this version + const StatFail + const StatOk + type APIResponse struct + Stat string + type Account struct + DownMonitors int + Email string + FirstName string + MonitorInterval int + MonitorLimit int + PausedMonitors int + SmsCredits int + TotalMonitorsCount int + UpMonitors int + UserId int + type AccountResp struct + Account Account + type AccountService struct + func (ac *AccountService) GetAccountDetails() (*AccountResp, error) + type AlertContact struct + FriendlyName string + Id string + Status int + Type int + Value string + type AlertContactEditResp struct + AlertContact struct{ ... } + Stat string + type AlertContactResp struct + AlertContacts []AlertContact + Limit int + Offset int + Stat string + Total int + type AlertContactService struct + func (ac *AlertContactService) DeleteAlertContact(id int) (*AlertContactEditResp, error) + func (ac *AlertContactService) EditAlertContact(params EditAlertContactParams) (*AlertContactEditResp, error) + func (ac *AlertContactService) GetAlertContacts(params GetAlertContactsParams) (*AlertContactResp, error) + func (ac *AlertContactService) NewAlertContact(params NewAlertContactParams) (*AlertContactSingleResp, error) + type AlertContactSingle struct + Id int + type AlertContactSingleResp struct + AlertContact AlertContactSingle + Stat string + type Client struct + Account AccountService + AlertContact AlertContactService + MWindow MWindowService + Monitor MonitorService + Token string + func NewClient(token string) *Client + func NewClientWithConfig(config *ClientConfig) *Client + type ClientConfig struct + APIToken string + HTTPClient *http.Client + type DeleteAlertContactWrapper struct + Id int + type DeleteMWindowWrapper struct + Id int + type DeleteOrResetMonitorsWrappers struct + Id int + type EditAlertContactParams struct + FriendlyName *string + Id int + Value *int + type EditMWindowParams struct + AlertContacts *string + FriendlyName string + HttpAuthType *int + HttpMethod *int + HttpPassword *string + HttpUsername *string + IgnoreSSLErrors *bool + Interval *int + KeywordCaseType *int + KeywordType *int + KeywordValue *string + MWindows *string + Port *int + SubType *int + Timeout *int + Url string + type EditMonitorsParams struct + AlertContacts *string + FriendlyName string + HttpAuthType *int + HttpMethod *int + HttpPassword *string + HttpUsername *string + IgnoreSSLErrors *bool + Interval *int + KeywordCaseType *int + KeywordType *int + KeywordValue *string + MWindows *string + Port *int + SubType *int + Timeout *int + Url string + type EditMonitorsWrappers struct + Id int + type Error struct + Message string + Stat string + Value map[string]string + func (e *Error) Error() string + type ErrorResponse struct + Error Error + Stat string + type GetAlertContactsParams struct + AlertContacts *string + Limit *int + Offset *int + type GetMWindowParams struct + Duration string + FriendlyName string + StartTime string + Type string + Value string + type GetMonitorsParams struct + Monitors string + Statuses string + Types string + type MWindow struct + Duration int + FriendlyName string + Id int + StartTime int + Status int + Type int + User int + Value string + type MWindowResp struct + MWindow struct{ ... } + Stat string + type MWindowService struct + func (ms *MWindowService) DeleteMWindow(id int) (*MWindowResp, error) + func (ms *MWindowService) EditMWindow(params EditMWindowParams) (*MWindowResp, error) + func (ms *MWindowService) GetMWindows(params GetMWindowParams) (*MWindowsResp, error) + func (ms *MWindowService) NewMWindow(params NewMWindowParams) (*MWindowsResp, error) + type MWindowsResp struct + MWindows []MWindow + Pagination Pagination + Stat string + type Monitor struct + CreateDatetime int + FriendlyName string + HttpPassword string + HttpUsername string + Id int + Interval int + IsGroupMain int + KeywordCaseType *int + KeywordType *int + KeywordValue string + Logs []MonitorLog + MonitorGroup int + Port string + Status int + SubType string + Timeout int + Type int + Url string + type MonitorLog struct + Datetime int + Duration int + Type int + type MonitorService struct + func (ms *MonitorService) DeleteMonitor(id int) (*MonitorsSingResp, error) + func (ms *MonitorService) EditMonitor(id int, request EditMonitorsParams) (*MonitorsSingResp, error) + func (ms *MonitorService) GetMonitors(params GetMonitorsParams) (*MonitorsResp, error) + func (ms *MonitorService) NewMonitor(params NewMonitorsParams) (*MonitorsSingResp, error) + func (ms *MonitorService) ResetMonitor(id int) (*MonitorsSingResp, error) + type MonitorSingle struct + Id int + Status *int + type MonitorsResp struct + Monitors []Monitor + Pagination Pagination + Stat string + type MonitorsSingResp struct + Monitor MonitorSingle + Stat string + type NewAlertContactParams struct + FriendlyName string + TypeContact string + Value string + type NewMWindowParams struct + Duration string + FriendlyName string + StartTime string + Type string + Value string + type NewMonitorsParams struct + AlertContacts *string + FriendlyName string + HttpAuthType *int + HttpMethod *int + HttpPassword *string + HttpUsername *string + IgnoreSSLErrors *bool + Interval *int + KeywordCaseType *int + KeywordType *int + KeywordValue *string + MWindows *string + Port *int + SubType *int + Timeout *int + Type int + Url string + type Object struct + Stat string + type Pagination struct + Limit int + Offset int + Total int