Documentation ¶
Index ¶
Constants ¶
View Source
const ( // StatusAcknowledged ... StatusAcknowledged = "acknowledged" // StatusTriggered ... StatusTriggered = "triggered" // TypeUserReference ... TypeUserReference = "user_reference" )
View Source
const RegionAlertnameRegex = `.*\s\[(?P<region>.+?)\]\s(?P<alertname>.+?)\s\-.*`
RegionAlertnameRegex is used to find the region and alertname from an incident text
Variables ¶
View Source
var ErrUserNotFound = errors.New("user not found")
ErrUserNotFound is the error raised when a user was not found by its mail address in Pagerduty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client ...
func (*Client) AcknowledgeIncident ¶
func (p *Client) AcknowledgeIncident(alert *client.ExtendedAlert, userEmail string) error
AcknowledgeIncident acknowledges a currently firing incident.
func (*Client) ListParsedIncidents ¶
func (p *Client) ListParsedIncidents() ([]*ShortPagerdutyIncident, error)
ListParsedIncidents returns a list of parsed Pagerduty incidents or an error.
type ShortPagerdutyIncident ¶
ShortPagerdutyIncident ...
Click to show internal directories.
Click to hide internal directories.