Documentation ¶
Index ¶
- type Actions
- type Config
- type Instance
- func (i *Instance) AcknowledgeAlert(ctx context.Context, id, user string) error
- func (i *Instance) CloseAlert(ctx context.Context, id, user string) error
- func (i *Instance) GetAlertDetails(ctx context.Context, id string) (*alert.GetAlertResult, error)
- func (i *Instance) GetAlertLogs(ctx context.Context, id string) ([]alert.AlertLog, error)
- func (i *Instance) GetAlertNotes(ctx context.Context, id string) ([]alert.AlertNote, error)
- func (i *Instance) GetAlerts(ctx context.Context, query string) ([]alert.Alert, error)
- func (i *Instance) GetIncidentLogs(ctx context.Context, id string) ([]incident.LogResult, error)
- func (i *Instance) GetIncidentNotes(ctx context.Context, id string) ([]incident.NoteResult, error)
- func (i *Instance) GetIncidentTimeline(ctx context.Context, id string) ([]timeline.Entry, error)
- func (i *Instance) GetIncidents(ctx context.Context, query string) ([]incident.Incident, error)
- func (i *Instance) SnoozeAlert(ctx context.Context, id, user string, duration time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actions ¶ added in v0.6.0
type Actions struct { Acknowledge bool `json:"acknowledge"` Snooze bool `json:"snooze"` Close bool `json:"close"` }
Actions is the structure to enable/disable various actions for Opsgenie in the configuration.
type Config ¶
type Config struct { Name string `json:"name"` DisplayName string `json:"displayName"` Description string `json:"description"` APIKey string `json:"apiKey"` APIUrl string `json:"apiUrl"` URL string `json:"url"` Actions Actions `json:"actions"` }
Config is the structure of the configuration for a single Opsgenie instance.
type Instance ¶
Instance represents a single Jaeger instance, which can be added via the configuration file.
func (*Instance) AcknowledgeAlert ¶ added in v0.6.0
AcknowledgeAlert acknowledges an alert.
func (*Instance) CloseAlert ¶ added in v0.6.0
CloseAlert closes an alert.
func (*Instance) GetAlertDetails ¶
GetAlertDetails returns the details for single alert.
func (*Instance) GetAlertLogs ¶
GetAlertLogs returns the logs for single alert.
func (*Instance) GetAlertNotes ¶
GetAlertNotes returns the notes for single alert.
func (*Instance) GetIncidentLogs ¶
GetIncidentLogs returns the logs for single incident.
func (*Instance) GetIncidentNotes ¶
GetIncidentNotes returns the notes for single incident.
func (*Instance) GetIncidentTimeline ¶
GetIncidentTimeline returns the timeline for single incident.
func (*Instance) GetIncidents ¶
GetIncidents returns a list of Opsgenie incidents for the given query.