cdk-monitoring-constructs
Version:
[](https://gitpod.io/#https://github.com/cdklabs/cdk-monitoring-constructs) [](https://badge
19 lines (18 loc) • 811 B
TypeScript
import { DimensionHash } from "aws-cdk-lib/aws-cloudwatch";
import { CfnWebACL } from "aws-cdk-lib/aws-wafv2";
import { MetricFactory } from "../../common";
export interface WafV2MetricFactoryProps {
readonly region?: string;
readonly acl: CfnWebACL;
}
/**
* https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html
*/
export declare class WafV2MetricFactory {
protected readonly metricFactory: MetricFactory;
protected readonly dimensions: DimensionHash;
constructor(metricFactory: MetricFactory, props: WafV2MetricFactoryProps);
metricAllowedRequests(): import("../../common").MetricWithAlarmSupport;
metricBlockedRequests(): import("../../common").MetricWithAlarmSupport;
metricBlockedRequestsRate(): import("../../common").MetricWithAlarmSupport;
}