mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* postgres: tests: better test aligning time-series results * postgres: add snapshot test for a backward-compat code
100 lines
2.8 KiB
Plaintext
100 lines
2.8 KiB
Plaintext
// 🌟 This was machine generated. Do not edit. 🌟
|
|
//
|
|
// Frame[0] {
|
|
// "typeVersion": [
|
|
// 0,
|
|
// 0
|
|
// ],
|
|
// "executedQueryString": "SELECT floor(extract(epoch from \"time\")/300)*300 AS \"time\",avg(v1) AS \"v1\", avg(v2) AS \"v2\" FROM tbl GROUP BY 1 ORDER BY 1"
|
|
// }
|
|
// Name:
|
|
// Dimensions: 3 Fields by 7 Rows
|
|
// +-------------------------------+------------------+------------------+
|
|
// | Name: Time | Name: v1 | Name: v2 |
|
|
// | Labels: | Labels: | Labels: |
|
|
// | Type: []*time.Time | Type: []*float64 | Type: []*float64 |
|
|
// +-------------------------------+------------------+------------------+
|
|
// | 2023-12-24 14:15:00 +0000 UTC | 27 | 27 |
|
|
// | 2023-12-24 14:20:00 +0000 UTC | 15 | 115 |
|
|
// | 2023-12-24 14:25:00 +0000 UTC | 27 | 27 |
|
|
// | 2023-12-24 14:30:00 +0000 UTC | 27 | 27 |
|
|
// | 2023-12-24 14:35:00 +0000 UTC | 50 | 150 |
|
|
// | 2023-12-24 14:40:00 +0000 UTC | 27 | 27 |
|
|
// | 2023-12-24 14:45:00 +0000 UTC | 27 | 27 |
|
|
// +-------------------------------+------------------+------------------+
|
|
//
|
|
//
|
|
// 🌟 This was machine generated. Do not edit. 🌟
|
|
{
|
|
"status": 200,
|
|
"frames": [
|
|
{
|
|
"schema": {
|
|
"meta": {
|
|
"typeVersion": [
|
|
0,
|
|
0
|
|
],
|
|
"executedQueryString": "SELECT floor(extract(epoch from \"time\")/300)*300 AS \"time\",avg(v1) AS \"v1\", avg(v2) AS \"v2\" FROM tbl GROUP BY 1 ORDER BY 1"
|
|
},
|
|
"fields": [
|
|
{
|
|
"name": "Time",
|
|
"type": "time",
|
|
"typeInfo": {
|
|
"frame": "time.Time",
|
|
"nullable": true
|
|
}
|
|
},
|
|
{
|
|
"name": "v1",
|
|
"type": "number",
|
|
"typeInfo": {
|
|
"frame": "float64",
|
|
"nullable": true
|
|
}
|
|
},
|
|
{
|
|
"name": "v2",
|
|
"type": "number",
|
|
"typeInfo": {
|
|
"frame": "float64",
|
|
"nullable": true
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"data": {
|
|
"values": [
|
|
[
|
|
1703427300000,
|
|
1703427600000,
|
|
1703427900000,
|
|
1703428200000,
|
|
1703428500000,
|
|
1703428800000,
|
|
1703429100000
|
|
],
|
|
[
|
|
27,
|
|
15,
|
|
27,
|
|
27,
|
|
50,
|
|
27,
|
|
27
|
|
],
|
|
[
|
|
27,
|
|
115,
|
|
27,
|
|
27,
|
|
150,
|
|
27,
|
|
27
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
} |