Chore: Return executedString information even with frames has no time column (#78906)

* return executedString for no time column responses

* remove comment
This commit is contained in:
ismail simsek
2023-11-30 14:25:15 +01:00
committed by GitHub
parent 7cbf5ae78d
commit dff5022021
9 changed files with 115 additions and 205 deletions
-29
View File
@@ -1,29 +0,0 @@
{
"results": [
{
"statement_id": 0,
"series": [
{
"name": "measurements",
"columns": [
"name"
],
"values": [
[
"cpu"
],
[
"disk"
],
[
"diskio"
],
[
"kernel"
]
]
}
]
}
]
}
@@ -1,66 +0,0 @@
// 🌟 This was machine generated. Do not edit. 🌟
//
// Frame[0] {
// "typeVersion": [
// 0,
// 0
// ],
// "preferredVisualisationType": "table",
// "executedQueryString": "Test raw query"
// }
// Name: measurements
// Dimensions: 1 Fields by 4 Rows
// +-----------------+
// | Name: name |
// | Labels: |
// | Type: []*string |
// +-----------------+
// | cpu |
// | disk |
// | diskio |
// | kernel |
// +-----------------+
//
//
// 🌟 This was machine generated. Do not edit. 🌟
{
"status": 200,
"frames": [
{
"schema": {
"name": "measurements",
"meta": {
"typeVersion": [
0,
0
],
"preferredVisualisationType": "table",
"executedQueryString": "Test raw query"
},
"fields": [
{
"name": "name",
"type": "string",
"typeInfo": {
"frame": "string",
"nullable": true
},
"config": {
"displayNameFromDS": "name"
}
}
]
},
"data": {
"values": [
[
"cpu",
"disk",
"diskio",
"kernel"
]
]
}
}
]
}
@@ -1,47 +0,0 @@
// 🌟 This was machine generated. Do not edit. 🌟
//
// Frame[0]
// Name: measurements
// Dimensions: 1 Fields by 4 Rows
// +----------------+
// | Name: Value |
// | Labels: |
// | Type: []string |
// +----------------+
// | cpu |
// | disk |
// | diskio |
// | kernel |
// +----------------+
//
//
// 🌟 This was machine generated. Do not edit. 🌟
{
"status": 200,
"frames": [
{
"schema": {
"name": "measurements",
"fields": [
{
"name": "Value",
"type": "string",
"typeInfo": {
"frame": "string"
}
}
]
},
"data": {
"values": [
[
"cpu",
"disk",
"diskio",
"kernel"
]
]
}
}
]
}
@@ -1,24 +1,31 @@
// 🌟 This was machine generated. Do not edit. 🌟
//
// Frame[0]
// Frame[0] {
// "typeVersion": [
// 0,
// 0
// ],
// "preferredVisualisationType": "graph",
// "executedQueryString": "Test raw query"
// }
// Name: measurements
// Dimensions: 1 Fields by 10 Rows
// +----------------+
// | Name: Value |
// | Labels: |
// | Type: []string |
// +----------------+
// | cpu |
// | disk |
// | diskio |
// | kernel |
// | logs |
// | mem |
// | myMeasurement |
// | processes |
// | swap |
// | system |
// +----------------+
// +-----------------+
// | Name: Value |
// | Labels: |
// | Type: []*string |
// +-----------------+
// | cpu |
// | disk |
// | diskio |
// | kernel |
// | logs |
// | mem |
// | myMeasurement |
// | processes |
// | swap |
// | system |
// +-----------------+
//
//
// 🌟 This was machine generated. Do not edit. 🌟
@@ -28,12 +35,21 @@
{
"schema": {
"name": "measurements",
"meta": {
"typeVersion": [
0,
0
],
"preferredVisualisationType": "graph",
"executedQueryString": "Test raw query"
},
"fields": [
{
"name": "Value",
"type": "string",
"typeInfo": {
"frame": "string"
"frame": "string",
"nullable": true
}
}
]
@@ -1,19 +1,26 @@
// 🌟 This was machine generated. Do not edit. 🌟
//
// Frame[0]
// Frame[0] {
// "typeVersion": [
// 0,
// 0
// ],
// "preferredVisualisationType": "graph",
// "executedQueryString": "Test raw query"
// }
// Name:
// Dimensions: 1 Fields by 5 Rows
// +----------------+
// | Name: Value |
// | Labels: |
// | Type: []string |
// +----------------+
// | default |
// | autogen |
// | bar |
// | 5m_avg |
// | 1m_avg |
// +----------------+
// +-----------------+
// | Name: Value |
// | Labels: |
// | Type: []*string |
// +-----------------+
// | default |
// | autogen |
// | bar |
// | 5m_avg |
// | 1m_avg |
// +-----------------+
//
//
// 🌟 This was machine generated. Do not edit. 🌟
@@ -22,12 +29,21 @@
"frames": [
{
"schema": {
"meta": {
"typeVersion": [
0,
0
],
"preferredVisualisationType": "graph",
"executedQueryString": "Test raw query"
},
"fields": [
{
"name": "Value",
"type": "string",
"typeInfo": {
"frame": "string"
"frame": "string",
"nullable": true
}
}
]
@@ -1,24 +1,31 @@
// 🌟 This was machine generated. Do not edit. 🌟
//
// Frame[0]
// Frame[0] {
// "typeVersion": [
// 0,
// 0
// ],
// "preferredVisualisationType": "graph",
// "executedQueryString": "Test raw query"
// }
// Name: cpu
// Dimensions: 1 Fields by 11 Rows
// +----------------+
// | Name: Value |
// | Labels: |
// | Type: []string |
// +----------------+
// | cpu |
// | cpu |
// | cpu |
// | cpu |
// | cpu |
// | cpu |
// | cpu |
// | cpu |
// | cpu |
// | ... |
// +----------------+
// +-----------------+
// | Name: Value |
// | Labels: |
// | Type: []*string |
// +-----------------+
// | cpu |
// | cpu |
// | cpu |
// | cpu |
// | cpu |
// | cpu |
// | cpu |
// | cpu |
// | cpu |
// | ... |
// +-----------------+
//
//
// 🌟 This was machine generated. Do not edit. 🌟
@@ -28,12 +35,21 @@
{
"schema": {
"name": "cpu",
"meta": {
"typeVersion": [
0,
0
],
"preferredVisualisationType": "graph",
"executedQueryString": "Test raw query"
},
"fields": [
{
"name": "Value",
"type": "string",
"typeInfo": {
"frame": "string"
"frame": "string",
"nullable": true
}
}
]