Skip to content

Commit f35a4d3

Browse files
author
GotoRen
authored
chore: update alerting swagger spec
1 parent 54b8dde commit f35a4d3

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

pkg/services/ngalert/api/tooling/api.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,12 @@
492492
"name": {
493493
"type": "string"
494494
},
495+
"queriedDatasourceUIDs": {
496+
"items": {
497+
"type": "string"
498+
},
499+
"type": "array"
500+
},
495501
"query": {
496502
"type": "string"
497503
},
@@ -521,9 +527,7 @@
521527
}
522528
},
523529
"required": [
524-
"uid",
525530
"name",
526-
"folderUid",
527531
"query",
528532
"health",
529533
"type",
@@ -3789,9 +3793,7 @@
37893793
}
37903794
},
37913795
"required": [
3792-
"uid",
37933796
"name",
3794-
"folderUid",
37953797
"query",
37963798
"health",
37973799
"type"
@@ -5112,6 +5114,7 @@
51125114
"type": "object"
51135115
},
51145116
"gettableSilences": {
5117+
"description": "GettableSilences gettable silences",
51155118
"items": {
51165119
"$ref": "#/definitions/gettableSilence",
51175120
"type": "object"

pkg/services/ngalert/api/tooling/spec.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4579,9 +4579,7 @@
45794579
"description": "adapted from cortex",
45804580
"type": "object",
45814581
"required": [
4582-
"uid",
45834582
"name",
4584-
"folderUid",
45854583
"query",
45864584
"health",
45874585
"type",
@@ -4634,6 +4632,12 @@
46344632
"name": {
46354633
"type": "string"
46364634
},
4635+
"queriedDatasourceUIDs": {
4636+
"type": "array",
4637+
"items": {
4638+
"type": "string"
4639+
}
4640+
},
46374641
"query": {
46384642
"type": "string"
46394643
},
@@ -7888,9 +7892,7 @@
78887892
"description": "adapted from cortex",
78897893
"type": "object",
78907894
"required": [
7891-
"uid",
78927895
"name",
7893-
"folderUid",
78947896
"query",
78957897
"health",
78967898
"type"
@@ -8958,6 +8960,7 @@
89588960
}
89598961
},
89608962
"alertGroups": {
8963+
"description": "AlertGroups alert groups",
89618964
"type": "array",
89628965
"items": {
89638966
"type": "object",
@@ -9119,7 +9122,6 @@
91199122
}
91209123
},
91219124
"gettableAlerts": {
9122-
"description": "GettableAlerts gettable alerts",
91239125
"type": "array",
91249126
"items": {
91259127
"type": "object",

0 commit comments

Comments
 (0)