Versions in this module Expand all Collapse all v1 v1.2.4 Sep 1, 2022 v1.2.3 Sep 1, 2022 v1.2.2 Aug 30, 2022 Changes in this version + func Int(v int) *int + func Int64(v int64) *int64 + type Alert struct + CreatedAt *time.Time + Location string + MonitoringServerIPv4 *net.IP + MonitoringServerIPv6 *net.IP + MonitoringServerName string + Output string + PK int64 + URL string + type Check struct + Address string + CheckType string + ContactGroups []string + DNSRecordType string + DNSServer string + Encryption string + Escalations []string + ExpectString string + Headers string + IPVersion string + IncludeInGlobalMetrics bool + Interval int + Locations []string + Name string + Notes string + PK int + Password string + Port int + Protocol string + Script string + SendString string + Sensitivity int + Tags []string + Threshold int + URL string + Username string + type CheckListOptions struct + IsPaused bool + MonitoringServiceType string + Ordering string + Page int + PageSize int + Search string + StateIsUp bool + Tag []string + type CheckListResponse struct + Count int + Next string + Previous string + Results []*Check + type CheckResponse struct + Messages map[string]interface{} + Results Check + type CheckService service + func (s *CheckService) Create(ctx context.Context, check *Check) (*Check, *http.Response, error) + func (s *CheckService) Delete(ctx context.Context, pk int) (*http.Response, error) + func (s *CheckService) Get(ctx context.Context, pk int) (*Check, *http.Response, error) + func (s *CheckService) List(ctx context.Context, opt *CheckListOptions) ([]*Check, *http.Response, error) + func (s *CheckService) ListAll(ctx context.Context, opt *CheckListOptions) ([]*Check, error) + func (s *CheckService) Stats(ctx context.Context, pk int, opt *CheckStatsOptions) (*CheckStatsResponse, *http.Response, error) + func (s *CheckService) Update(ctx context.Context, check *Check) (*Check, *http.Response, error) + type CheckStats struct + Date string + DowntimeSecs int + Outages int + type CheckStatsOptions struct + Download bool + EndDate string + IncludeAlerts bool + Location string + LocationsResponseTimes bool + PDF bool + StartDate string + type CheckStatsResponse struct + EndDate string + StartDate string + Statistics []*CheckStats + Totals CheckStatsTotals + type CheckStatsTotals struct + DowntimeSecs int64 + Outages int + type Client struct + BaseURL *url.URL + Checks *CheckService + Config *Config + Integrations *IntegrationService + Outages *OutageService + Tags *TagService + UserAgent string + func NewClient(config *Config) (*Client, error) + func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) (*http.Response, error) + func (c *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error) + type Config struct + BaseURL string + HTTPClient *http.Client + RateMilliseconds int + Token string + UserAgent string + type Error struct + ErrorCode string + ErrorFields map[string][]string + Message string + Response *http.Response + func (e *Error) Error() string + type Integration struct + APIEndpoint string + APIKey string + AutoResolve bool + ContactGroups []string + Module string + Name string + PK int + Tags string + Teams string + URL string + type IntegrationListOptions struct + Module string + Ordering string + Page int + PageSize int + Search string + type IntegrationListResponse struct + Count int + Next string + Previous string + Results []*Integration + type IntegrationResponse struct + Messages map[string]interface{} + Results Integration + type IntegrationService service + func (s *IntegrationService) Create(ctx context.Context, integration *Integration) (*Integration, *http.Response, error) + func (s *IntegrationService) Delete(ctx context.Context, pk int) (*http.Response, error) + func (s *IntegrationService) Get(ctx context.Context, pk int) (*Integration, *http.Response, error) + func (s *IntegrationService) List(ctx context.Context, opt *IntegrationListOptions) ([]*Integration, *http.Response, error) + func (s *IntegrationService) ListAll(ctx context.Context, opt *IntegrationListOptions) ([]*Integration, error) + func (s *IntegrationService) Update(ctx context.Context, integration *Integration) (*Integration, *http.Response, error) + type Outage struct + AllAlerts *[]Alert + CheckAddresss string + CheckMonitoringServiceType string + CheckName string + CheckPK int64 + CheckURL string + CreatedAt time.Time + DurationSecs int64 + IgnoreAlertURL string + Ignored bool + NumLocationsDown int + PK int64 + ResolvedAt time.Time + StateIsUp bool + URL string + type OutageListOptions struct + CheckMonitoringServiceType string + Ordering string + Page int + PageSize int + Search string + type OutageListResponse struct + Count int + Next string + Previous string + Results []*Outage + type OutageService service + func (s *OutageService) Get(ctx context.Context, pk string) (*Outage, *http.Response, error) + func (s *OutageService) List(ctx context.Context, opt *OutageListOptions) ([]*Outage, *http.Response, error) + type Tag struct + ColorHex string + PK int + Tag string + URL string + type TagListOptions struct + Ordering string + Page int + PageSize int + Search string + type TagListResponse struct + Count int + Next string + Previous string + Results []*Tag + type TagResponse struct + Messages map[string]interface{} + Results Tag + type TagService service + func (s *TagService) Create(ctx context.Context, tag *Tag) (*Tag, *http.Response, error) + func (s *TagService) Delete(ctx context.Context, pk int) (*http.Response, error) + func (s *TagService) Get(ctx context.Context, pk int) (*Tag, *http.Response, error) + func (s *TagService) List(ctx context.Context, opt *TagListOptions) ([]*Tag, *http.Response, error) + func (s *TagService) Update(ctx context.Context, tag *Tag) (*Tag, *http.Response, error)