Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Incident ¶
type Incident struct {
ID string `json:"incident_id"`
ProjectID string `json:"scoping_project_id"`
ProjectNum string `json:"scoping_project_number"`
URL string `json:"url"`
Started int `json:"started_at"`
Ended int `json:"ended_at"`
State string `json:"state"`
Summary string `json:"summary"`
ResourceID string `json:"resource_id"`
ResourceName string `json:"resource_name"`
Resource Resource `json:"resource"`
Metric Metric `json:"metric"`
Metadata Metadata `json:"metadata"`
}
type Message ¶
type Message struct {
ProjectID string
State string
Summary string
Started int
Ended int
SystemLabels map[string]string
}
Message is a type that represents the Pushover message
func NewMessage ¶
NewMessage is a function that maps an Incident body into a Pushover message
Click to show internal directories.
Click to hide internal directories.