extmaintenance

package
v1.0.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DetectProblemsAndAlert = "DETECT_PROBLEMS_AND_ALERT"
View Source
const DetectProblemsDontAlert = "DETECT_PROBLEMS_DONT_ALERT"
View Source
const DontDetectProblems = "DONT_DETECT_PROBLEMS"
View Source
const (
	MaintenanceActionId = "com.steadybit.extension_dynatrace.create_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 {
	End                 time.Time
	SuppressionType     string
	MaintenanceWindowId *string
	ExperimentUri       *string
	ExecutionUri        *string
	ExperimentKey       *string
	ExecutionId         *int
}

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