-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Closed
Copy link
Labels
@aws-cdk/aws-cloudwatchRelated to Amazon CloudWatchRelated to Amazon CloudWatchbugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortgood first issueRelated to contributions. See CONTRIBUTING.mdRelated to contributions. See CONTRIBUTING.mdneeds-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.p1
Description
Just getting this with v1.92 (worked fine <=1.91)
updating Cloudwatch alarm yields: Invalid metrics list (Service: AmazonCloudWatch; Status Code: 400; Error Code: ValidationError
Reproduction Steps
alarm = metric.create_alarm(
self,
id=id_alarm,
alarm_description=kwargs['alarm_description'],
threshold=kwargs['threshold'],
period=core.Duration.minutes(kwargs['period_in_minutes']),
comparison_operator=cw.ComparisonOperator.GREATER_THAN_OR_EQUAL_TO_THRESHOLD,
evaluation_periods=kwargs['evaluation_periods'],
statistic=kwargs['statistic']
)these are the parameters I'm passing to it:
{
"metric_name": "5XXError",
"label": "HTTP 5XX",
"statistic": "sum",
"color": "#d62728",
"period_in_minutes": 1,
"alarm": {
"alarm_description": "5XX at 1 threshold",
"threshold": 1,
"period_in_minutes": 5,
"evaluation_periods": 1,
"statistic": "sum"
}
}
What did you expect to happen?
a Cloudwatch alarm resource created/updated
What actually happened?
UPDATE_FAILED | AWS::CloudWatch::Alarm |
Invalid metrics list (Service: AmazonCloudWatch; Status Code: 400; Error Code: ValidationError;Environment
- CDK CLI Version : 1.92
- Framework Version: 1.92
- Node.js Version: 10
- OS : amazonlinux2-x86_64-standard:1.0
- Language (Version): Python (3.7)
Other
This is 🐛 Bug Report
Metadata
Metadata
Labels
@aws-cdk/aws-cloudwatchRelated to Amazon CloudWatchRelated to Amazon CloudWatchbugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortgood first issueRelated to contributions. See CONTRIBUTING.mdRelated to contributions. See CONTRIBUTING.mdneeds-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.p1