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

18 lines (17 loc) 828 B
import { IWidget } from "aws-cdk-lib/aws-cloudwatch"; import { IDashboardSegment } from "./DashboardSegment"; import { IDynamicDashboardSegment } from "./DynamicDashboardSegment"; export declare class SingleWidgetDashboardSegment implements IDashboardSegment, IDynamicDashboardSegment { protected readonly widget: IWidget; protected readonly dashboardsToInclude: string[]; /** * Create a dashboard segment representing a single widget. * @param widget widget to add * @param dashboardsToInclude list of dashboard names which to show this widget on. Defaults to the default dashboards. */ constructor(widget: IWidget, dashboardsToInclude?: string[]); widgetsForDashboard(name: string): IWidget[]; alarmWidgets(): IWidget[]; summaryWidgets(): IWidget[]; widgets(): IWidget[]; }