mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 01:12:22 +08:00
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:
@ -8,7 +8,7 @@ title: ElasticsearchDataQuery kind
|
||||
|
||||
## ElasticsearchDataQuery
|
||||
|
||||
#### Maturity: merged
|
||||
#### Maturity: experimental
|
||||
#### Version: 0.0
|
||||
|
||||
|
||||
@ -18,15 +18,15 @@ It extends [DataQuery](#dataquery).
|
||||
| Property | Type | Required | Description |
|
||||
|--------------|-------------------------------------------|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `refId` | string | **Yes** | *(Inherited from [DataQuery](#dataquery))*<br/>A - Z |
|
||||
| `alias` | string | No | |
|
||||
| `bucketAggs` | [BucketAggregation](#bucketaggregation)[] | No | |
|
||||
| `alias` | string | No | Alias pattern |
|
||||
| `bucketAggs` | [BucketAggregation](#bucketaggregation)[] | No | List of bucket aggregations |
|
||||
| `datasource` | | No | *(Inherited from [DataQuery](#dataquery))*<br/>For mixed data sources the selected datasource is on the query level.<br/>For non mixed scenarios this is undefined.<br/>TODO find a better way to do this ^ that's friendly to schema<br/>TODO this shouldn't be unknown but DataSourceRef | null |
|
||||
| `hide` | boolean | No | *(Inherited from [DataQuery](#dataquery))*<br/>true if query is disabled (ie should not be returned to the dashboard) |
|
||||
| `key` | string | No | *(Inherited from [DataQuery](#dataquery))*<br/>Unique, guid like, string used in explore mode |
|
||||
| `metrics` | [MetricAggregation](#metricaggregation)[] | No | |
|
||||
| `metrics` | [MetricAggregation](#metricaggregation)[] | No | List of metric aggregations |
|
||||
| `queryType` | string | No | *(Inherited from [DataQuery](#dataquery))*<br/>Specify the query flavor<br/>TODO make this required and give it a default |
|
||||
| `query` | string | No | |
|
||||
| `timeField` | string | No | |
|
||||
| `query` | string | No | Lucene query |
|
||||
| `timeField` | string | No | Name of time field |
|
||||
|
||||
### BucketAggregation
|
||||
|
||||
|
Reference in New Issue
Block a user