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

27 lines (26 loc) 1.4 kB
import { DimensionsMap } from "aws-cdk-lib/aws-cloudwatch"; import { IBaseService } from "aws-cdk-lib/aws-ecs"; import { BaseMetricFactory, BaseMetricFactoryProps, MetricFactory } from "../../common"; /** * Props to create BaseServiceMetricFactory. */ export interface BaseServiceMetricFactoryProps extends BaseMetricFactoryProps { readonly service: IBaseService; } /** * Metric factory for a base service (parent class for e.g. Fargate and EC2 services). */ export declare class BaseServiceMetricFactory extends BaseMetricFactory<BaseServiceMetricFactoryProps> { protected readonly dimensionsMap: DimensionsMap; /** * @deprecated This isn't required by cdk-monitoring-constructs anymore; use your own reference. */ protected readonly service: IBaseService; constructor(metricFactory: MetricFactory, props: BaseServiceMetricFactoryProps); metricClusterCpuUtilisationInPercent(): import("../../common").MetricWithAlarmSupport; metricClusterMemoryUtilisationInPercent(): import("../../common").MetricWithAlarmSupport; metricRunningTaskCount(): import("../../common").MetricWithAlarmSupport; metricEphemeralStorageReserved(): import("../../common").MetricWithAlarmSupport; metricEphemeralStorageUtilized(): import("../../common").MetricWithAlarmSupport; metricEphemeralStorageUsageInPercent(): import("../../common").MetricWithAlarmSupport; }