kibana/x-pack/plugins/apm/server/projections/typings.ts
Wylie Conlon 26d16dd093
[APM] Update aggregations to support script sources (#76429)
* [APM] Update aggregations to support script sources

* Fix whitespace

* Fix checks

* Explicitly require field in projection

Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2020-09-03 12:23:29 -04:00

24 lines
786 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;
* you may not use this file except in compliance with the Elastic License.
*/
import { ESSearchBody } from '../../typings/elasticsearch';
import {
AggregationOptionsByType,
AggregationInputMap,
} from '../../typings/elasticsearch/aggregations';
import { APMEventESSearchRequest } from '../lib/helpers/create_es_client/create_apm_event_client';
export type Projection = Omit<APMEventESSearchRequest, 'body'> & {
body: Omit<ESSearchBody, 'aggs'> & {
aggs?: {
[key: string]: {
terms: AggregationOptionsByType['terms'] & { field: string };
aggs?: AggregationInputMap;
};
};
};
};