Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaintenanceEventType EventType = "maintenance" IncidentEventType EventType = "incident" NoticeEventType EventType = "notice" UnknownEventType EventType = "unknown" ActiveEventState EventState = "active" FinishedEventState EventState = "finished" UnknownEventState EventState = "unknown" )
Variables ¶
View Source
var ( EventTypes = []EventType{MaintenanceEventType, IncidentEventType, NoticeEventType} EventStates = []EventState{ActiveEventState, FinishedEventState} )
Functions ¶
This section is empty.
Types ¶
type EventComment ¶
type EventFilter ¶
type EventState ¶
type EventState string
type NewEventCommentOpts ¶
type NewEventCommentOpts struct {
Text string
}
type NewEventOpts ¶
type Storage ¶
type Storage interface { prometheus.Collector fmt.Stringer NewEvent(ctx context.Context, token string, eventOpts NewEventOpts) error Events(ctx context.Context, filter EventFilter) ([]Event, error) Event(ctx context.Context, eventId string) (Event, error) NewEventComment(ctx context.Context, token string, eventId string, commentOpts NewEventCommentOpts) error EventComments(ctx context.Context, eventId string) ([]EventComment, error) }
Click to show internal directories.
Click to hide internal directories.