With
local annotations = tablePanel.new(
'Annotations 3',
span=8,
datasource='-- Grafana --',
transform='annotations',
styles=[
{
pattern: 'Time',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'number',
unit: 'dateTimeAsIso',
},
{
pattern: 'Title',
type: 'hidden',
},
],
);
I only get 4 columns to play with. But if I play with the HTTP API Annotations HTTP API | Grafana documentation I can see there are more values that I would like to utilise like dashboardId & panelId, so I can (deep) link back to annotation in context.
{
"id": 6,
"alertId": 0,
"alertName": "",
"dashboardId": 3,
"panelId": 9,
"userId": 0,
"newState": "",
"prevState": "",
"created": 1575769375274,
"updated": 1575769375274,
"time": 1575768929771,
"timeEnd": 1575769118085,
"text": "AAA",
"tags": [
"outage"
],
"login": "admin",
"email": "admin@localhost",
"avatarUrl": "/avatar/46d229b033af06a191ff2267bca9ae56",
"data": {}
},
How can I get more columns or rather achieve the link to annotation in context please?
Many thanks!!