cdk-monitoring-constructs
cdk-monitoring-constructs copied to clipboard
Add Period value from Widget Context in Lambda function for bitmap widget rendering
Version
1.22.6
Steps and/or minimal code example to reproduce
- Add renderingPreference: DashboardRenderingPreference.INTERACTIVE_AND_BITMAP to generate bitmap dashboards.
- Visit the generated Bitmap CW Dashboard in your AWS account.
- Set the period value for the dashboard to any value other than the set default value.
- Notice that there is no change in the datapoints for the metrics in dashboard widgets.
Expected behavior
The metric data for the widgets in bitmap dashboards should align with the set period value of the Bitmap dashboard.
Actual behavior
There is no change in the datapoints for the metrics in dashboard widgets.
Other details
No response
Some ideas:
- Maybe a period change event listener needs to be registered?
- We are maybe not using period from the context? https://github.com/aws-samples/cloudwatch-custom-widgets-samples/blob/main/README.md#is-the-custom-widget-passed-any-information-by-default
Yes, correct we need to pass the period from the context.