UNPKG

cdk-monitoring-constructs

Version:

[![NPM version](https://badge.fury.io/js/cdk-monitoring-constructs.svg)](https://badge.fury.io/js/cdk-monitoring-constructs) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.cdklabs/cdkmonitoringconstructs/badge.svg)](https://m

20 lines (19 loc) 686 B
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; }