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 implements the Opsgenie client for the incidents API.
func NewClient ¶
NewClient creates a new Opsgenie client for the incidents API. This is required because the incident client from the opsgenie-go-sdk-v2 doesn't implement the timeline api and the api to resolve incidents.
func (*Client) GetTimeline ¶
GetTimeline can be used to get the timeline entries for an Opsgenie incident.
type Description ¶
type Entry ¶
type Entry struct {
ID string `json:"id"`
Group string `json:"group"`
Type string `json:"type"`
EventTime time.Time `json:"eventTime"`
Hidden bool `json:"hidden"`
Actor Actor `json:"actor"`
Description Description `json:"description"`
LastEdit LastEdit `json:"lastEdit"`
}
Entry is the structure for a single incident timeline entry.
type ResolveIncidentData ¶
type ResolveIncidentData struct {
Note string `json:"note"`
}
ResolveIncidentData is the data which can be sent to the Opsgenie api within the body of an resolve incident request.
Click to show internal directories.
Click to hide internal directories.