feat(cloudwatch): support for metric math#5582
Conversation
|
Title does not follow the guidelines of Conventional Commits. Please adjust title before merge. |
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 |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
…policy.ts Co-Authored-By: Romain Marcadier-Muller <romain.muller@telecomnancy.net>
…ng-scaling-policy.ts Co-Authored-By: Romain Marcadier-Muller <romain.muller@telecomnancy.net>
Pull request has been modified.
Co-Authored-By: Romain Marcadier-Muller <romain.muller@telecomnancy.net>
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 |
eladb
left a comment
There was a problem hiding this comment.
- Change title to "feat(cloudwatch): metric math"
- Add PR description which briefly describes what's changed
|
|
||
| ```ts | ||
| const metric = new Metric({ | ||
| namespace: 'MyNamespace', |
| expression: "errors + faults", | ||
| usingMetrics: { | ||
| errors: myConstruct.metricErrors(), | ||
| faults: myConstruct.metricFaults(), | ||
| } | ||
| }) |
There was a problem hiding this comment.
Do you think it might be possible to also provide the option to simply embed metric objects (via tokens) into the expression like so:
expression: `${myConstruct.metricErrors()} + ${myConstruct.metricFaults()}`I feel this might be a much more intuitive API for most users... And less error prone.
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 |
…k into pr/AhmedSedek/5582
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license