cdk-monitoring-constructs
Version:
[](https://badge.fury.io/js/cdk-monitoring-constructs) [](https://m
23 lines (22 loc) • 1.32 kB
TypeScript
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;
}