cdk-monitoring-constructs
Version:
[](https://badge.fury.io/js/cdk-monitoring-constructs) [](https://m
20 lines (19 loc) • 686 B
TypeScript
import { Dashboard } from "aws-cdk-lib/aws-cloudwatch";
import { IDynamicDashboardSegment } from "./DynamicDashboardSegment";
/**
* This dashboard factory interface provides for dynamic dashboard generation through
* IDynamicDashboard segments which will return different content depending on the
* dashboard type.
*/
export interface IDynamicDashboardFactory {
/**
* Adds a dynamic dashboard segment.
* @param segment IDynamicDashboardSegment
*/
addDynamicSegment(segment: IDynamicDashboardSegment): void;
/**
* Gets the dashboard for the requested dashboard type.
* @param type
*/
getDashboard(type: string): Dashboard | undefined;
}