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

CloudWatch Widget: Support time range value #4647

Closed
1 of 2 tasks
Amri91 opened this issue Oct 23, 2019 · 0 comments · Fixed by #4649
Closed
1 of 2 tasks

CloudWatch Widget: Support time range value #4647

Amri91 opened this issue Oct 23, 2019 · 0 comments · Fixed by #4649
Assignees
Labels
@aws-cdk/aws-cloudwatch Related to Amazon CloudWatch feature-request A feature should be added or improved. in-progress This issue is being actively worked on.

Comments

@Amri91
Copy link
Contributor

Amri91 commented Oct 23, 2019

As per CDK documentation, there is no way to define a widget that looks like this.

{
    "view": "singleValue",
    "region": "us-east-1",
    "metrics": [
        [someMetric]
    ],
    "setPeriodToTimeRange": true // <--
}

Use Case

I want to display a widget on my CloudWatch dashboard that uses my Route53 health checks to show a rudimentary uptime. Currently, I have to use the console to switch the widgets to use time range value instead of setting it using my current CDK code.

Proposed Solution

Add a new property in the SingleValueWidgetProps and use it in the SingleValueWidget toJson function.

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

@Amri91 Amri91 added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Oct 23, 2019
@SomayaB SomayaB added in-progress This issue is being actively worked on. @aws-cdk/aws-cloudwatch Related to Amazon CloudWatch labels Oct 23, 2019
@SomayaB SomayaB removed the needs-triage This issue or PR still needs to be triaged. label Oct 23, 2019
@mergify mergify bot closed this as completed in #4649 Oct 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-cloudwatch Related to Amazon CloudWatch feature-request A feature should be added or improved. in-progress This issue is being actively worked on.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants