extevents

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventCheckActionId = "com.steadybit.extension_instana.event_check"
)

Variables

This section is empty.

Functions

func EventCheckStatus

func EventCheckStatus(ctx context.Context, state *EventCheckState, api EventsApi) (*action_kit_api.StatusResult, error)

func NewEventCheckAction

func NewEventCheckAction() action_kit_sdk.Action[EventCheckState]

Types

type EventCheckAction

type EventCheckAction struct{}

func (*EventCheckAction) Describe

func (m *EventCheckAction) Describe() action_kit_api.ActionDescription

func (*EventCheckAction) NewEmptyState

func (m *EventCheckAction) NewEmptyState() EventCheckState

func (*EventCheckAction) Prepare

func (m *EventCheckAction) Prepare(ctx context.Context, state *EventCheckState, request action_kit_api.PrepareActionRequestBody) (*action_kit_api.PrepareResult, error)

func (*EventCheckAction) Start

func (m *EventCheckAction) Start(ctx context.Context, state *EventCheckState) (*action_kit_api.StartResult, error)

func (*EventCheckAction) Status

func (m *EventCheckAction) Status(ctx context.Context, state *EventCheckState) (*action_kit_api.StatusResult, error)

type EventCheckState

type EventCheckState struct {
	Start                 time.Time
	End                   time.Time
	EventSeverityFilter   int
	EventTypeFilters      []string
	Condition             string
	ConditionCheckMode    string
	ConditionCheckSuccess bool
	SnapshotIds           map[string]bool
}

type EventsApi

type EventsApi interface {
	GetEvents(ctx context.Context, from time.Time, to time.Time, eventTypeFilters []string) ([]types.Event, error)
	GetSnapshotIds(ctx context.Context, applicationPerspectiveId string) ([]string, error)
}

Jump to

Keyboard shortcuts

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