Documentation ¶
Index ¶
Constants ¶
View Source
const ( ServiceIDCtx = "serviceID" // ServiceCtx = "service" SubscriptionCtx = "subscription" SubscriptionIDCtx = "subscriptionID" )
View Source
const ( Incident string = "incident" IncidentTriggered string = "triggered" IncidentInProgress string = "in_progress" IncidentResolved string = "resolved" )
View Source
const AtlassianProviderType = "atlassian"
View Source
const DiscordWorker string = "discord"
View Source
const MsTeamsWorker string = "msteams"
View Source
const PagerdutyWorker string = "pagerduty"
View Source
const SlackWorker string = "slack"
View Source
const SquadcastProviderType = "squadcast"
View Source
const SquadcastWorker string = "squadcast"
View Source
const StatusioProviderType = "statusio"
View Source
const WebhookWorker string = "webhook"
Variables ¶
View Source
var ( IncidentTriggeredEventType string = fmt.Sprintf("%v.%v", Incident, IncidentTriggered) IncidentInProgressEventType string = fmt.Sprintf("%v.%v", Incident, IncidentInProgress) IncidentResolvedEventType string = fmt.Sprintf("%v.%v", Incident, IncidentResolved) )
Functions ¶
This section is empty.
Types ¶
type ComponentsWithNameAndID ¶
type WorkerEvent ¶
type WorkerEvent struct { ServiceID uint ServiceName string IncidentID uint IncidentName string IncidentLink string IncidentImpact string IncidentUpdate string IncidentUpdateID uint IncidentUpdateProviderStatus string IncidentUpdateStatus string Components []ComponentsWithNameAndID IsAllComponents bool EventType string IncidentUpdateStatusTime time.Time }
Click to show internal directories.
Click to hide internal directories.