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

50 lines (49 loc) 2.38 kB
import { IAutoScalingGroup } from "aws-cdk-lib/aws-autoscaling"; import { DimensionsMap } from "aws-cdk-lib/aws-cloudwatch"; import { BaseMetricFactory, BaseMetricFactoryProps, MetricFactory } from "../../common"; export interface AutoScalingGroupMetricFactoryProps extends BaseMetricFactoryProps { readonly autoScalingGroup: IAutoScalingGroup; } export declare class AutoScalingGroupMetricFactory extends BaseMetricFactory<AutoScalingGroupMetricFactoryProps> { protected readonly dimensionsMap: DimensionsMap; constructor(metricFactory: MetricFactory, props: AutoScalingGroupMetricFactoryProps); /** * The minimum size of the Auto Scaling group. */ metricGroupMinSize(): import("../../common").MetricWithAlarmSupport; /** * The maximum size of the Auto Scaling group. */ metricGroupMaxSize(): import("../../common").MetricWithAlarmSupport; /** * The number of instances that the Auto Scaling group attempts to maintain. */ metricGroupDesiredCapacity(): import("../../common").MetricWithAlarmSupport; /** * The number of instances that are running as part of the Auto Scaling group. This metric does not include instances that are pending or terminating. */ metricGroupInServiceInstances(): import("../../common").MetricWithAlarmSupport; /** * The number of instances that are pending. A pending instance is not yet in service. * This metric does not include instances that are in service or terminating. */ metricGroupPendingInstances(): import("../../common").MetricWithAlarmSupport; /** * The number of instances that are in a Standby state. * Instances in this state are still running but are not actively in service. */ metricGroupStandbyInstances(): import("../../common").MetricWithAlarmSupport; /** * The number of instances that are in the process of terminating. * This metric does not include instances that are in service or pending. */ metricGroupTerminatingInstances(): import("../../common").MetricWithAlarmSupport; /** * The total number of instances in the Auto Scaling group. * This metric identifies the number of instances that are in service, pending, and terminating. */ metricGroupTotalInstances(): import("../../common").MetricWithAlarmSupport; private metric; }