Documentation ¶
Index ¶
- type Command
- type CommandState
- type ComponentOperationButton
- func (b *ComponentOperationButton) CancelSuppressAlertEvent(alertEvent *monitorpb.AlertEventItem) interface{}
- func (b *ComponentOperationButton) GenComponentState(c *cptype.Component) error
- func (b *ComponentOperationButton) GetAlertEvent(ctx context.Context) (*monitorpb.AlertEventItem, error)
- func (b *ComponentOperationButton) InitComponent(ctx context.Context)
- func (b *ComponentOperationButton) Render(ctx context.Context, component *cptype.Component, _ cptype.Scenario, ...) error
- func (b *ComponentOperationButton) SetComponentValue(alertEvent *monitorpb.AlertEventItem)
- func (b *ComponentOperationButton) StopAlertEvent(alertEvent *monitorpb.AlertEventItem) error
- func (b *ComponentOperationButton) Transfer(component *cptype.Component)
- type Menu
- type Operation
- type Props
- type State
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,omitempty"` Target string `json:"target,omitempty"` State CommandState `json:"state,omitempty"` }
type CommandState ¶
type ComponentOperationButton ¶
type ComponentOperationButton struct { Type string `json:"type,omitempty"` Props Props `json:"props"` State State `json:"state"` MonitorAlertService monitorpb.AlertServiceServer `autowired:"erda.core.monitor.alert.AlertService"` // contains filtered or unexported fields }
func (*ComponentOperationButton) CancelSuppressAlertEvent ¶
func (b *ComponentOperationButton) CancelSuppressAlertEvent(alertEvent *monitorpb.AlertEventItem) interface{}
func (*ComponentOperationButton) GenComponentState ¶
func (b *ComponentOperationButton) GenComponentState(c *cptype.Component) error
func (*ComponentOperationButton) GetAlertEvent ¶
func (b *ComponentOperationButton) GetAlertEvent(ctx context.Context) (*monitorpb.AlertEventItem, error)
func (*ComponentOperationButton) InitComponent ¶
func (b *ComponentOperationButton) InitComponent(ctx context.Context)
func (*ComponentOperationButton) Render ¶
func (b *ComponentOperationButton) Render(ctx context.Context, component *cptype.Component, _ cptype.Scenario, event cptype.ComponentEvent, gs *cptype.GlobalStateData) error
func (*ComponentOperationButton) SetComponentValue ¶
func (b *ComponentOperationButton) SetComponentValue(alertEvent *monitorpb.AlertEventItem)
func (*ComponentOperationButton) StopAlertEvent ¶
func (b *ComponentOperationButton) StopAlertEvent(alertEvent *monitorpb.AlertEventItem) error
func (*ComponentOperationButton) Transfer ¶
func (b *ComponentOperationButton) Transfer(component *cptype.Component)
Click to show internal directories.
Click to hide internal directories.