event_overview_info

package
v1.3.0-rc.0...-d217119 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Key     string       `json:"key"`
	Target  string       `json:"target"`
	State   CommandState `json:"state"`
	JumpOut bool         `json:"jumpOut"`
}

type CommandState

type CommandState struct {
	Params map[string]string `json:"params"`
	Query  map[string]string `json:"query,omitempty"`
}

type ComponentEventOverviewInfo

type ComponentEventOverviewInfo struct {
	Type   string                       `json:"type,omitempty"`
	Props  Props                        `json:"props"`
	Data   map[string]Data              `json:"data,omitempty"`
	State  State                        `json:"state,omitempty"`
	Metric metricpb.MetricServiceServer `autowired:"erda.core.monitor.metric.MetricService"`
	// contains filtered or unexported fields
}

func (*ComponentEventOverviewInfo) GenComponentState

func (cp *ComponentEventOverviewInfo) GenComponentState(c *cptype.Component) error

func (*ComponentEventOverviewInfo) Render

func (*ComponentEventOverviewInfo) Transfer

func (cp *ComponentEventOverviewInfo) Transfer(component *cptype.Component)

type Data

type Data struct {
	RelatedRuleName  string `json:"relatedRuleName"`
	RelatedAlertName string `json:"relatedAlertName"`
	AlertLevel       string `json:"alertLevel"`
	AlertSource      string `json:"alertSource"`
	AlertSubject     []Tag  `json:"alertSubject"`
	AlertCount       string `json:"alertCount"`
	FirstTriggerTime string `json:"firstTriggerTime"`
	LastTriggerTime  string `json:"lastTriggerTime"`
}

type Field

type Field struct {
	Label      string               `json:"label"`
	ValueKey   string               `json:"valueKey"`
	RenderType string               `json:"renderType,omitempty"`
	Operations map[string]Operation `json:"operations,omitempty"`
	SpaceNum   int                  `json:"spaceNum,omitempty"`
	Color      string               `json:"color,omitempty"`
}

type Operation

type Operation struct {
	Key     string  `json:"key"`
	Reload  bool    `json:"reload"`
	Command Command `json:"command,omitempty"`
}

type Props

type Props struct {
	RequestIgnore []string `json:"requestIgnore,omitempty"`
	ColumnNum     int      `json:"columnNum"`
	Fields        []Field  `json:"fields"`
}

type State

type State struct {
}

type Tag

type Tag struct {
	Label string `json:"label,omitempty"`
	Group string `json:"group,omitempty"`
}

Jump to

Keyboard shortcuts

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