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

15 lines (14 loc) 839 B
import { AlarmFactory, CustomAlarmThreshold } from "../../alarm"; import { MetricWithAlarmSupport } from "../../metric"; export interface LowConnectionCountThreshold extends CustomAlarmThreshold { readonly minConnectionCount: number; } export interface HighConnectionCountThreshold extends CustomAlarmThreshold { readonly maxConnectionCount: number; } export declare class ConnectionAlarmFactory { protected readonly alarmFactory: AlarmFactory; constructor(alarmFactory: AlarmFactory); addMinConnectionCountAlarm(metric: MetricWithAlarmSupport, props: LowConnectionCountThreshold, disambiguator?: string): import("../../alarm").AlarmWithAnnotation; addMaxConnectionCountAlarm(metric: MetricWithAlarmSupport, props: HighConnectionCountThreshold, disambiguator?: string): import("../../alarm").AlarmWithAnnotation; }