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

21 lines (20 loc) 921 B
import { IWidget } from "aws-cdk-lib/aws-cloudwatch"; import { IDashboardFactoryProps } from "./IDashboardFactory"; export interface IDynamicDashboardSegment { /** * Returns widgets for the requested dashboard type. * @param name name of dashboard for which widgets are generated. */ widgetsForDashboard(name: string): IWidget[]; } export declare class StaticSegmentDynamicAdapter implements IDynamicDashboardSegment { protected readonly props: IDashboardFactoryProps; constructor(props: IDashboardFactoryProps); /** * Adapts an IDashboardSegment to the IDynamicDashboardSegment interface by using * overrideProps to determine if a segment should be shown on a specific dashboard. * The default values are true, so consumers must set these to false if they would * like to hide these items from dashboards */ widgetsForDashboard(name: string): IWidget[]; }