Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + type Command struct + Key string + State CommandState + Target string + type CommandState struct + Params map[string]string + Visible bool + type ComponentOperationButton struct + MonitorAlertService monitorpb.AlertServiceServer + Props Props + State State + Type string + 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 struct + Key string + Operations map[string]interface{} + Text string + type Operation struct + Command Command + Confirm string + Key string + Reload bool + SuccessMsg string + type Props struct + Menu []Menu + Text string + Type string + type State struct