mirror of
https://github.com/grafana/grafana.git
synced 2026-02-20 00:11:35 -05:00
* Logs: Update dataplane logic to use labels instead of attributes * Update Loki logs data plane data frame according to specs * Remove only in test
112 lines
No EOL
3.4 KiB
Text
112 lines
No EOL
3.4 KiB
Text
// 🌟 This was machine generated. Do not edit. 🌟
|
|
//
|
|
// Frame[0] {
|
|
// "type": "log-lines",
|
|
// "typeVersion": [
|
|
// 0,
|
|
// 0
|
|
// ],
|
|
// "executedQueryString": "Expr: query1"
|
|
// }
|
|
// Name:
|
|
// Dimensions: 4 Fields by 4 Rows
|
|
// +------------------------------------------------+-------------------------------+----------------+------------------------------+
|
|
// | Name: labels | Name: timestamp | Name: body | Name: id |
|
|
// | Labels: | Labels: | Labels: | Labels: |
|
|
// | Type: []json.RawMessage | Type: []time.Time | Type: []string | Type: []string |
|
|
// +------------------------------------------------+-------------------------------+----------------+------------------------------+
|
|
// | {"__error__":"LogfmtParserErr","place":"moon"} | 2022-06-17 06:49:51 +0000 UTC | "hello1 | 1655448591000000000_44cbf4ec |
|
|
// | {"__error__":"LogfmtParserErr","place":"moon"} | 2022-06-17 06:49:54 +0000 UTC | "hello4 | 1655448594000000000_408b3f5b |
|
|
// | {"place":"moon","text":"hello3"} | 2022-06-17 06:49:52 +0000 UTC | text=hello2 | 1655448592000000000_d1b2086 |
|
|
// | {"place":"moon","text":"hello4"} | 2022-06-17 06:49:53 +0000 UTC | text=hello3 | 1655448593000000000_45714922 |
|
|
// +------------------------------------------------+-------------------------------+----------------+------------------------------+
|
|
//
|
|
//
|
|
// 🌟 This was machine generated. Do not edit. 🌟
|
|
{
|
|
"status": 200,
|
|
"frames": [
|
|
{
|
|
"schema": {
|
|
"meta": {
|
|
"type": "log-lines",
|
|
"typeVersion": [
|
|
0,
|
|
0
|
|
],
|
|
"executedQueryString": "Expr: query1"
|
|
},
|
|
"fields": [
|
|
{
|
|
"name": "labels",
|
|
"type": "other",
|
|
"typeInfo": {
|
|
"frame": "json.RawMessage"
|
|
}
|
|
},
|
|
{
|
|
"name": "timestamp",
|
|
"type": "time",
|
|
"typeInfo": {
|
|
"frame": "time.Time"
|
|
}
|
|
},
|
|
{
|
|
"name": "body",
|
|
"type": "string",
|
|
"typeInfo": {
|
|
"frame": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "id",
|
|
"type": "string",
|
|
"typeInfo": {
|
|
"frame": "string"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"data": {
|
|
"values": [
|
|
[
|
|
{
|
|
"__error__": "LogfmtParserErr",
|
|
"place": "moon"
|
|
},
|
|
{
|
|
"__error__": "LogfmtParserErr",
|
|
"place": "moon"
|
|
},
|
|
{
|
|
"place": "moon",
|
|
"text": "hello3"
|
|
},
|
|
{
|
|
"place": "moon",
|
|
"text": "hello4"
|
|
}
|
|
],
|
|
[
|
|
1655448591000,
|
|
1655448594000,
|
|
1655448592000,
|
|
1655448593000
|
|
],
|
|
[
|
|
"\"hello1",
|
|
"\"hello4",
|
|
"text=hello2",
|
|
"text=hello3"
|
|
],
|
|
[
|
|
"1655448591000000000_44cbf4ec",
|
|
"1655448594000000000_408b3f5b",
|
|
"1655448592000000000_d1b2086",
|
|
"1655448593000000000_45714922"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
} |