Documentation
¶
Overview ¶
Package pagerduty delivers Console events to PagerDuty via the Events API v2 (https://events.pagerduty.com/v2/enqueue). A component going down or degraded triggers an alert; the matching recovery resolves it, correlated by a deterministic dedup key so PagerDuty groups the open/close pair into a single incident.
PagerDuty is a paging sink, so only component health transitions are delivered — flag-change events are not incidents and are skipped.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifier ¶
type Notifier struct {
// RoutingKey is the integration key of the target PagerDuty service.
RoutingKey string
// Endpoint is the enqueue URL; defaults to the public Events API v2 endpoint.
Endpoint string
// HTTP issues the POST. If nil, a client with a sane timeout is used.
HTTP *http.Client
}
Notifier posts events to PagerDuty's Events API v2.
Click to show internal directories.
Click to hide internal directories.