1 Resposta
- Mais recentes
- Mais votos
- Mais comentários
0
Hi, sorry to hear that the documentation is not clear enough. You found documentation that explains how to create an alarm on a metric math expression: creating an alarm on a metrics insights query works exactly the same way, simply write the SQL metrics insights query as your metric math expression.
Here is an example in yaml:
Type: AWS::CloudWatch::Alarm
Properties:
AlarmName: MI_Alarm_sample
ActionsEnabled: true
OKActions: []
AlarmActions: []
InsufficientDataActions: []
Dimensions: []
EvaluationPeriods: 1
DatapointsToAlarm: 1
Threshold: 0
ComparisonOperator: LessThanOrEqualToThreshold
TreatMissingData: missing
Metrics:
- Id: q1
ReturnData: true
Expression: SELECT AVG(visits) FROM SCHEMA("SITES/TRAFFIC", site)
Period: 300
respondido há 6 meses
Conteúdo relevante
- AWS OFICIALAtualizada há 2 anos
- AWS OFICIALAtualizada há 3 anos
- AWS OFICIALAtualizada há 2 anos
- AWS OFICIALAtualizada há 2 anos