helpers

package
v0.0.0-...-1cfd76e Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const CHCloudwatchAlertLambda api.CloudHelperType = "sc-helper-aws-cloudwatch-alert-lambda"
View Source
const CHHealthBridgeAlertLambda api.CloudHelperType = "sc-helper-aws-health-bridge-lambda"

Variables

This section is empty.

Functions

func NewCloudwatchLambdaHelper

func NewCloudwatchLambdaHelper(opts ...api.CloudHelperOption) (api.CloudHelper, error)

func NewHealthBridgeLambdaHelper

func NewHealthBridgeLambdaHelper(opts ...api.CloudHelperOption) (api.CloudHelper, error)

Types

type AlarmConfig

type AlarmConfig struct {
	Description string `json:"description"` // SeeAct CPU usage exceeds 10%
}

type AlarmData

type AlarmData struct {
	AlarmName     string      `json:"alarmName"` // seeact-max-cpu-metric-alarm-a275ddf
	State         AlarmState  `json:"state"`
	PreviousState AlarmState  `json:"previousState"`
	Configuration AlarmConfig `json:"configuration"`
}

type AlarmEvent

type AlarmEvent struct {
	AccountId string    `json:"accountId"` // 471112843480
	AlarmArn  string    `json:"alarmArn"`  // arn:aws:cloudwatch:eu-central-1:471112843480:alarm:seeact-max-cpu-metric-alarm-a275ddf
	AlarmData AlarmData `json:"alarmData"`
	Region    string    `json:"region"` // eu-central-1
}

type AlarmState

type AlarmState struct {
	Reason string          `json:"reason"` // Threshold Crossed: 1 datapoint [6.638074000676473 (14/05/24 09:53:00)] was not greater than the threshold (10.0).
	Value  AlarmStateValue `json:"value"`  // OK
}

type AlarmStateValue

type AlarmStateValue string
const (
	ALARM AlarmStateValue = "ALARM"
	OK    AlarmStateValue = "OK"
)

Jump to

Keyboard shortcuts

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