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

20 lines (19 loc) 826 B
import { BaseService } from "aws-cdk-lib/aws-ecs"; import { MetricFactory } from "../../common"; /** * Props to create BaseServiceMetricFactory. */ export interface BaseServiceMetricFactoryProps { readonly service: BaseService; } /** * Metric factory for a base service (parent class for e.g. Fargate and EC2 services). */ export declare class BaseServiceMetricFactory { protected readonly metricFactory: MetricFactory; protected readonly service: BaseService; constructor(metricFactory: MetricFactory, props: BaseServiceMetricFactoryProps); metricClusterCpuUtilisationInPercent(): import("../../common").MetricWithAlarmSupport; metricClusterMemoryUtilisationInPercent(): import("../../common").MetricWithAlarmSupport; metricRunningTaskCount(): import("../../common").MetricWithAlarmSupport; }