@aws-cdk/aws-cloudwatch
Version:
The CDK Construct Library for AWS::CloudWatch
19 lines (18 loc) • 573 B
TypeScript
import { Statistic } from '../metric-types';
export interface SimpleStatistic {
type: 'simple';
statistic: Statistic;
}
export interface PercentileStatistic {
type: 'percentile';
percentile: number;
}
export interface GenericStatistic {
type: 'generic';
statistic: string;
}
/**
* Parse a statistic, returning the type of metric that was used (simple or percentile)
*/
export declare function parseStatistic(stat: string): SimpleStatistic | PercentileStatistic | GenericStatistic;
export declare function normalizeStatistic(stat: string): string;