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

33 lines (32 loc) 2.19 kB
import { AlarmFactory, CustomAlarmThreshold } from "../../alarm"; import { MetricWithAlarmSupport } from "../../metric"; export declare enum UsageType { P50 = "P50", P70 = "P70", P90 = "P90", P99 = "P99", P999 = "P999", P9999 = "P9999", P100 = "P100", AVERAGE = "Average", MAX = "Maximum" } export interface UsageThreshold extends CustomAlarmThreshold { readonly maxUsagePercent: number; } export interface UsageCountThreshold extends CustomAlarmThreshold { readonly maxUsageCount: number; } export declare class UsageAlarmFactory { protected readonly alarmFactory: AlarmFactory; constructor(alarmFactory: AlarmFactory); addMaxCpuUsagePercentAlarm(percentMetric: MetricWithAlarmSupport, props: UsageThreshold, disambiguator?: string): import("../../alarm").AlarmWithAnnotation; addMaxMasterCpuUsagePercentAlarm(percentMetric: MetricWithAlarmSupport, props: UsageThreshold, disambiguator?: string): import("../../alarm").AlarmWithAnnotation; addMaxMemoryUsagePercentAlarm(percentMetric: MetricWithAlarmSupport, props: UsageThreshold, disambiguator?: string): import("../../alarm").AlarmWithAnnotation; addMemoryUsagePercentAlarm(percentMetric: MetricWithAlarmSupport, props: UsageThreshold, usageType: UsageType, disambiguator?: string): import("../../alarm").AlarmWithAnnotation; addMaxMasterMemoryUsagePercentAlarm(percentMetric: MetricWithAlarmSupport, props: UsageThreshold, disambiguator?: string): import("../../alarm").AlarmWithAnnotation; addMaxDiskUsagePercentAlarm(percentMetric: MetricWithAlarmSupport, props: UsageThreshold, disambiguator?: string): import("../../alarm").AlarmWithAnnotation; addMaxHeapMemoryAfterGCUsagePercentAlarm(percentMetric: MetricWithAlarmSupport, props: UsageThreshold, disambiguator?: string): import("../../alarm").AlarmWithAnnotation; addMaxFileDescriptorPercentAlarm(percentMetric: MetricWithAlarmSupport, props: UsageThreshold, disambiguator?: string): import("../../alarm").AlarmWithAnnotation; addMaxThreadCountUsageAlarm(percentMetric: MetricWithAlarmSupport, props: UsageCountThreshold, disambiguator?: string): import("../../alarm").AlarmWithAnnotation; }