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

23 lines (22 loc) 1.32 kB
import { AlarmFactory, CustomAlarmThreshold } from "../../alarm"; import { MetricWithAlarmSupport } from "../../metric"; export interface DaysToExpiryThreshold extends CustomAlarmThreshold { readonly minDaysToExpiry: number; } export interface MaxAgeThreshold extends CustomAlarmThreshold { readonly maxAgeInMillis: number; } export interface MaxOffsetLagThreshold extends CustomAlarmThreshold { readonly maxOffsetLag: number; } export interface DaysSinceUpdateThreshold extends CustomAlarmThreshold { readonly maxDaysSinceUpdate: number; } export declare class AgeAlarmFactory { protected readonly alarmFactory: AlarmFactory; constructor(alarmFactory: AlarmFactory); addDaysToExpiryAlarm(metric: MetricWithAlarmSupport, props: DaysToExpiryThreshold, disambiguator?: string): import("../../alarm").AlarmWithAnnotation; addIteratorMaxAgeAlarm(metric: MetricWithAlarmSupport, props: MaxAgeThreshold, disambiguator?: string): import("../../alarm").AlarmWithAnnotation; addMaxOffsetLagAlarm(metric: MetricWithAlarmSupport, props: MaxOffsetLagThreshold, disambiguator?: string): import("../../alarm").AlarmWithAnnotation; addDaysSinceUpdateAlarm(metric: MetricWithAlarmSupport, props: DaysSinceUpdateThreshold, disambiguator?: string): import("../../alarm").AlarmWithAnnotation; }