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

39 lines (38 loc) 2.3 kB
import { AlarmFactory, CustomAlarmThreshold } from "../../alarm"; import { MetricWithAlarmSupport } from "../../metric"; export declare enum OpenSearchClusterStatus { RED = "red", YELLOW = "yellow" } export declare enum ElasticsearchClusterStatus { RED = "red", YELLOW = "yellow" } export interface OpenSearchClusterStatusCustomization extends CustomAlarmThreshold { readonly status: OpenSearchClusterStatus | ElasticsearchClusterStatus; } export interface OpenSearchClusterIndexWritesBlockedThreshold extends CustomAlarmThreshold { readonly maxBlockedWrites: number; } export interface OpenSearchClusterNodesThreshold extends CustomAlarmThreshold { readonly minNodes: number; } export interface OpenSearchClusterAutomatedSnapshotFailureThreshold extends CustomAlarmThreshold { readonly maxFailures: number; } export interface OpenSearchKmsKeyErrorThreshold extends CustomAlarmThreshold { readonly maxErrors: number; } export interface OpenSearchKmsKeyInaccessibleThreshold extends CustomAlarmThreshold { readonly maxAccessAttempts: number; } export declare class OpenSearchClusterAlarmFactory { protected readonly alarmFactory: AlarmFactory; constructor(alarmFactory: AlarmFactory); addClusterStatusAlarm(metric: MetricWithAlarmSupport, props: OpenSearchClusterStatusCustomization, disambiguator?: string): import("../../alarm").AlarmWithAnnotation; addClusterIndexWritesBlockedAlarm(metric: MetricWithAlarmSupport, props: OpenSearchClusterIndexWritesBlockedThreshold, disambiguator?: string): import("../../alarm").AlarmWithAnnotation; addClusterNodeCountAlarm(metric: MetricWithAlarmSupport, props: OpenSearchClusterNodesThreshold, disambiguator?: string): import("../../alarm").AlarmWithAnnotation; addAutomatedSnapshotFailureAlarm(metric: MetricWithAlarmSupport, props: OpenSearchClusterAutomatedSnapshotFailureThreshold, disambiguator?: string): import("../../alarm").AlarmWithAnnotation; addKmsKeyErrorAlarm(metric: MetricWithAlarmSupport, props: OpenSearchKmsKeyErrorThreshold, disambiguator?: string): import("../../alarm").AlarmWithAnnotation; addKmsKeyInaccessibleAlarm(metric: MetricWithAlarmSupport, props: OpenSearchKmsKeyInaccessibleThreshold, disambiguator?: string): import("../../alarm").AlarmWithAnnotation; }