Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps the PagerDuty REST API v2.
func (*Client) ListIncidents ¶
ListIncidents returns PagerDuty incidents within the given time range using offset-based pagination.
type Config ¶
type Config struct {
APIKey string `json:"api_key" yaml:"api_key" mapstructure:"api_key" validate:"required"`
Exclude []string `json:"exclude" yaml:"exclude" mapstructure:"exclude"`
IncidentDays int `json:"incident_days" yaml:"incident_days" mapstructure:"incident_days"`
}
Config holds the extractor configuration.
type Extractor ¶
type Extractor struct {
plugins.BaseExtractor
// contains filtered or unexported fields
}
Extractor extracts metadata from PagerDuty.
type Incident ¶
type Incident struct {
ID string `json:"id"`
IncidentNumber int `json:"incident_number"`
Title string `json:"title"`
Status string `json:"status"`
Urgency string `json:"urgency"`
CreatedAt string `json:"created_at"`
ResolvedAt string `json:"resolved_at"`
HTMLURL string `json:"html_url"`
Service struct {
ID string `json:"id"`
} `json:"service"`
Priority *struct {
Summary string `json:"summary"`
} `json:"priority"`
}
Incident represents a PagerDuty incident.
type Service ¶
type Service struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Status string `json:"status"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
HTMLURL string `json:"html_url"`
AlertCreation string `json:"alert_creation"`
EscalationPolicy struct {
ID string `json:"id"`
} `json:"escalation_policy"`
Teams []struct {
ID string `json:"id"`
Summary string `json:"summary"`
} `json:"teams"`
IncidentUrgencyRule struct {
Type string `json:"type"`
} `json:"incident_urgency_rule"`
}
Service represents a PagerDuty service.
Click to show internal directories.
Click to hide internal directories.