Versions in this module Expand all Collapse all v0 v0.1.1 Jun 19, 2024 v0.1.0 Jan 24, 2024 Changes in this version + var ErrIncidentAlreadyAcknowledged = errors.New("incident is already acknowledged") + var ErrIncidentAlreadyResolved = errors.New("incident is already resolved") + var ErrIncidentNotFound = errors.New("incident not found") + var ErrUnexpectedStatusCodeFromAPI = errors.New("unexpected status received from better-uptime API") + func IncidentIDFromURL(incidentStr string) (string, error) + type UpdateMonitorRequest struct + Paused bool v0.0.3 Nov 27, 2023 Changes in this version + type Resolve struct + ResolvedBy string v0.0.2 Nov 27, 2023 Changes in this version + type Acknowledge struct + AcknowledgedBy string v0.0.1 Nov 14, 2023 Changes in this version + func NewClient() client + type CreateMonitorGroupRequest struct + Name string + Paused bool + SortIndex *int + type CreateMonitorRequest struct + Name string + Paused bool + SortIndex *int + type CreateStatusPageRequest struct + Announcement *string + CompanyName *string + CompanyURL *string + ContactURL *string + CreatedAt *time.Time + CustomDomain *string + HideFromSearchEngines *bool + History *int + LogoURL *string + MinIncidentLength *int + Password *string + PasswordEnabled *bool + SubDomain *string + Subscribable *bool + Timezone *string + UpdateAt *time.Time + type GetMonitorGroupResponse struct + Data MonitorGroup + type GetMonitorResponse struct + Data Monitor + type GetStatusPageResponse struct + Data StatusPage + type Incident struct + Attributes IncidentAttributes + Id string + Relationships map[string]IncidentRelationship + Type string + type IncidentAttributes struct + Acknowledged_at *time.Time + Acknowledged_by *string + Call bool + Cause string + Email bool + Escalation_policy_id *int + Http_method string + Incident_group_id *int + Name string + Push bool + Regions []string + Resolved_at *time.Time + Resolved_by *string + Response_content *string + Response_options *string + Response_url *string + Screenshot_url *string + Sms bool + Started_at time.Time + Url string + type IncidentRelationship struct + Id string + Type string + type ListIncidentResponse struct + Data []Incident + Pagination Pagination + type ListMonitorGroupResponse struct + Data []MonitorGroup + Pagination Pagination + type ListMonitorResponse struct + Data []Monitor + Pagination Pagination + type ListOnCallResponse struct + Data []OnCall + Included []UserReferences + Pagination Pagination + type ListStatusPageResourcesResponse struct + Data []StatusPageResource + Pagination Pagination + type ListStatusPageResponse struct + Data []StatusPage + Pagination Pagination + type Monitor struct + Attributes MonitorAttributes + Id string + Type string + type MonitorAttributes struct + Call bool + Check_frequency int + ConfirmationPeriod int + CreatedAt time.Time + Domain_expiration string + Email bool + ExpectedStatusCodes []int + Follow_redirects bool + Http_method string + LastCheckedAt time.Time + MaintenanceFrom *time.Time + MaintenanceTimezone string + MaintenanceTo *time.Time + Monitor_group_id int + Monitor_type string + Paused bool + PausedAt *time.Time + Policy_id string + Port string + PronounceableName string + Push bool + Recovery_period int + Regions []string + Remember_cookies bool + Request_body string + Request_timeout int + Required_keyword string + Sms bool + Ssl_expiration int + Status string + Team_wait bool + UpdateAt *time.Time + Url string + Verify_ssl bool + type MonitorGroup struct + Attributes MonitorGroupAttributes + Id string + Type string + type MonitorGroupAttributes struct + CreatedAt time.Time + Name string + Paused bool + SortIndex int + UpdateAt *time.Time + type OnCall struct + Attributes OnCallAttributes + Id string + Relationships OnCallRelationships + Type string + type OnCallAttributes struct + DefaultCalendar bool + Name string + type OnCallRelationships struct + OnCallUsers OnCallUserReferences + type OnCallUserReferences struct + Data []struct{ ... } + type Pagination struct + First string + Last string + Next *string + Prev *string + type StatusPage struct + Attributes StatusPageAttributes + Id string + Type string + type StatusPageAttributes struct + Announcement string + CompanyName string + CompanyURL string + ContactURL string + CreatedAt time.Time + CustomDomain string + HideFromSearchEngines bool + History int + LogoURL string + PasswordEnabled bool + Subscribable bool + UpdateAt *time.Time + type StatusPageResource struct + Attributes StatusPageResourceAttributes + Id string + Type string + type StatusPageResourceAttributes struct + Explanation string + History bool + Position int + PublicName string + ResourceId int + ResourceType string + StatusPageSectionId int + WidgetType string + type UserAttributes struct + Email string + FirstName string + LastName string + PhoneNumbers []string + type UserReferences struct + Attributes UserAttributes + Id string