extaccount

package
v1.0.8 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 (
	AccountTargetId = "com.steadybit.extension_newrelic.account"

	CreateMutingRuleActionId = "com.steadybit.extension_newrelic.create_muting_rule"
)

Variables

This section is empty.

Functions

func CreateMutingRuleStart

func CreateMutingRuleStart(ctx context.Context, state *CreateMutingRuleState, api MutingRuleApi) (*action_kit_api.StartResult, error)

func CreateMutingRuleStop

func CreateMutingRuleStop(ctx context.Context, state *CreateMutingRuleState, api MutingRuleApi) (*action_kit_api.StopResult, error)

func NewAccountDiscovery

func NewAccountDiscovery() discovery_kit_sdk.TargetDiscovery

Types

type CreateMutingRuleAction

type CreateMutingRuleAction struct{}

func (*CreateMutingRuleAction) Describe

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

func (*CreateMutingRuleAction) NewEmptyState

func (m *CreateMutingRuleAction) NewEmptyState() CreateMutingRuleState

func (*CreateMutingRuleAction) Prepare

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

func (*CreateMutingRuleAction) Start

func (m *CreateMutingRuleAction) Start(ctx context.Context, state *CreateMutingRuleState) (*action_kit_api.StartResult, error)

func (*CreateMutingRuleAction) Stop

func (m *CreateMutingRuleAction) Stop(ctx context.Context, state *CreateMutingRuleState) (*action_kit_api.StopResult, error)

type CreateMutingRuleState

type CreateMutingRuleState struct {
	AccountId     int64
	End           time.Time
	MutingRuleId  *string
	ExperimentKey *string
	ExecutionId   *int
	ExecutionUri  *string
}

type GetAccountsApi

type GetAccountsApi interface {
	GetAccountIds(ctx context.Context) ([]int64, error)
}

type MutingRuleApi

type MutingRuleApi interface {
	CreateMutingRule(ctx context.Context, accountId int64, name string, description string, end time.Time) (*string, error)
	DeleteMutingRule(ctx context.Context, accountId int64, mutingRuleId string) error
}

Jump to

Keyboard shortcuts

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