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

27 lines (26 loc) 1.37 kB
import { DimensionsMap } from "aws-cdk-lib/aws-cloudwatch"; import { Canary } from "aws-cdk-lib/aws-synthetics"; import { BaseMetricFactory, BaseMetricFactoryProps, MetricFactory, RateComputationMethod } from "../../common/index"; export interface SyntheticsCanaryMetricFactoryProps extends BaseMetricFactoryProps { /** * CloudWatch Canary to monitor */ readonly canary: Canary; /** * Method used to calculate relative rates * @default - average */ readonly rateComputationMethod?: RateComputationMethod; } export declare class SyntheticsCanaryMetricFactory extends BaseMetricFactory<SyntheticsCanaryMetricFactoryProps> { protected readonly canary: Canary; 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; }