[5.0.0](https://github.com/cdklabs/cdk-monitoring-constructs/compare/v4.0.9...v5.0.0) (2023-06-01)
⚠ BREAKING CHANGES
* **dashboards:** handle dynamic dashboards in SingleWidgetDashboardSegment (373)
* `addToSummary` and `addToAlarm` props have been removed
* To control dashboard visibility of this segment, please use `MonitoringDashboardsOverrideProps` in calls to `addSegment` instead.
* No action is required if you were not providing these props
* `dashboardsToInclude` prop has been added
* If you would like to use `SingleWidgetDashboardSegment` with dynamic dashboards, provide the list of dashboards on which this segment should show.
Before:
ts
// Adds single widget to detail dashboard only
facade.addSegment(
new SingleWidgetDashboardSegment(new TextWidget({ markdown: "Simple Dashboard Segment" }), false, false)
);
After:
ts
// Adds single widget to detail dashboard only
facade.addSegment(
new SingleWidgetDashboardSegment(new TextWidget({ markdown: "Simple Dashboard Segment" })),
{
addToSummaryDashboard: false,
addToAlarmDashboard: false,
addToDetailDashboard: true,
}
);
Bug Fixes
* **dashboards:** handle dynamic dashboards in SingleWidgetDashboardSegment ([373](https://github.com/cdklabs/cdk-monitoring-constructs/issues/373)) ([18786c4](https://github.com/cdklabs/cdk-monitoring-constructs/commit/18786c4cdbe5772972205030a8ef84289b784c5e))