helpers

package
v0.0.0-...-a49573e Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 21 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
	Timestamp string          `json:"timestamp"` // 2026-04-22T14:32:30.123+0000 — when the alarm transitioned into this state
}

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