Skip to content
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

feat(cloudwatch): allow arbitrary statistics in Metric and Alarm #15387

Merged
merged 2 commits into from
Jul 2, 2021

Conversation

madeline-k
Copy link
Contributor

@madeline-k madeline-k commented Jul 1, 2021

This change maintains the existing logic which parses statistic strings provided by the user for Simple statistics or Percentile statistics, but it also allows for any string to be passed.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link

gitpod-io bot commented Jul 1, 2021

@madeline-k madeline-k marked this pull request as draft July 1, 2021 18:15
@mergify
Copy link
Contributor

mergify bot commented Jul 1, 2021

Title does not follow the guidelines of Conventional Commits. Please adjust title before merge.

@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jul 1, 2021
@madeline-k madeline-k added the pr-linter/exempt-readme The PR linter will not require README changes label Jul 1, 2021
@njlynch njlynch changed the title feat(aws-cloudwatch) allow any string for cloudwatch statistics to su… feat(aws-cloudwatch) allow any string for cloudwatch statistics to support a wider range of statistics Jul 2, 2021
@njlynch njlynch changed the title feat(aws-cloudwatch) allow any string for cloudwatch statistics to support a wider range of statistics feat(aws-cloudwatch): loosen restrictions on cloudwatch statistics Jul 2, 2021
@madeline-k madeline-k marked this pull request as ready for review July 2, 2021 16:20
@madeline-k madeline-k requested review from skinny85, a team and njlynch July 2, 2021 16:21
@skinny85 skinny85 changed the title feat(aws-cloudwatch): loosen restrictions on cloudwatch statistics feat(cloudwatch): allow arbitrary statistics in Metric and Alarm Jul 2, 2021
Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@mergify
Copy link
Contributor

mergify bot commented Jul 2, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 6e74311
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit 86a44f9 into aws:master Jul 2, 2021
@mergify
Copy link
Contributor

mergify bot commented Jul 2, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

upparekh pushed a commit to upparekh/aws-cdk that referenced this pull request Jul 8, 2021
…#15387)

This change maintains the existing logic which parses statistic strings provided by the user for Simple statistics or Percentile statistics, but it also allows for any string to be passed.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Comment on lines +235 to +243
'metric accepts a variety of statistics'(test: Test) {
new Metric({
namespace: 'Test',
metricName: 'Metric',
statistic: 'myCustomStatistic',
});

test.done();
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test feels insufficient. You should verify that 'myCustomStatistic' is actually used by plugging into an alarm or widget.

hollanddd pushed a commit to hollanddd/aws-cdk that referenced this pull request Aug 26, 2021
…#15387)

This change maintains the existing logic which parses statistic strings provided by the user for Simple statistics or Percentile statistics, but it also allows for any string to be passed.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS. pr-linter/exempt-readme The PR linter will not require README changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants