Elasticsearch: Implement schema for query (#62147)

* Elasticsearch: Implement schema for query

* Comment out types I am not sure how to do

* Manually fix typing for PipelineMetricAggregationWithMultipleBucketPaths and BasePipelineMetricAggregation

* Import types to types.ts to have single source of truth

* Cleanup, reorder

* Remove unnecesary Schema.

* Fix test

* Refactor
This commit is contained in:
Ivana Huckova
2023-02-02 09:01:02 +01:00
committed by GitHub
parent 4a8763d7b6
commit ccfa9a4ef0
7 changed files with 2236 additions and 24 deletions
@@ -0,0 +1,34 @@
---
keywords:
- grafana
- schema
title: ElasticsearchDataQuery kind
---
> Both documentation generation and kinds schemas are in active development and subject to change without prior notice.
# ElasticsearchDataQuery kind
## Maturity: merged
## Version: 0.0
## Properties
| Property | Type | Required | Description |
|--------------|-------------------------------------------|----------|-------------|
| `alias` | string | No | |
| `bucketAggs` | [BucketAggregation](#bucketaggregation)[] | No | |
| `metrics` | [MetricAggregation](#metricaggregation)[] | No | |
| `query` | string | No | |
| `timeField` | string | No | |
## BucketAggregation
| Property | Type | Required | Description |
|----------|------|----------|-------------|
## MetricAggregation
| Property | Type | Required | Description |
|----------|------|----------|-------------|