extmaintenance

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaintenanceWindowActionId = "com.steadybit.extension_instana.maintenance-window"
)

Variables

This section is empty.

Functions

func CreateMaintenanceWindow

func CreateMaintenanceWindow(ctx context.Context, state *CreateMaintenanceWindowState, api MaintenanceWindowApi) (*action_kit_api.StartResult, error)

func DeleteMaintenanceWindow

func DeleteMaintenanceWindow(ctx context.Context, state *CreateMaintenanceWindowState, api MaintenanceWindowApi) (*action_kit_api.StopResult, error)

Types

type CreateMaintenanceWindowAction

type CreateMaintenanceWindowAction struct{}

func (*CreateMaintenanceWindowAction) Describe

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

func (*CreateMaintenanceWindowAction) NewEmptyState

func (*CreateMaintenanceWindowAction) Prepare

func (m *CreateMaintenanceWindowAction) Prepare(_ context.Context, state *CreateMaintenanceWindowState, request action_kit_api.PrepareActionRequestBody) (*action_kit_api.PrepareResult, error)

func (*CreateMaintenanceWindowAction) Start

func (m *CreateMaintenanceWindowAction) Start(ctx context.Context, state *CreateMaintenanceWindowState) (*action_kit_api.StartResult, error)

func (*CreateMaintenanceWindowAction) Stop

func (m *CreateMaintenanceWindowAction) Stop(ctx context.Context, state *CreateMaintenanceWindowState) (*action_kit_api.StopResult, error)

type CreateMaintenanceWindowState

type CreateMaintenanceWindowState struct {
	ApplicationPerspectiveId string
	DurationInMillis         int64
	ExperimentKey            *string
	ExecutionId              *int
	MaintenanceWindowId      *string
}

type MaintenanceWindowApi

type MaintenanceWindowApi interface {
	CreateMaintenanceWindow(ctx context.Context, maintenanceWindow types.CreateMaintenanceWindowRequest) (*string, *http.Response, error)
	DeleteMaintenanceWindow(ctx context.Context, maintenanceWindowId string) (*http.Response, error)
}

Jump to

Keyboard shortcuts

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