Hi,
i have a Rest API i am getting the data from in a JSON-format via the Infinity Plugin. The format of the input looks like this:
{
“TBD”: [
{
“id”: 5374,
“name”: “Incident Test 1”,
“create_date”: 1699448036949,
“org_handle”: 205
}
],
“Denial of Service”: [
{
“id”: 5776,
“name”: “Incident Test 2”,
“create_date”: 1706789160891,
“org_handle”: 205
},
{
“id”: 5775,
“name”: “Incident Test 3”,
“create_date”: 1706785738252,
“org_handle”: 205
}
]
}
My goal is to get all the three records as rows in a table to do further transformations. The problem is that i want the top categories (“TBD”, “Denial of Service”) to be added as a feature to the records. So for the first record it should become:
{
“category”: “TBD”,
“id”: 5374,
“name”: “Incident Test 1”,
“create_date”: 1699448036949,
“org_handle”: 205
}
And the same for the other two records, so the resulting table looks like this:
How can i do this? Maybe with an UQL statement? I am using the Grafana Version 10.3.1.
Thanks a lot in advance
