Alerting: Add endpoint for querying state history (#62166)

* Define endpoint and generate

* Wire up and register endpoint

* Cleanup, define authorization

* Forgot the leading slash

* Wire up query and SignedInUser

* Wire up timerange query params

* Add todo for label queries

* Drop comment

* Update path to rules subtree
This commit is contained in:
Alexander Weaver
2023-02-02 11:34:00 -06:00
committed by GitHub
parent 2f218ab928
commit 6ad1cfef38
15 changed files with 195 additions and 15 deletions
+19 -1
View File
@@ -2632,6 +2632,23 @@
}
}
}
},
"/api/v1/rules/history": {
"get": {
"produces": [
"application/json"
],
"tags": [
"history"
],
"summary": "Query state history.",
"operationId": "RouteGetStateHistory",
"responses": {
"200": {
"$ref": "#/responses/StateHistory"
}
}
}
}
},
"definitions": {
@@ -6330,6 +6347,7 @@
"$ref": "#/definitions/gettableAlert"
},
"gettableAlerts": {
"description": "GettableAlerts gettable alerts",
"type": "array",
"items": {
"$ref": "#/definitions/gettableAlert"
@@ -6708,4 +6726,4 @@
"type": "basic"
}
}
}
}