incident

package
v1.18.6 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Incident added in v1.12.5

type Incident struct {
	model.ApplicationIncident
	Impact              float32                   `json:"impact"`
	ShortDescription    string                    `json:"short_description"`
	ApplicationCategory model.ApplicationCategory `json:"application_category"`
	Duration            timeseries.Duration       `json:"duration"`
}

func RenderList added in v1.12.5

func RenderList(w *model.World, incidents []*model.ApplicationIncident) []Incident

type SLODetails

type SLODetails struct {
	Objective  string  `json:"objective"`
	Compliance string  `json:"compliance"`
	Violated   bool    `json:"violated"`
	Threshold  float32 `json:"threshold"`
}

type View

type View struct {
	Incident
	AvailabilitySLO *SLODetails     `json:"availability_slo,omitempty"`
	LatencySLO      *SLODetails     `json:"latency_slo,omitempty"`
	ActualFrom      timeseries.Time `json:"actual_from"`
	ActualTo        timeseries.Time `json:"actual_to"`

	Widgets []*model.Widget `json:"widgets"`
}

func Render

func Render(w *model.World, app *model.Application, incident *model.ApplicationIncident) *View

Jump to

Keyboard shortcuts

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