grafana/pkg/tsdb/loki/testdata_dataplane/streams_parse_errors.golden.jsonc
Ivana Huckova d4a257bc8e
Logs: Update logic to process logs dataPlane frame with labels field (#77708)
* Logs: Update dataplane logic to use labels instead of attributes

* Update Loki logs data plane data frame according to specs

* Remove only in test
2023-11-07 10:53:10 +01:00

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"
]
]
}
}
]
}