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

39 lines (38 loc) 1.84 kB
import { IGraphqlApi } from "aws-cdk-lib/aws-appsync"; import { DimensionsMap } from "aws-cdk-lib/aws-cloudwatch"; import { BaseMetricFactory, BaseMetricFactoryProps, MetricFactory, RateComputationMethod } from "../../common"; export interface AppSyncMetricFactoryProps extends BaseMetricFactoryProps { /** * the GraphQL API to monitor */ readonly api: IGraphqlApi; /** * whether the TPS should be filled with zeroes * @default - true */ readonly fillTpsWithZeroes?: boolean; /** * method to compute TPS * @default - average */ readonly rateComputationMethod?: RateComputationMethod; } export declare class AppSyncMetricFactory extends BaseMetricFactory<AppSyncMetricFactoryProps> { protected readonly fillTpsWithZeroes: boolean; protected readonly rateComputationMethod: RateComputationMethod; protected readonly dimensionsMap: DimensionsMap; constructor(metricFactory: MetricFactory, props: AppSyncMetricFactoryProps); /** * @deprecated use metricRequestRate */ metricTps(): import("../../common").MetricWithAlarmSupport; metricRequestRate(rateComputationMethod?: RateComputationMethod): import("../../common").MetricWithAlarmSupport; metricRequestCount(): import("../../common").MetricWithAlarmSupport; metricLatencyP50InMillis(): import("../../common").MetricWithAlarmSupport; metricLatencyP90InMillis(): import("../../common").MetricWithAlarmSupport; metricLatencyP99InMillis(): import("../../common").MetricWithAlarmSupport; metric4XXErrorCount(): import("../../common").MetricWithAlarmSupport; metric4XXErrorRate(): import("../../common").MetricWithAlarmSupport; metric5XXFaultCount(): import("../../common").MetricWithAlarmSupport; metric5XXFaultRate(): import("../../common").MetricWithAlarmSupport; }