mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 10:20:29 -06:00
c835022861
* postgres: tests: better test aligning time-series results * postgres: add snapshot test for a backward-compat code
65 lines
1.6 KiB
Plaintext
65 lines
1.6 KiB
Plaintext
// 🌟 This was machine generated. Do not edit. 🌟
|
|
//
|
|
// Frame[0] {
|
|
// "typeVersion": [
|
|
// 0,
|
|
// 0
|
|
// ],
|
|
// "executedQueryString": "SELECT floor(extract(epoch from \"t\")/300)*300 AS \"time\",avg(v) FROM tbl GROUP BY 1"
|
|
// }
|
|
// Name:
|
|
// Dimensions: 2 Fields by 1 Rows
|
|
// +-------------------------------+------------------+
|
|
// | Name: time | Name: avg |
|
|
// | Labels: | Labels: |
|
|
// | Type: []*time.Time | Type: []*float64 |
|
|
// +-------------------------------+------------------+
|
|
// | 2023-12-24 14:30:00 +0000 UTC | 42 |
|
|
// +-------------------------------+------------------+
|
|
//
|
|
//
|
|
// 🌟 This was machine generated. Do not edit. 🌟
|
|
{
|
|
"status": 200,
|
|
"frames": [
|
|
{
|
|
"schema": {
|
|
"meta": {
|
|
"typeVersion": [
|
|
0,
|
|
0
|
|
],
|
|
"executedQueryString": "SELECT floor(extract(epoch from \"t\")/300)*300 AS \"time\",avg(v) FROM tbl GROUP BY 1"
|
|
},
|
|
"fields": [
|
|
{
|
|
"name": "time",
|
|
"type": "time",
|
|
"typeInfo": {
|
|
"frame": "time.Time",
|
|
"nullable": true
|
|
}
|
|
},
|
|
{
|
|
"name": "avg",
|
|
"type": "number",
|
|
"typeInfo": {
|
|
"frame": "float64",
|
|
"nullable": true
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"data": {
|
|
"values": [
|
|
[
|
|
1703428200000
|
|
],
|
|
[
|
|
42
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
} |