Skip to content

Commit 5c8c44b

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

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

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

Lines changed: 7 additions & 5 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"
@@ -4826,7 +4828,6 @@
48264828
"type": "object"
48274829
},
48284830
"alertGroups": {
4829-
"description": "AlertGroups alert groups",
48304831
"items": {
48314832
"$ref": "#/definitions/alertGroup",
48324833
"type": "object"
@@ -5112,6 +5113,7 @@
51125113
"type": "object"
51135114
},
51145115
"gettableSilences": {
5116+
"description": "GettableSilences gettable silences",
51155117
"items": {
51165118
"$ref": "#/definitions/gettableSilence",
51175119
"type": "object"

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

Lines changed: 6 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"
@@ -9244,7 +9246,6 @@
92449246
}
92459247
},
92469248
"gettableSilences": {
9247-
"description": "GettableSilences gettable silences",
92489249
"type": "array",
92499250
"items": {
92509251
"type": "object",

0 commit comments

Comments
 (0)