Skip to content

feat(cloudfront): retrieve default distribution metrics#28894

Merged
mergify[bot] merged 8 commits intoaws:mainfrom
badmintoncryer:28893-defaultMetrics
Jan 31, 2024
Merged

feat(cloudfront): retrieve default distribution metrics#28894
mergify[bot] merged 8 commits intoaws:mainfrom
badmintoncryer:28893-defaultMetrics

Conversation

@badmintoncryer
Copy link
Copy Markdown
Contributor

@badmintoncryer badmintoncryer commented Jan 27, 2024

This PR implements functions to retrieve default distribution metrics.

declare const dist: cloudfront.Distribution

const metric = dist.metricRequests()

Closes #28893


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

@github-actions github-actions bot added admired-contributor [Pilot] contributed between 13-24 PRs to the CDK feature-request A feature should be added or improved. p2 labels Jan 27, 2024
@badmintoncryer badmintoncryer marked this pull request as ready for review January 29, 2024 16:21
Copy link
Copy Markdown
Member

@GavinZZ GavinZZ left a comment

Choose a reason for hiding this comment

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

Love it, a minor question.

@aws-cdk-automation aws-cdk-automation added the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Jan 30, 2024
@badmintoncryer
Copy link
Copy Markdown
Contributor Author

@GavinZZ Thank you for your review! I've updated comments. Please confirm it agin.

Copy link
Copy Markdown
Member

@GavinZZ GavinZZ left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you for making the changes and contributing!

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jan 31, 2024

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

@aws-cdk-automation aws-cdk-automation removed the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Jan 31, 2024
@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 02883c3
  • 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 8e115db into aws:main Jan 31, 2024
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jan 31, 2024

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

@badmintoncryer badmintoncryer deleted the 28893-defaultMetrics branch February 1, 2024 01:29
SankyRed pushed a commit that referenced this pull request Feb 8, 2024
This PR implements functions to retrieve [default distribution metrics](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/viewing-cloudfront-metrics.html).

```ts
declare const dist: cloudfront.Distribution

const metric = dist.metricRequests()
```

Closes #28893

----

*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

admired-contributor [Pilot] contributed between 13-24 PRs to the CDK feature-request A feature should be added or improved. p2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cloudfront: get default distribution metrics

3 participants