models

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerEvent

type ContainerEvent struct {
	Name     string `json:"container_name"`
	Reason   string `json:"reason"`
	Message  string `json:"message"`
	LogID    string `json:"log_id"`
	ExitCode int32  `json:"exit_code"`
}

type EventCriticality

type EventCriticality string

type EventResourceType

type EventResourceType string
const (
	PodResource EventResourceType = "Pod"
)

func (*EventResourceType) String

func (e *EventResourceType) String() string

type Incident

type Incident struct {
	ID            string `json:"id" form:"required"`
	ReleaseName   string `json:"release_name" form:"required"`
	ChartName     string `json:"chart_name"`
	CreatedAt     int64  `json:"created_at" form:"required"`
	UpdatedAt     int64  `json:"updated_at" form:"required"`
	LatestState   string `json:"latest_state" form:"required"`
	LatestReason  string `json:"latest_reason" form:"required"`
	LatestMessage string `json:"latest_message" form:"required"`
}

type PodEvent

type PodEvent struct {
	EventID         string                     `json:"event_id"`
	ChartName       string                     `json:"release_chart_name"`
	PodName         string                     `json:"pod_name"`
	Namespace       string                     `json:"namespace"`
	Cluster         string                     `json:"cluster"`
	OwnerName       string                     `json:"release_name"`
	OwnerType       string                     `json:"release_type"`
	Timestamp       int64                      `json:"timestamp"`
	Phase           string                     `json:"pod_phase"`
	Status          string                     `json:"pod_status"`
	Reason          string                     `json:"reason"`
	Message         string                     `json:"message"`
	ContainerEvents map[string]*ContainerEvent `json:"container_events"`
}

Jump to

Keyboard shortcuts

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