我不确定需要输入什么值:在AWS :: Serverless :: API的延迟警报的维度下
我尝试过值:!Ref ApiGatewayApi
和!Ref ApiGatewayApi.stage
和!Ref ApiGatewayApi.Deployment
并尝试了!GetAtt的一些组合,但是由于我不确定要放置什么参数而Ref没
CountAlarmApiGateway:
Type: 'AWS::CloudWatch::Alarm'
Properties:
AlarmDescription: Time from receiving and returning client request
ComparisonOperator: LessThanThreshold
Namespace: AWS/ApiGateway
Threshold: '1'
MetricName: Latency
DatapointsToAlarm: 1
EvaluationPeriods: 1
InsufficientDataActions: Insufficient Data
Period: '60'
Dimensions:
- Name: ApiName
Value: !Ref ApiGatewayApi
TreatMissingData: missing
Statistic: Average
代码确实部署在CloudFormation中,但我没有实际的ApiGateway名称,低于我要查找的值 我正在寻找的是stackname-ApiGatewayName