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

70 lines (69 loc) 2.84 kB
import { IHttpApi } from "@aws-cdk/aws-apigatewayv2-alpha"; import { DimensionsMap } from "aws-cdk-lib/aws-cloudwatch"; import { LatencyType, MetricFactory, RateComputationMethod } from "../../common"; export interface ApiGatewayV2HttpApiMetricFactoryProps { readonly api: IHttpApi; /** * @default - $default */ readonly apiStage?: string; /** * On undefined value is not set in dimensions */ readonly apiMethod?: string; /** * On undefined value is not set in dimensions */ readonly apiResource?: string; /** * @default - true */ readonly fillTpsWithZeroes?: boolean; /** * @default - average */ readonly rateComputationMethod?: RateComputationMethod; } export declare class ApiGatewayV2HttpApiMetricFactory { protected readonly metricFactory: MetricFactory; protected readonly fillTpsWithZeroes: boolean; protected readonly rateComputationMethod: RateComputationMethod; protected readonly dimensionsMap: DimensionsMap; constructor(metricFactory: MetricFactory, props: ApiGatewayV2HttpApiMetricFactoryProps); /** * @deprecated use metricInvocationRate */ metricTps(): import("../../common").MetricWithAlarmSupport; metricInvocationRate(): import("../../common").MetricWithAlarmSupport; metricInvocationCount(): import("../../common").MetricWithAlarmSupport; metric4xxCount(): import("../../common").MetricWithAlarmSupport; metric4xxRate(): import("../../common").MetricWithAlarmSupport; metric5xxCount(): import("../../common").MetricWithAlarmSupport; metric5xxRate(): import("../../common").MetricWithAlarmSupport; /** * @deprecated use metricLatencyInMillis instead */ metricLatencyP50InMillis(): import("../../common").MetricWithAlarmSupport; /** * @deprecated use metricLatencyInMillis instead */ metricLatencyP90InMillis(): import("../../common").MetricWithAlarmSupport; /** * @deprecated use metricLatencyInMillis instead */ metricLatencyP99InMillis(): import("../../common").MetricWithAlarmSupport; /** * @deprecated use metricIntegrationLatencyInMillis instead */ metricIntegrationLatencyP50InMillis(): import("../../common").MetricWithAlarmSupport; /** * @deprecated use metricIntegrationLatencyInMillis instead */ metricIntegrationLatencyP90InMillis(): import("../../common").MetricWithAlarmSupport; /** * @deprecated use metricIntegrationLatencyInMillis instead */ metricIntegrationLatencyP99InMillis(): import("../../common").MetricWithAlarmSupport; metricIntegrationLatencyInMillis(latencyType: LatencyType): import("../../common").MetricWithAlarmSupport; metricLatencyInMillis(latencyType: LatencyType): import("../../common").MetricWithAlarmSupport; }