Versions in this module Expand all Collapse all v1 v1.0.8 Aug 2, 2022 Changes in this version + type Admin struct + FirstName string + LastName string + SelfUrl string + Username string + type AllContactResponse struct + Devices ContactGroup + Emails ContactGroup + Phones ContactGroup + type ApiEscalationPolicy struct + Name string + Slug string + type ApiEscalationPolicySchedule struct + Overrides []ApiOnCallOverride + Policy ApiEscalationPolicy + Schedule []ApiOnCallEntry + type ApiOnCallEntry struct + OnCallType string + OnCallUser ApiUser + OverrideOnCallUser ApiUser + Rolls []ApiOnCallRoll + RotationName string + ShiftName string + ShiftRoll time.Time + type ApiOnCallNow struct + EscalationPolicy ApiEscalationPolicy + Users []ApiOnCallUser + type ApiOnCallOverride struct + End time.Time + OrigOnCallUser ApiUser + OverrideOnCallUser ApiUser + Policy ApiEscalationPolicy + Start time.Time + type ApiOnCallRoll struct + End time.Time + IsRoll bool + OnCallUser ApiUser + Start time.Time + type ApiOnCallUser struct + OnCallUser ApiUser + type ApiTeam struct + Name string + Slug string + type ApiTeamOnCall struct + OnCallNow []ApiOnCallNow + Team ApiTeam + type ApiTeamSchedule struct + Schedules []ApiEscalationPolicySchedule + Team ApiTeam + type ApiTeamsOnCall struct + TeamsOnCall []ApiTeamOnCall + type ApiUser struct + Username string + type ApiUserSchedule struct + Schedules []ApiTeamSchedule + type Client struct + func NewClient(apiID string, apiKey string, publicBaseURL string) *Client + func NewConfigurableClient(apiID string, apiKey string, publicBaseURL string, httpClient http.Client) *Client + func (c Client) AckIncidents(userName string, incidents []int, message string) (*IncidentActionResponse, *RequestDetails, error) + func (c Client) AckIncidentsByUser(userName string, message string) (*IncidentActionResponse, *RequestDetails, error) + func (c Client) AddTeamMember(teamID string, username string) (*RequestDetails, error) + func (c Client) CreateContact(username string, contact *Contact) (*Contact, *RequestDetails, error) + func (c Client) CreateEscalationPolicy(escalationPolicy *EscalationPolicy) (*EscalationPolicy, *RequestDetails, error) + func (c Client) CreateRoutingKey(routingKey *RoutingKey) (*RoutingKey, *RequestDetails, error) + func (c Client) CreateTeam(team *Team) (*Team, *RequestDetails, error) + func (c Client) CreateUser(user *User) (*User, *RequestDetails, error) + func (c Client) DeleteContact(username string, contactExtID string, contactType ContactType) (*RequestDetails, error) + func (c Client) DeleteEscalationPolicy(escalationPolicyID string) (*RequestDetails, error) + func (c Client) DeleteTeam(teamID string) (*RequestDetails, error) + func (c Client) DeleteUser(username string, replacementUser string) (*RequestDetails, error) + func (c Client) GetAllContacts(username string) (*AllContactResponse, *RequestDetails, error) + func (c Client) GetAllEscalationPolicies() (*EscalationPolicyList, *RequestDetails, error) + func (c Client) GetAllRoutingKeys() (*RoutingKeyResponseList, *RequestDetails, error) + func (c Client) GetAllTeams() (*[]Team, *RequestDetails, error) + func (c Client) GetAllUserV2() (*UserListV2, *RequestDetails, error) + func (c Client) GetAllUsers() (*UserList, *RequestDetails, error) + func (c Client) GetApiTeamSchedule(teamSlug string, daysForward int, daysSkip int, step int) (*ApiTeamSchedule, *RequestDetails, error) + func (c Client) GetContact(username string, contactExtID string, contactType ContactType) (*Contact, *RequestDetails, error) + func (c Client) GetContactByID(username string, id int, contactType ContactType) (*Contact, *RequestDetails, error) + func (c Client) GetEscalationPolicy(escalationPolicyID string) (*EscalationPolicy, *RequestDetails, error) + func (c Client) GetHTTPClient() *http.Client + func (c Client) GetIncident(incidentID int) (*Incident, *RequestDetails, error) + func (c Client) GetIncidents() (*IncidentResponse, *RequestDetails, error) + func (c Client) GetOnCallCurrent() (*ApiTeamsOnCall, *RequestDetails, error) + func (c Client) GetRoutingKey(keyname string) (*RoutingKeyResponse, *RequestDetails, error) + func (c Client) GetTeam(teamID string) (*Team, *RequestDetails, error) + func (c Client) GetTeamAdmins(teamID string) (*TeamAdmins, *RequestDetails, error) + func (c Client) GetTeamMembers(teamID string) (*TeamMembers, *RequestDetails, error) + func (c Client) GetUser(username string) (*User, *RequestDetails, error) + func (c Client) GetUserByEmail(email string) (*UserListV2, *RequestDetails, error) + func (c Client) GetUserDefaultEmailContactID(username string) (float64, *RequestDetails, error) + func (c Client) GetUserOnCallSchedule(userName string, daysForward int, daysSkip int, step int) (*ApiUserSchedule, *RequestDetails, error) + func (c Client) IsTeamMember(teamID string, username string) (bool, *RequestDetails, error) + func (c Client) RemoveTeamMember(teamID string, username string, replacement string) (*RequestDetails, error) + func (c Client) ResolveIncidents(userName string, incidents []int, message string) (*IncidentActionResponse, *RequestDetails, error) + func (c Client) ResolveIncidentsByUser(userName string, message string) (*IncidentActionResponse, *RequestDetails, error) + func (c Client) String() string + func (c Client) TakeOnCallForPolicy(policySlug string, req *TakeRequest) (*TakeResponse, *RequestDetails, error) + func (c Client) TakeOnCallForTeam(teamSlug string, req *TakeRequest) (*TakeResponse, *RequestDetails, error) + func (c Client) UpdateTeam(team *Team) (*Team, *RequestDetails, error) + func (c Client) UpdateUser(user *User) (*User, *RequestDetails, error) + type ClientArgs struct + type Contact struct + Email string + ExtID string + ID int + Label string + PhoneNumber string + Rank int + Value string + Verified string + func (c Contact) Type() ContactType + type ContactGroup struct + ContactMethods []Contact + type ContactType struct + func GetContactTypeFromNotificationType(notificationType string) ContactType + type ContactTypes struct + Device ContactType + Email ContactType + Phone ContactType + func GetContactTypes() ContactTypes + type EscalationPolicy struct + ID string + IgnoreCustomPagingPolicies bool + Name string + Steps []EscalationPolicySteps + TeamID string + type EscalationPolicyList struct + Policies []EscalationPolicyListElement + type EscalationPolicyListDetail struct + Name string + Slug string + type EscalationPolicyListElement struct + Policy EscalationPolicyListDetail + Team EscalationPolicyListDetail + type EscalationPolicyStepEntry struct + Email map[string]string + ExecutionType string + RotationGroup map[string]string + TargetPolicy map[string]string + User map[string]string + Webhook map[string]string + type EscalationPolicySteps struct + Entries []EscalationPolicyStepEntry + Timeout int + type GetAllContactResponse struct + ContactMethods []Contact + type Incident struct + AlertCount int + CurrentPhase string + EntityDisplayName string + EntityID string + EntityState string + EntityType string + Host string + IncidentNumber string + LastAlertID string + LastAlertTime time.Time + PagedPolicies []PagedPolicy + PagedTeams []string + PagedUsers []string + Service string + StartTime time.Time + Transitions []Transition + type IncidentAction struct + CmdAccepted bool + EntityID string + IncidentNumber string + Message string + type IncidentActionByUserRequest struct + Message string + UserName string + type IncidentActionRequest struct + IncidentNames []string + Message string + UserName string + type IncidentActionResponse struct + Results []IncidentAction + type IncidentResponse struct + Incidents []Incident + type PagedEntity struct + Name string + Slug string + type PagedPolicy struct + Policy PagedEntity + Team PagedEntity + type RequestDetails struct + RawRequest *http.Request + RawResponse *http.Response + RequestBody string + ResponseBody string + StatusCode int + type RoutingKey struct + RoutingKey string + Targets []string + type RoutingKeyResponse struct + RoutingKey string + Targets []RoutingKeyResponseTargets + type RoutingKeyResponseList struct + RoutingKeys []RoutingKeyResponse + type RoutingKeyResponseTargets struct + PolicySlug string + type TakeRequest struct + FromUser string + ToUser string + type TakeResponse struct + Result string + type Team struct + Description string + IsDefaultTeam bool + MemberCount int + Name string + Slug string + Version int + type TeamAdmins struct + TeamAdmins []Admin + type TeamMembers struct + Members []User + type Transition struct + AlertID string + AlertURL string + At time.Time + By string + Manually bool + Message string + Name string + type User struct + Admin bool + CreatedAt string + Email string + ExpirationHours int + FirstName string + LastName string + PasswordLastUpdated string + Username string + Verified bool + type UserList struct + Users [][]User + type UserListV2 struct + Users []User