cdk-monitoring-constructs
Version:
[](https://gitpod.io/#https://github.com/cdklabs/cdk-monitoring-constructs) [](https://badge
32 lines (31 loc) • 1.52 kB
TypeScript
import { DimensionsMap } from "aws-cdk-lib/aws-cloudwatch";
import { MetricFactory } from "../../common";
export declare enum ElastiCacheClusterType {
MEMCACHED = 0,
REDIS = 1
}
export interface ElastiCacheClusterMetricFactoryProps {
/**
* Cluster to monitor
* @default - monitor all clusters
*/
readonly clusterId?: string;
}
/**
* @see https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/CacheMetrics.html
*/
export declare class ElastiCacheClusterMetricFactory {
protected readonly metricFactory: MetricFactory;
protected readonly dimensionsMap: DimensionsMap;
constructor(metricFactory: MetricFactory, props: ElastiCacheClusterMetricFactoryProps);
metricMaxItemCount(): import("../../common").MetricWithAlarmSupport;
metricEvictions(): import("../../common").MetricWithAlarmSupport;
metricAverageFreeableMemoryInBytes(): import("../../common").MetricWithAlarmSupport;
metricAverageUnusedMemoryInBytes(): import("../../common").MetricWithAlarmSupport;
metricAverageCachedItemsSizeInBytes(): import("../../common").MetricWithAlarmSupport;
metricAverageSwapUsageInBytes(): import("../../common").MetricWithAlarmSupport;
metricMaxCpuUtilizationInPercent(): import("../../common").MetricWithAlarmSupport;
metricAverageConnections(): import("../../common").MetricWithAlarmSupport;
metricNetworkBytesIn(): import("../../common").MetricWithAlarmSupport;
metricNetworkBytesOut(): import("../../common").MetricWithAlarmSupport;
}