pause_form_modal

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: 12 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 ComponentPauseModalFormInfo

type ComponentPauseModalFormInfo struct {
	Type       string               `json:"type,omitempty"`
	Props      Props                `json:"props"`
	Data       map[string]Data      `json:"data,omitempty"`
	State      State                `json:"state,omitempty"`
	Operations map[string]Operation `json:"operations,omitempty"`

	MonitorAlertService monitorpb.AlertServiceServer `autowired:"erda.core.monitor.alert.AlertService"`
	// contains filtered or unexported fields
}

func (*ComponentPauseModalFormInfo) GenComponentState

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

func (*ComponentPauseModalFormInfo) GetAlertEvent

func (*ComponentPauseModalFormInfo) InitComponent

func (cp *ComponentPauseModalFormInfo) InitComponent(ctx context.Context, c *cptype.Component) error

func (*ComponentPauseModalFormInfo) PauseAlertEvent

func (cp *ComponentPauseModalFormInfo) PauseAlertEvent(alertEvent *monitorpb.AlertEventItem) error

func (*ComponentPauseModalFormInfo) Render

func (*ComponentPauseModalFormInfo) Transfer

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

type Data

type Data struct {
}

type Field

type Field struct {
	Key            string                 `json:"key"`
	Label          string                 `json:"label"`
	Required       bool                   `json:"required"`
	Component      string                 `json:"component"`
	ComponentProps map[string]interface{} `json:"componentProps,omitempty"`
}

type FormData

type FormData struct {
	PauseExpireTime uint64 `json:"pauseExpireTime"`
}

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"`
	Name          string   `json:"name"`
	Title         string   `json:"title"`
	Fields        []Field  `json:"fields"`
}

type State

type State struct {
	Reload   bool      `json:"reload"`
	Visible  bool      `json:"visible"`
	FormData *FormData `json:"formData"`
	Paused   bool      `json:"paused"`
}

Jump to

Keyboard shortcuts

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