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 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" )
Click to show internal directories.
Click to hide internal directories.