UNPKG

cdk-monitoring-constructs

Version:

[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/cdklabs/cdk-monitoring-constructs) [![NPM version](https://badge.fury.io/js/cdk-monitoring-constructs.svg)](https://badge

26 lines (25 loc) 712 B
import { AlarmStatusWidget, IAlarm } from "aws-cdk-lib/aws-cloudwatch"; export interface AlarmMatrixWidgetProps { /** * widget title * @default - no title */ readonly title?: string; /** * desired height * @default - auto calculated based on alarm number (3 to 8) */ readonly height?: number; /** * list of alarms to show */ readonly alarms: IAlarm[]; } /** * Wrapper of Alarm Status Widget which auto-calcultes height based on the number of alarms. * Always takes the maximum width. */ export declare class AlarmMatrixWidget extends AlarmStatusWidget { constructor(props: AlarmMatrixWidgetProps); private static getRecommendedHeight; }