Investigations: add fieldConfig and queries (#103276)

* Investigations: add `fieldConfig` and `queries`

* fix openAPI
This commit is contained in:
Sven Grossmann
2025-04-02 15:42:32 +02:00
committed by GitHub
parent e725f865dc
commit a67cb174c7
11 changed files with 225 additions and 238 deletions
@@ -1723,6 +1723,7 @@
]
},
"spec": {
"description": "Spec is the spec of the Investigation",
"default": {},
"allOf": [
{
@@ -1766,7 +1767,8 @@
"datasource",
"url",
"note",
"noteUpdatedAt"
"noteUpdatedAt",
"fieldConfig"
],
"properties": {
"createdAt": {
@@ -1781,6 +1783,10 @@
}
]
},
"fieldConfig": {
"type": "string",
"default": ""
},
"id": {
"type": "string",
"default": ""
@@ -1803,12 +1809,8 @@
"queries": {
"type": "array",
"items": {
"default": {},
"allOf": [
{
"$ref": "#/components/schemas/com.github.grafana.grafana.apps.investigations.pkg.apis.investigations.v0alpha1.InvestigationQuery"
}
]
"type": "string",
"default": ""
},
"x-kubernetes-list-type": "atomic"
},
@@ -1872,6 +1874,7 @@
]
},
"spec": {
"description": "Spec is the spec of the InvestigationIndex",
"default": {},
"allOf": [
{
@@ -2253,44 +2256,6 @@
}
}
},
"com.github.grafana.grafana.apps.investigations.pkg.apis.investigations.v0alpha1.InvestigationQuery": {
"description": "Query represents a data query",
"type": "object",
"required": [
"refId",
"queryType",
"editorMode",
"supportingQueryType",
"legendFormat",
"expr"
],
"properties": {
"editorMode": {
"type": "string",
"default": ""
},
"expr": {
"type": "string",
"default": ""
},
"legendFormat": {
"type": "string",
"default": ""
},
"queryType": {
"type": "string",
"default": ""
},
"refId": {
"type": "string",
"default": ""
},
"supportingQueryType": {
"type": "string",
"default": ""
}
}
},
"com.github.grafana.grafana.apps.investigations.pkg.apis.investigations.v0alpha1.InvestigationSpec": {
"description": "spec is the schema of our resource",
"type": "object",