/* * 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), ]);