Elasticsearch: Use generated types in data source (#62753)

* Use generated types in frontend

* Export missing MetricAggregationWithMeta

* Remove not needed changes

* Update

* Fix lint

* Update comments
This commit is contained in:
Ivana Huckova
2023-02-03 18:04:12 +01:00
committed by GitHub
parent bbb572e73f
commit 20ec54f1f9
49 changed files with 151 additions and 564 deletions

View File

@ -1,12 +1,12 @@
import { DateHistogram } from './components/QueryEditor/BucketAggregationsEditor/aggregations';
import { metricAggregationConfig, pipelineOptions } from './components/QueryEditor/MetricAggregationsEditor/utils';
import {
ElasticsearchQuery,
ExtendedStat,
MetricAggregation,
MovingAverageModelOption,
MetricAggregationType,
} from './components/QueryEditor/MetricAggregationsEditor/aggregations';
import { metricAggregationConfig, pipelineOptions } from './components/QueryEditor/MetricAggregationsEditor/utils';
import { ElasticsearchQuery } from './types';
DateHistogram,
} from './types';
export const extendedStats: ExtendedStat[] = [
{ label: 'Avg', value: 'avg' },