1 | import { Statistic } from '../metric-types';
|
2 | export interface SimpleStatistic {
|
3 | type: 'simple';
|
4 | statistic: Statistic;
|
5 | }
|
6 | export interface PercentileStatistic {
|
7 | type: 'percentile';
|
8 | percentile: number;
|
9 | }
|
10 | export interface GenericStatistic {
|
11 | type: 'generic';
|
12 | statistic: string;
|
13 | }
|
14 | /**
|
15 | * Parse a statistic, returning the type of metric that was used (simple or percentile)
|
16 | */
|
17 | export declare function parseStatistic(stat: string): SimpleStatistic | PercentileStatistic | GenericStatistic;
|
18 | export declare function normalizeStatistic(stat: string): string;
|