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

19 lines (18 loc) 811 B
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; }