2020-12-14 16:45:54 +01:00
|
|
|
/*
|
|
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
2021-02-04 03:12:39 +01:00
|
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
|
|
* 2.0.
|
2020-12-14 16:45:54 +01:00
|
|
|
*/
|
2021-02-04 03:12:39 +01:00
|
|
|
|
2020-12-14 16:45:54 +01:00
|
|
|
import * as t from 'io-ts';
|
|
|
|
|
|
|
|
export enum LatencyAggregationType {
|
|
|
|
avg = 'avg',
|
|
|
|
p99 = 'p99',
|
|
|
|
p95 = 'p95',
|
|
|
|
}
|
|
|
|
|
|
|
|
export const latencyAggregationTypeRt = t.union([
|
2021-04-08 13:26:43 +02:00
|
|
|
t.literal(LatencyAggregationType.avg),
|
|
|
|
t.literal(LatencyAggregationType.p95),
|
|
|
|
t.literal(LatencyAggregationType.p99),
|
2020-12-14 16:45:54 +01:00
|
|
|
]);
|