kibana/x-pack/plugins/apm/common/latency_aggregation_types.ts
2021-04-08 13:26:43 +02:00

21 lines
545 B
TypeScript

/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* 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.
*/
import * as t from 'io-ts';
export enum LatencyAggregationType {
avg = 'avg',
p99 = 'p99',
p95 = 'p95',
}
export const latencyAggregationTypeRt = t.union([
t.literal(LatencyAggregationType.avg),
t.literal(LatencyAggregationType.p95),
t.literal(LatencyAggregationType.p99),
]);