cdk-monitoring-constructs
Version:
[](https://badge.fury.io/js/cdk-monitoring-constructs) [](https://m
27 lines (26 loc) • 1.37 kB
TypeScript
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;
}