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) 910 B
import { MetricFactory, MetricWithAlarmSupport } from "../../common"; /** * Factory method to create appropriate metric factory based on the load balancer and target group type. * @param metricFactory metric factory * @param loadBalancer load balancer * @param targetGroup target group */ export declare function createLoadBalancerMetricFactory(metricFactory: MetricFactory, loadBalancer: any, targetGroup: any): ILoadBalancerMetricFactory; /** * Common interface for load-balancer based service metric factories. */ export interface ILoadBalancerMetricFactory { metricHealthyTaskCount(): MetricWithAlarmSupport; metricUnhealthyTaskCount(): MetricWithAlarmSupport; metricHealthyTaskInPercent(): MetricWithAlarmSupport; metricActiveConnectionCount(): MetricWithAlarmSupport; metricNewConnectionCount(): MetricWithAlarmSupport; metricProcessedBytesMin(): MetricWithAlarmSupport; }