types

package
v0.0.0-...-10a9667 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

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 ComponentsWithNameAndID struct {
	Name string
	ID   uint
}

type JSON

type JSON map[string]any

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL