-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: feat(cloudwatch): enable expressions and multiple metrics #4942
Conversation
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thanks for all the hard work and for writing such a thoughtful PR description! However, I'm afraid I have to rain on your parade a little... we cannot accept the level of breaking changes you've introduced here. People will be using many of the code paths that are now broken, and we really cannot afford to break existing code, however much we would have liked to have had a different API previously. Whatever we do, it will have to be in a way that doesn't break existing call paths. I haven't looked at the changes in much detail yet, but this will probably mean introducing new types and/or methods. |
@rix0rrr Thanks for your reply. I know this has a few breaking changes, that is why I listed them and asked which ones (if any) are acceptable. I expected this and my plan is to change this PR to reduce the broken changes, but I did not want to assume which APIs are most important without some feedback. I would understand if you would rather reject this PR, I had fun creating it :) But kindly review it first as well as this related PR #1396, I think this feature will require at least some breaking changes. |
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
4 similar comments
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
Superseded by #5582 |
fixes #1077
Introduction
Hi,
Issue #1077 is not an easy one, but I thought I'd give it a go. This is still a WIP/RFC, I want to get feedback as soon as possible, especially if the decisions made are not suitable for the maintainers or if I made wrong assumptions about the APIs.
Thanks :)
Approach
Basic usage
Graphs
Alarms
Todo
Lint Exceptions
"no-unused-type:@aws-cdk/aws-cloudwatch.MetricOption"
Used by other modules, not sure yet if I should change them.
"props-struct-name:@aws-cdk/aws-cloudwatch.IAlarm"
I think this another false positive.
"no-unused-type:@aws-cdk/aws-cloudwatch.MetricRenderingProperties"
False-positive for the following:
Breaking changes (WIP)
Metric
method. You can only create an alarm using theAlarm
constructor.GraphWidget
no longer has a left and right array of metrics, just 1 array of time seriesIMetric
no longer has the methodtoGraphConfig
, you can use use the methodtoJson
instead.id
property is added toMetric
, themetricName
property is used ifid
is not undefined.Alarm
takes a union ofComplexAlarmProps
andSimpleAlarmProps
metric
property is no longer required inAlarm
metrics
property has been renamed to timeseries inSingleValueWidgetProps
Some of the breaking changes above can be avoided, which ones are you OK with?
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license