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

28 lines (27 loc) 1.29 kB
import { Canary } from "@aws-cdk/aws-synthetics-alpha"; import { DimensionsMap } from "aws-cdk-lib/aws-cloudwatch"; import { MetricFactory, RateComputationMethod } from "../../common/index"; export interface SyntheticsCanaryMetricFactoryProps { /** * CloudWatch Canary to monitor */ readonly canary: Canary; /** * Method used to calculate relative rates * @default - average */ readonly rateComputationMethod?: RateComputationMethod; } export declare class SyntheticsCanaryMetricFactory { protected readonly canary: Canary; protected readonly metricFactory: MetricFactory; protected readonly rateComputationMethod: RateComputationMethod; protected readonly dimensionsMap: DimensionsMap; constructor(metricFactory: MetricFactory, props: SyntheticsCanaryMetricFactoryProps); metricLatencyAverageInMillis(): import("../../common").MetricWithAlarmSupport; metricSuccessInPercent(): import("../../common").MetricWithAlarmSupport; metric4xxErrorCount(): import("../../common").MetricWithAlarmSupport; metric4xxErrorRate(): import("../../common").MetricWithAlarmSupport; metric5xxFaultCount(): import("../../common").MetricWithAlarmSupport; metric5xxFaultRate(): import("../../common").MetricWithAlarmSupport; }