Documentation
¶
Index ¶
- type Config
- type Instance
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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"`
}
Config is the structure of the configuration for a single Opsgenie instance.
type Instance ¶
type Instance struct {
Name string
// contains filtered or unexported fields
}
Instance represents a single Jaeger instance, which can be added via the configuration file.
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.
Click to show internal directories.
Click to hide internal directories.