UnifiedSearch: Introduce a DocumentBuilder interface (#96738)
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
{
|
||||
"key": {
|
||||
"namespace": "default",
|
||||
"group": "dashboard.grafana.app",
|
||||
"resource": "dashboards",
|
||||
"name": "aaa"
|
||||
},
|
||||
"rv": 1234,
|
||||
"title": "Test title",
|
||||
"description": "test description",
|
||||
"tags": [
|
||||
"a",
|
||||
"b",
|
||||
"c"
|
||||
],
|
||||
"labels": {
|
||||
"host": "abc",
|
||||
"region": "xyz"
|
||||
},
|
||||
"folder": "the-folder-uid",
|
||||
"created": 1730313054000,
|
||||
"createdBy": "user:be2g71ke8yoe8b",
|
||||
"fields": {
|
||||
"ds_types": [
|
||||
"datasource",
|
||||
"my-custom-plugin"
|
||||
],
|
||||
"errors_last_1_days": 1,
|
||||
"errors_last_7_days": 1,
|
||||
"legacy_id": 141,
|
||||
"link_count": 0,
|
||||
"panel_types": [
|
||||
"barchart",
|
||||
"graph",
|
||||
"row"
|
||||
],
|
||||
"schema_version": 38
|
||||
},
|
||||
"reference": [
|
||||
{
|
||||
"relation": "depends-on",
|
||||
"group": "my-custom-plugin",
|
||||
"kind": "DataSource",
|
||||
"name": "DSUID"
|
||||
},
|
||||
{
|
||||
"relation": "depends-on",
|
||||
"group": "datasource",
|
||||
"kind": "DataSource",
|
||||
"name": "grafana"
|
||||
},
|
||||
{
|
||||
"relation": "depends-on",
|
||||
"group": "dashboards.grafana.app",
|
||||
"kind": "LibraryPanel",
|
||||
"name": "e1d5f519-dabd-47c6-9ad7-83d181ce1cee"
|
||||
},
|
||||
{
|
||||
"relation": "depends-on",
|
||||
"group": "dashboards.grafana.app",
|
||||
"kind": "LibraryPanel",
|
||||
"name": "a7975b7a-fb53-4ab7-951d-15810953b54f"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
{
|
||||
"kind": "Dashboard",
|
||||
"apiVersion": "dashboard.grafana.app/v0alpha1",
|
||||
"metadata": {
|
||||
"name": "aaa",
|
||||
"namespace": "default",
|
||||
"uid": "b396894e-56bf-4a01-837b-64157912ca00",
|
||||
"creationTimestamp": "2024-10-30T18:30:54Z",
|
||||
"annotations": {
|
||||
"grafana.app/folder": "the-folder-uid",
|
||||
"grafana.app/createdBy": "user:be2g71ke8yoe8b",
|
||||
"grafana.app/repositoryName": "MyGit"
|
||||
},
|
||||
"labels": {
|
||||
"host": "abc",
|
||||
"region": "xyz"
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
"annotations": {
|
||||
"list": [
|
||||
{
|
||||
"builtIn": 1,
|
||||
"datasource": {
|
||||
"type": "grafana",
|
||||
"uid": "-- Grafana --"
|
||||
},
|
||||
"enable": true,
|
||||
"hide": true,
|
||||
"iconColor": "rgba(0, 211, 255, 1)",
|
||||
"name": "Annotations & Alerts",
|
||||
"type": "dashboard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"editable": true,
|
||||
"fiscalYearStartMonth": 0,
|
||||
"graphTooltip": 0,
|
||||
"id": 141,
|
||||
"links": [],
|
||||
"liveNow": false,
|
||||
"panels": [
|
||||
{
|
||||
"gridPos": {
|
||||
"h": 8,
|
||||
"w": 12,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"id": 1,
|
||||
"libraryPanel": {
|
||||
"name": "green pie",
|
||||
"uid": "a7975b7a-fb53-4ab7-951d-15810953b54f"
|
||||
},
|
||||
"title": "green pie"
|
||||
},
|
||||
{
|
||||
"gridPos": {
|
||||
"h": 8,
|
||||
"w": 12,
|
||||
"x": 12,
|
||||
"y": 0
|
||||
},
|
||||
"id": 2,
|
||||
"libraryPanel": {
|
||||
"name": "red pie",
|
||||
"uid": "e1d5f519-dabd-47c6-9ad7-83d181ce1cee"
|
||||
},
|
||||
"title": "green pie"
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"type": "barchart",
|
||||
"datasource": "TheDisplayName"
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"type": "graph"
|
||||
},
|
||||
{
|
||||
"collapsed": true,
|
||||
"gridPos": {
|
||||
"h": 1,
|
||||
"w": 24,
|
||||
"x": 0,
|
||||
"y": 9
|
||||
},
|
||||
"id": 3,
|
||||
"panels": [
|
||||
{
|
||||
"gridPos": {
|
||||
"h": 8,
|
||||
"w": 12,
|
||||
"x": 12,
|
||||
"y": 0
|
||||
},
|
||||
"id": 42,
|
||||
"libraryPanel": {
|
||||
"name": "blue pie",
|
||||
"uid": "l3d2s634-fdgf-75u4-3fg3-67j966ii7jur"
|
||||
},
|
||||
"title": "blue pie"
|
||||
}
|
||||
],
|
||||
"title": "collapsed row",
|
||||
"type": "row"
|
||||
}
|
||||
],
|
||||
"refresh": "",
|
||||
"schemaVersion": 38,
|
||||
"tags": ["a", "b", "c"],
|
||||
"templating": {
|
||||
"list": []
|
||||
},
|
||||
"time": {
|
||||
"from": "now-6h",
|
||||
"to": "now"
|
||||
},
|
||||
"timepicker": {},
|
||||
"timezone": "",
|
||||
"title": "Test title",
|
||||
"description": "test description",
|
||||
"uid": "adfbg6f",
|
||||
"version": 3,
|
||||
"weekStart": ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"key": {
|
||||
"namespace": "default",
|
||||
"group": "dashboard.grafana.app",
|
||||
"resource": "dashboards",
|
||||
"name": "aaa"
|
||||
},
|
||||
"rv": 1234,
|
||||
"title": "aaa",
|
||||
"created": 1730490142000,
|
||||
"createdBy": "user:1",
|
||||
"repository": {
|
||||
"name": "SQL"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"kind": "Folder",
|
||||
"apiVersion": "folder.grafana.app/v0alpha1",
|
||||
"metadata": {
|
||||
"name": "aaa",
|
||||
"namespace": "default",
|
||||
"uid": "b396894e-56bf-4a01-837b-64157912ca00",
|
||||
"creationTimestamp": "2024-11-01T19:42:22Z",
|
||||
"annotations": {
|
||||
"grafana.app/createdBy": "user:1",
|
||||
"grafana.app/originName": "SQL"
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
"title": "test-aaa"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"key": {
|
||||
"namespace": "default",
|
||||
"group": "dashboard.grafana.app",
|
||||
"resource": "dashboards",
|
||||
"name": "bbb"
|
||||
},
|
||||
"rv": 1234,
|
||||
"title": "bbb",
|
||||
"created": 1730490142000,
|
||||
"createdBy": "user:1",
|
||||
"repository": {
|
||||
"name": "SQL"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"kind": "Folder",
|
||||
"apiVersion": "folder.grafana.app/v0alpha1",
|
||||
"metadata": {
|
||||
"name": "bbb",
|
||||
"namespace": "default",
|
||||
"uid": "b396894e-56bf-4a01-837b-64157912ca00",
|
||||
"creationTimestamp": "2024-11-01T19:42:22Z",
|
||||
"annotations": {
|
||||
"grafana.app/createdBy": "user:1",
|
||||
"grafana.app/originName": "SQL"
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
"title": "test-bbb"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"key": {
|
||||
"namespace": "default",
|
||||
"group": "dashboard.grafana.app",
|
||||
"resource": "dashboards",
|
||||
"name": "aaa"
|
||||
},
|
||||
"rv": 1234,
|
||||
"title": "aaa",
|
||||
"created": 1731336353000,
|
||||
"createdBy": "user:t000000001",
|
||||
"repository": {
|
||||
"name": "UI",
|
||||
"path": "/playlists/new",
|
||||
"hash": "Grafana v11.4.0-pre (c0de407fee)"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"kind": "Playlist",
|
||||
"apiVersion": "playlist.grafana.app/v0alpha1",
|
||||
"metadata": {
|
||||
"name": "aaa",
|
||||
"namespace": "default",
|
||||
"uid": "8a2b984d-4663-4182-861b-edec2f987dff",
|
||||
"creationTimestamp": "2024-11-11T14:45:53Z",
|
||||
"annotations": {
|
||||
"grafana.app/createdBy": "user:t000000001",
|
||||
"grafana.app/originHash": "Grafana v11.4.0-pre (c0de407fee)",
|
||||
"grafana.app/originName": "UI",
|
||||
"grafana.app/originPath": "/playlists/new"
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
"title": "Test AAA",
|
||||
"interval": "5m",
|
||||
"items": [
|
||||
{
|
||||
"type": "dashboard_by_uid",
|
||||
"value": "xCmMwXdVz"
|
||||
},
|
||||
{
|
||||
"type": "dashboard_by_tag",
|
||||
"value": "panel-tests"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"key": {
|
||||
"namespace": "default",
|
||||
"group": "dashboard.grafana.app",
|
||||
"resource": "dashboards",
|
||||
"name": "aaa"
|
||||
},
|
||||
"rv": 1234,
|
||||
"title": "aaa",
|
||||
"created": 1706690655000,
|
||||
"createdBy": "user:abc",
|
||||
"repository": {
|
||||
"name": "SQL"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"kind": "Report",
|
||||
"apiVersion": "reports.grafana.app/v0alpha1",
|
||||
"metadata": {
|
||||
"name": "aaa",
|
||||
"namespace": "default",
|
||||
"uid": "GPShlB3AMM0KIVRtn3H2DbGEckFHGXltAkO1o0XD79cX",
|
||||
"resourceVersion": "1706690655000",
|
||||
"creationTimestamp": "2024-01-31T08:44:15Z",
|
||||
"annotations": {
|
||||
"grafana.app/createdBy": "user:abc",
|
||||
"grafana.app/originName": "SQL"
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
"title": "Test AAA",
|
||||
"recipients": "",
|
||||
"replyTo": "",
|
||||
"message": "Hi, \nPlease find attached a PDF status report. If you have any questions, feel free to contact me!\nBest,",
|
||||
"schedule": {
|
||||
"startDate": "2024-01-31T08:43:15Z",
|
||||
"endDate": null,
|
||||
"frequency": "weekly",
|
||||
"workdaysOnly": false,
|
||||
"timeZone": "America/Los_Angeles"
|
||||
},
|
||||
"options": {
|
||||
"orientation": "landscape",
|
||||
"layout": "simple",
|
||||
"pdfShowTemplateVariables": false,
|
||||
"pdfCombineOneFile": false
|
||||
},
|
||||
"enableDashboardUrl": true,
|
||||
"state": "draft",
|
||||
"dashboards": [
|
||||
{
|
||||
"uid": "vmie2cmWz",
|
||||
"timeRange": {
|
||||
"from": "now-15m",
|
||||
"to": "now"
|
||||
}
|
||||
},
|
||||
{
|
||||
"uid": "xMsQdBfWz",
|
||||
"timeRange": {
|
||||
"from": "now-1h",
|
||||
"to": "now"
|
||||
}
|
||||
}
|
||||
],
|
||||
"formats": [
|
||||
"pdf"
|
||||
],
|
||||
"scaleFactor": 3
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user