1 | import { Metric, MetricOptions } from '@aws-cdk/aws-cloudwatch';
|
2 | import { Resource } from '@aws-cdk/core';
|
3 | import { Construct } from 'constructs';
|
4 | import { ILogGroup, MetricFilterOptions } from './log-group';
|
5 |
|
6 |
|
7 |
|
8 | export interface MetricFilterProps extends MetricFilterOptions {
|
9 | |
10 |
|
11 |
|
12 | readonly logGroup: ILogGroup;
|
13 | }
|
14 |
|
15 |
|
16 |
|
17 | export declare class MetricFilter extends Resource {
|
18 | private readonly metricName;
|
19 | private readonly metricNamespace;
|
20 | constructor(scope: Construct, id: string, props: MetricFilterProps);
|
21 | /**
|
22 | * Return the given named metric for this Metric Filter
|
23 | *
|
24 | * @default avg over 5 minutes
|
25 | */
|
26 | metric(props?: MetricOptions): Metric;
|
27 | }
|