cdk-monitoring-constructs
Version:
[](https://badge.fury.io/js/cdk-monitoring-constructs) [](https://m
42 lines (41 loc) • 2.7 kB
TypeScript
import { DimensionsMap } from "aws-cdk-lib/aws-cloudwatch";
import { IDatabaseCluster, ServerlessCluster } from "aws-cdk-lib/aws-rds";
import { BaseMetricFactory, BaseMetricFactoryProps, LatencyType, MetricFactory } from "../../common";
export interface RdsClusterMetricFactoryProps extends BaseMetricFactoryProps {
/**
* database cluster identifier (either this or `cluster` need to be specified)
* @deprecated please use `cluster` instead
*/
readonly clusterIdentifier?: string;
/**
* database cluster (either this or `clusterIdentifier` need to be specified)
*/
readonly cluster?: IDatabaseCluster | ServerlessCluster;
}
export declare class RdsClusterMetricFactory extends BaseMetricFactory<RdsClusterMetricFactoryProps> {
readonly clusterIdentifier: string;
readonly cluster?: IDatabaseCluster | ServerlessCluster;
protected readonly dimensionsMap: DimensionsMap;
constructor(metricFactory: MetricFactory, props: RdsClusterMetricFactoryProps);
private static resolveDbClusterIdentifier;
private isServerlessCluster;
metricTotalConnectionCount(): import("../../common").MetricWithAlarmSupport;
metricFreeStorageInBytes(): import("../../common").MetricWithAlarmSupport;
metricUsedStorageInBytes(): import("../../common").MetricWithAlarmSupport;
metricDiskSpaceUsageInPercent(): import("../../common").MetricWithAlarmSupport;
metricAverageCpuUsageInPercent(): import("../../common").MetricWithAlarmSupport;
metricSelectLatencyInMillis(latencyType: LatencyType): import("../../common").MetricWithAlarmSupport;
metricInsertLatencyInMillis(latencyType: LatencyType): import("../../common").MetricWithAlarmSupport;
metricUpdateLatencyInMillis(latencyType: LatencyType): import("../../common").MetricWithAlarmSupport;
metricDeleteLatencyInMillis(latencyType: LatencyType): import("../../common").MetricWithAlarmSupport;
metricCommitLatencyInMillis(latencyType: LatencyType): import("../../common").MetricWithAlarmSupport;
metricSelectLatencyP90InMillis(): import("../../common").MetricWithAlarmSupport;
metricInsertLatencyP90InMillis(): import("../../common").MetricWithAlarmSupport;
metricUpdateLatencyP90InMillis(): import("../../common").MetricWithAlarmSupport;
metricDeleteLatencyP90InMillis(): import("../../common").MetricWithAlarmSupport;
metricCommitLatencyP90InMillis(): import("../../common").MetricWithAlarmSupport;
metricReadIOPS(): import("../../common").MetricWithAlarmSupport;
metricWriteIOPS(): import("../../common").MetricWithAlarmSupport;
metricServerlessDatabaseCapacity(): import("../../common").MetricWithAlarmSupport;
private metric;
}