Skip to content

Commit d34bda6

Browse files
chore: update alerting swagger spec
1 parent 7ac2fd7 commit d34bda6

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

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

+2-3
Original file line numberDiff line numberDiff line change
@@ -4358,6 +4358,7 @@
43584358
"type": "object"
43594359
},
43604360
"gettableAlert": {
4361+
"description": "GettableAlert gettable alert",
43614362
"properties": {
43624363
"annotations": {
43634364
"$ref": "#/definitions/labelSet"
@@ -4413,7 +4414,6 @@
44134414
"type": "object"
44144415
},
44154416
"gettableAlerts": {
4416-
"description": "GettableAlerts gettable alerts",
44174417
"items": {
44184418
"$ref": "#/definitions/gettableAlert"
44194419
},
@@ -4469,13 +4469,13 @@
44694469
"type": "object"
44704470
},
44714471
"gettableSilences": {
4472+
"description": "GettableSilences gettable silences",
44724473
"items": {
44734474
"$ref": "#/definitions/gettableSilence"
44744475
},
44754476
"type": "array"
44764477
},
44774478
"integration": {
4478-
"description": "Integration integration",
44794479
"properties": {
44804480
"lastNotifyAttempt": {
44814481
"description": "A timestamp indicating the last attempt to deliver a notification regardless of the outcome.\nFormat: date-time",
@@ -4619,7 +4619,6 @@
46194619
"type": "array"
46204620
},
46214621
"postableSilence": {
4622-
"description": "PostableSilence postable silence",
46234622
"properties": {
46244623
"comment": {
46254624
"description": "comment",

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -4230,7 +4230,6 @@
42304230
"type": "object"
42314231
},
42324232
"alertGroup": {
4233-
"description": "AlertGroup alert group",
42344233
"properties": {
42354234
"alerts": {
42364235
"description": "alerts",
@@ -4358,6 +4357,7 @@
43584357
"type": "object"
43594358
},
43604359
"gettableAlert": {
4360+
"description": "GettableAlert gettable alert",
43614361
"properties": {
43624362
"annotations": {
43634363
"$ref": "#/definitions/labelSet"
@@ -4419,6 +4419,7 @@
44194419
"type": "array"
44204420
},
44214421
"gettableSilence": {
4422+
"description": "GettableSilence gettable silence",
44224423
"properties": {
44234424
"comment": {
44244425
"description": "comment",
@@ -4474,7 +4475,6 @@
44744475
"type": "array"
44754476
},
44764477
"integration": {
4477-
"description": "Integration integration",
44784478
"properties": {
44794479
"lastNotifyAttempt": {
44804480
"description": "A timestamp indicating the last attempt to deliver a notification regardless of the outcome.\nFormat: date-time",
@@ -4618,6 +4618,7 @@
46184618
"type": "array"
46194619
},
46204620
"postableSilence": {
4621+
"description": "PostableSilence postable silence",
46214622
"properties": {
46224623
"comment": {
46234624
"description": "comment",
@@ -4655,6 +4656,7 @@
46554656
"type": "object"
46564657
},
46574658
"receiver": {
4659+
"description": "Receiver receiver",
46584660
"properties": {
46594661
"active": {
46604662
"description": "active",

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -7383,7 +7383,6 @@
73837383
}
73847384
},
73857385
"alertGroup": {
7386-
"description": "AlertGroup alert group",
73877386
"type": "object",
73887387
"required": [
73897388
"alerts",
@@ -7513,6 +7512,7 @@
75137512
}
75147513
},
75157514
"gettableAlert": {
7515+
"description": "GettableAlert gettable alert",
75167516
"type": "object",
75177517
"required": [
75187518
"labels",
@@ -7576,6 +7576,7 @@
75767576
"$ref": "#/definitions/gettableAlerts"
75777577
},
75787578
"gettableSilence": {
7579+
"description": "GettableSilence gettable silence",
75797580
"type": "object",
75807581
"required": [
75817582
"comment",
@@ -7633,7 +7634,6 @@
76337634
"$ref": "#/definitions/gettableSilences"
76347635
},
76357636
"integration": {
7636-
"description": "Integration integration",
76377637
"type": "object",
76387638
"required": [
76397639
"name",
@@ -7778,6 +7778,7 @@
77787778
}
77797779
},
77807780
"postableSilence": {
7781+
"description": "PostableSilence postable silence",
77817782
"type": "object",
77827783
"required": [
77837784
"comment",
@@ -7816,6 +7817,7 @@
78167817
"$ref": "#/definitions/postableSilence"
78177818
},
78187819
"receiver": {
7820+
"description": "Receiver receiver",
78197821
"type": "object",
78207822
"required": [
78217823
"active",

0 commit comments

Comments
 (0)