Skip to content

Commit ad98008

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

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

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

+3-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",
@@ -4533,7 +4534,6 @@
45334534
"type": "object"
45344535
},
45354536
"gettableAlert": {
4536-
"description": "GettableAlert gettable alert",
45374537
"properties": {
45384538
"annotations": {
45394539
"$ref": "#/definitions/labelSet"
@@ -4643,13 +4643,13 @@
46434643
"type": "object"
46444644
},
46454645
"gettableSilences": {
4646+
"description": "GettableSilences gettable silences",
46464647
"items": {
46474648
"$ref": "#/definitions/gettableSilence"
46484649
},
46494650
"type": "array"
46504651
},
46514652
"integration": {
4652-
"description": "Integration integration",
46534653
"properties": {
46544654
"lastNotifyAttempt": {
46554655
"description": "A timestamp indicating the last attempt to deliver a notification regardless of the outcome.\nFormat: date-time",
@@ -4830,6 +4830,7 @@
48304830
"type": "object"
48314831
},
48324832
"receiver": {
4833+
"description": "Receiver receiver",
48334834
"properties": {
48344835
"active": {
48354836
"description": "active",

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

+2-5
Original file line numberDiff line numberDiff line change
@@ -4405,7 +4405,6 @@
44054405
"type": "object"
44064406
},
44074407
"alertGroup": {
4408-
"description": "AlertGroup alert group",
44094408
"properties": {
44104409
"alerts": {
44114410
"description": "alerts",
@@ -4429,7 +4428,6 @@
44294428
"type": "object"
44304429
},
44314430
"alertGroups": {
4432-
"description": "AlertGroups alert groups",
44334431
"items": {
44344432
"$ref": "#/definitions/alertGroup"
44354433
},
@@ -4590,13 +4588,13 @@
45904588
"type": "object"
45914589
},
45924590
"gettableAlerts": {
4591+
"description": "GettableAlerts gettable alerts",
45934592
"items": {
45944593
"$ref": "#/definitions/gettableAlert"
45954594
},
45964595
"type": "array"
45974596
},
45984597
"gettableSilence": {
4599-
"description": "GettableSilence gettable silence",
46004598
"properties": {
46014599
"comment": {
46024600
"description": "comment",
@@ -4645,7 +4643,6 @@
46454643
"type": "object"
46464644
},
46474645
"gettableSilences": {
4648-
"description": "GettableSilences gettable silences",
46494646
"items": {
46504647
"$ref": "#/definitions/gettableSilence"
46514648
},
@@ -4796,6 +4793,7 @@
47964793
"type": "array"
47974794
},
47984795
"postableSilence": {
4796+
"description": "PostableSilence postable silence",
47994797
"properties": {
48004798
"comment": {
48014799
"description": "comment",
@@ -4833,7 +4831,6 @@
48334831
"type": "object"
48344832
},
48354833
"receiver": {
4836-
"description": "Receiver receiver",
48374834
"properties": {
48384835
"active": {
48394836
"description": "active",

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

+2-5
Original file line numberDiff line numberDiff line change
@@ -7813,7 +7813,6 @@
78137813
}
78147814
},
78157815
"alertGroup": {
7816-
"description": "AlertGroup alert group",
78177816
"type": "object",
78187817
"required": [
78197818
"alerts",
@@ -7838,7 +7837,6 @@
78387837
"$ref": "#/definitions/alertGroup"
78397838
},
78407839
"alertGroups": {
7841-
"description": "AlertGroups alert groups",
78427840
"type": "array",
78437841
"items": {
78447842
"$ref": "#/definitions/alertGroup"
@@ -8001,14 +7999,14 @@
80017999
"$ref": "#/definitions/gettableAlert"
80028000
},
80038001
"gettableAlerts": {
8002+
"description": "GettableAlerts gettable alerts",
80048003
"type": "array",
80058004
"items": {
80068005
"$ref": "#/definitions/gettableAlert"
80078006
},
80088007
"$ref": "#/definitions/gettableAlerts"
80098008
},
80108009
"gettableSilence": {
8011-
"description": "GettableSilence gettable silence",
80128010
"type": "object",
80138011
"required": [
80148012
"comment",
@@ -8058,7 +8056,6 @@
80588056
"$ref": "#/definitions/gettableSilence"
80598057
},
80608058
"gettableSilences": {
8061-
"description": "GettableSilences gettable silences",
80628059
"type": "array",
80638060
"items": {
80648061
"$ref": "#/definitions/gettableSilence"
@@ -8211,6 +8208,7 @@
82118208
}
82128209
},
82138210
"postableSilence": {
8211+
"description": "PostableSilence postable silence",
82148212
"type": "object",
82158213
"required": [
82168214
"comment",
@@ -8249,7 +8247,6 @@
82498247
"$ref": "#/definitions/postableSilence"
82508248
},
82518249
"receiver": {
8252-
"description": "Receiver receiver",
82538250
"type": "object",
82548251
"required": [
82558252
"active",

0 commit comments

Comments
 (0)