Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IncidentID ¶
Types ¶
type AlertGroup ¶
type AlertGroup struct {
ID string `json:"pk"`
AlertsCount int `json:"alerts_count"`
InsideOrganizationNumber int `json:"inside_organization_number"`
AlertReceiveChannel alertReceiveChannel `json:"alert_receive_channel"`
Resolved bool `json:"resolved"`
ResolvedBy int `json:"resolved_by"`
ResolvedByUser string `json:"resolved_by_user"`
ResolvedAt time.Time `json:"resolved_at"`
AcknowledgedAt time.Time `json:"acknowledged_at"`
Acknowledged bool `json:"acknowledged"`
AcknowledgedOnSource bool `json:"acknowledged_on_source"`
AcknowledgedByUser acknowledgedByUser `json:"acknowledged_by_user"`
Silenced bool `json:"silenced"`
SilencedByUser string `json:"silenced_by_user"`
SilencedAt time.Time `json:"silenced_at"`
SilencedUntil time.Time `json:"silenced_until"`
StartedAt time.Time `json:"started_at"`
RelatedUsers []relatedUser `json:"related_users"`
RenderForWeb renderWeb `json:"render_for_web"`
RenderForClassicMarkdown renderMarkdown `json:"render_for_classic_markdown"`
DependentAlertGroups []string `json:"dependent_alert_groups"`
RootAlertGroup string `json:"root_alert_group"`
Status int `json:"status"`
}
func (*AlertGroup) AlertID ¶
func (a *AlertGroup) AlertID() string
func (*AlertGroup) PhoneCall ¶
func (a *AlertGroup) PhoneCall(originalMessage string) string
func (*AlertGroup) Raw ¶
func (a *AlertGroup) Raw() interface{}
func (*AlertGroup) SMSText ¶
func (a *AlertGroup) SMSText(originalMessage string) string
type DutyState ¶
type DutyState struct {
Name string
// contains filtered or unexported fields
}
func NewDutyState ¶
func (*DutyState) Peek ¶
Peek returns the top element without removing it. Returns an error if empty
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
func (*Instance) IncidentDetails ¶
type OnDuty ¶
type OnDuty struct {
// contains filtered or unexported fields
}
OnDuty manages multiple stacks identified by string keys.
func (*OnDuty) CreateEntry ¶
CreateEntry creates a new stack for the given key.
type ScheduleItem ¶
type ScheduleProcessor ¶
type ScheduleProcessor interface {
Current(ctx context.Context) (*ScheduleItem, error)
}
type Service ¶
type User ¶
type User struct {
ID int `json:"id"`
Name string `json:"name"`
Login string `json:"login"`
Email string `json:"email,omitempty"`
IsAdmin bool `json:"isAdmin"`
IsDisabled bool `json:"isDisabled"`
LastSeenAt string `json:"lastSeenAt"`
LastSeenAtAge string `json:"lastSeenAtAge"`
AuthLabels []string `json:"authLabels"`
}
Click to show internal directories.
Click to hide internal directories.