Skip to content

Commit fc9690f

Browse files
authored
chore: update alerting swagger spec
1 parent 2c2ac09 commit fc9690f

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

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

+6-2
Original file line numberDiff line numberDiff line change
@@ -4405,6 +4405,7 @@
44054405
"type": "object"
44064406
},
44074407
"alertGroup": {
4408+
"description": "AlertGroup alert group",
44084409
"properties": {
44094410
"alerts": {
44104411
"description": "alerts",
@@ -4428,7 +4429,6 @@
44284429
"type": "object"
44294430
},
44304431
"alertGroups": {
4431-
"description": "AlertGroups alert groups",
44324432
"items": {
44334433
"$ref": "#/definitions/alertGroup"
44344434
},
@@ -4533,7 +4533,6 @@
45334533
"type": "object"
45344534
},
45354535
"gettableAlert": {
4536-
"description": "GettableAlert gettable alert",
45374536
"properties": {
45384537
"annotations": {
45394538
"$ref": "#/definitions/labelSet"
@@ -4589,12 +4588,14 @@
45894588
"type": "object"
45904589
},
45914590
"gettableAlerts": {
4591+
"description": "GettableAlerts gettable alerts",
45924592
"items": {
45934593
"$ref": "#/definitions/gettableAlert"
45944594
},
45954595
"type": "array"
45964596
},
45974597
"gettableSilence": {
4598+
"description": "GettableSilence gettable silence",
45984599
"properties": {
45994600
"comment": {
46004601
"description": "comment",
@@ -4643,6 +4644,7 @@
46434644
"type": "object"
46444645
},
46454646
"gettableSilences": {
4647+
"description": "GettableSilences gettable silences",
46464648
"items": {
46474649
"$ref": "#/definitions/gettableSilence"
46484650
},
@@ -4793,6 +4795,7 @@
47934795
"type": "array"
47944796
},
47954797
"postableSilence": {
4798+
"description": "PostableSilence postable silence",
47964799
"properties": {
47974800
"comment": {
47984801
"description": "comment",
@@ -4830,6 +4833,7 @@
48304833
"type": "object"
48314834
},
48324835
"receiver": {
4836+
"description": "Receiver receiver",
48334837
"properties": {
48344838
"active": {
48354839
"description": "active",

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -4429,7 +4429,6 @@
44294429
"type": "object"
44304430
},
44314431
"alertGroups": {
4432-
"description": "AlertGroups alert groups",
44334432
"items": {
44344433
"$ref": "#/definitions/alertGroup"
44354434
},
@@ -4590,6 +4589,7 @@
45904589
"type": "object"
45914590
},
45924591
"gettableAlerts": {
4592+
"description": "GettableAlerts gettable alerts",
45934593
"items": {
45944594
"$ref": "#/definitions/gettableAlert"
45954595
},
@@ -4796,6 +4796,7 @@
47964796
"type": "array"
47974797
},
47984798
"postableSilence": {
4799+
"description": "PostableSilence postable silence",
47994800
"properties": {
48004801
"comment": {
48014802
"description": "comment",

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -7838,7 +7838,6 @@
78387838
"$ref": "#/definitions/alertGroup"
78397839
},
78407840
"alertGroups": {
7841-
"description": "AlertGroups alert groups",
78427841
"type": "array",
78437842
"items": {
78447843
"$ref": "#/definitions/alertGroup"
@@ -8001,6 +8000,7 @@
80018000
"$ref": "#/definitions/gettableAlert"
80028001
},
80038002
"gettableAlerts": {
8003+
"description": "GettableAlerts gettable alerts",
80048004
"type": "array",
80058005
"items": {
80068006
"$ref": "#/definitions/gettableAlert"
@@ -8211,6 +8211,7 @@
82118211
}
82128212
},
82138213
"postableSilence": {
8214+
"description": "PostableSilence postable silence",
82148215
"type": "object",
82158216
"required": [
82168217
"comment",

0 commit comments

Comments
 (0)