Elasticsearch: Fix where name of frame is set (#64233)
* Elasticsearch: Use displayName field for naming * Change solution to frame.Name to be backward compatible * Fix snapshot tests * Use Time and Value for time and value fields * Use variables from grafana-plugin-sdk-go for name
This commit is contained in:
@@ -7,10 +7,10 @@
|
||||
// 0
|
||||
// ]
|
||||
// }
|
||||
// Name:
|
||||
// Name: Count
|
||||
// Dimensions: 2 Fields by 3 Rows
|
||||
// +-------------------------------+------------------+
|
||||
// | Name: time | Name: value |
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: |
|
||||
// | Type: []time.Time | Type: []*float64 |
|
||||
// +-------------------------------+------------------+
|
||||
@@ -26,6 +26,7 @@
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "Count",
|
||||
"meta": {
|
||||
"type": "timeseries-multi",
|
||||
"typeVersion": [
|
||||
@@ -35,23 +36,20 @@
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "time",
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "value",
|
||||
"name": "Value",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"labels": {},
|
||||
"config": {
|
||||
"displayNameFromDS": "Count"
|
||||
}
|
||||
"labels": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user