Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2a101c1

Browse files
authoredFeb 17, 2025
chore: update alerting swagger spec
1 parent 4b5b738 commit 2a101c1

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed
 

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

+2-4
Original file line numberDiff line numberDiff line change
@@ -4417,7 +4417,6 @@
44174417
"type": "object"
44184418
},
44194419
"alertGroup": {
4420-
"description": "AlertGroup alert group",
44214420
"properties": {
44224421
"alerts": {
44234422
"description": "alerts",
@@ -4441,7 +4440,6 @@
44414440
"type": "object"
44424441
},
44434442
"alertGroups": {
4444-
"description": "AlertGroups alert groups",
44454443
"items": {
44464444
"$ref": "#/definitions/alertGroup"
44474445
},
@@ -4546,7 +4544,6 @@
45464544
"type": "object"
45474545
},
45484546
"gettableAlert": {
4549-
"description": "GettableAlert gettable alert",
45504547
"properties": {
45514548
"annotations": {
45524549
"$ref": "#/definitions/labelSet"
@@ -4602,12 +4599,14 @@
46024599
"type": "object"
46034600
},
46044601
"gettableAlerts": {
4602+
"description": "GettableAlerts gettable alerts",
46054603
"items": {
46064604
"$ref": "#/definitions/gettableAlert"
46074605
},
46084606
"type": "array"
46094607
},
46104608
"gettableSilence": {
4609+
"description": "GettableSilence gettable silence",
46114610
"properties": {
46124611
"comment": {
46134612
"description": "comment",
@@ -4656,7 +4655,6 @@
46564655
"type": "object"
46574656
},
46584657
"gettableSilences": {
4659-
"description": "GettableSilences gettable silences",
46604658
"items": {
46614659
"$ref": "#/definitions/gettableSilence"
46624660
},

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

+4-5
Original file line numberDiff line numberDiff line change
@@ -4176,6 +4176,7 @@
41764176
"type": "object"
41774177
},
41784178
"URL": {
4179+
"description": "The general form represented is:\n\n[scheme:][//[userinfo@]host][/]path[?query][#fragment]\n\nURLs that do not start with a slash after the scheme are interpreted as:\n\nscheme:opaque[?query][#fragment]\n\nNote that the Path field is stored in decoded form: /%47%6f%2f becomes /Go/.\nA consequence is that it is impossible to tell which slashes in the Path were\nslashes in the raw URL and which were %2f. This distinction is rarely important,\nbut when it is, the code should use the EscapedPath method, which preserves\nthe original encoding of Path.\n\nThe RawPath field is an optional field which is only set when the default\nencoding of Path is different from the escaped path. See the EscapedPath method\nfor more details.\n\nURL's String method uses the EscapedPath method to obtain the path.",
41794180
"properties": {
41804181
"ForceQuery": {
41814182
"type": "boolean"
@@ -4211,7 +4212,7 @@
42114212
"$ref": "#/definitions/Userinfo"
42124213
}
42134214
},
4214-
"title": "URL is a custom URL type that allows validation at configuration load time.",
4215+
"title": "A URL represents a parsed URL (technically, a URI reference).",
42154216
"type": "object"
42164217
},
42174218
"UpdateRuleGroupResponse": {
@@ -4417,7 +4418,6 @@
44174418
"type": "object"
44184419
},
44194420
"alertGroup": {
4420-
"description": "AlertGroup alert group",
44214421
"properties": {
44224422
"alerts": {
44234423
"description": "alerts",
@@ -4600,13 +4600,13 @@
46004600
"type": "object"
46014601
},
46024602
"gettableAlerts": {
4603+
"description": "GettableAlerts gettable alerts",
46034604
"items": {
46044605
"$ref": "#/definitions/gettableAlert"
46054606
},
46064607
"type": "array"
46074608
},
46084609
"gettableSilence": {
4609-
"description": "GettableSilence gettable silence",
46104610
"properties": {
46114611
"comment": {
46124612
"description": "comment",
@@ -4655,14 +4655,12 @@
46554655
"type": "object"
46564656
},
46574657
"gettableSilences": {
4658-
"description": "GettableSilences gettable silences",
46594658
"items": {
46604659
"$ref": "#/definitions/gettableSilence"
46614660
},
46624661
"type": "array"
46634662
},
46644663
"integration": {
4665-
"description": "Integration integration",
46664664
"properties": {
46674665
"lastNotifyAttempt": {
46684666
"description": "A timestamp indicating the last attempt to deliver a notification regardless of the outcome.\nFormat: date-time",
@@ -4806,6 +4804,7 @@
48064804
"type": "array"
48074805
},
48084806
"postableSilence": {
4807+
"description": "PostableSilence postable silence",
48094808
"properties": {
48104809
"comment": {
48114810
"description": "comment",

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

+4-5
Original file line numberDiff line numberDiff line change
@@ -7654,8 +7654,9 @@
76547654
}
76557655
},
76567656
"URL": {
7657+
"description": "The general form represented is:\n\n[scheme:][//[userinfo@]host][/]path[?query][#fragment]\n\nURLs that do not start with a slash after the scheme are interpreted as:\n\nscheme:opaque[?query][#fragment]\n\nNote that the Path field is stored in decoded form: /%47%6f%2f becomes /Go/.\nA consequence is that it is impossible to tell which slashes in the Path were\nslashes in the raw URL and which were %2f. This distinction is rarely important,\nbut when it is, the code should use the EscapedPath method, which preserves\nthe original encoding of Path.\n\nThe RawPath field is an optional field which is only set when the default\nencoding of Path is different from the escaped path. See the EscapedPath method\nfor more details.\n\nURL's String method uses the EscapedPath method to obtain the path.",
76577658
"type": "object",
7658-
"title": "URL is a custom URL type that allows validation at configuration load time.",
7659+
"title": "A URL represents a parsed URL (technically, a URI reference).",
76597660
"properties": {
76607661
"ForceQuery": {
76617662
"type": "boolean"
@@ -7895,7 +7896,6 @@
78957896
}
78967897
},
78977898
"alertGroup": {
7898-
"description": "AlertGroup alert group",
78997899
"type": "object",
79007900
"required": [
79017901
"alerts",
@@ -8081,14 +8081,14 @@
80818081
"$ref": "#/definitions/gettableAlert"
80828082
},
80838083
"gettableAlerts": {
8084+
"description": "GettableAlerts gettable alerts",
80848085
"type": "array",
80858086
"items": {
80868087
"$ref": "#/definitions/gettableAlert"
80878088
},
80888089
"$ref": "#/definitions/gettableAlerts"
80898090
},
80908091
"gettableSilence": {
8091-
"description": "GettableSilence gettable silence",
80928092
"type": "object",
80938093
"required": [
80948094
"comment",
@@ -8138,15 +8138,13 @@
81388138
"$ref": "#/definitions/gettableSilence"
81398139
},
81408140
"gettableSilences": {
8141-
"description": "GettableSilences gettable silences",
81428141
"type": "array",
81438142
"items": {
81448143
"$ref": "#/definitions/gettableSilence"
81458144
},
81468145
"$ref": "#/definitions/gettableSilences"
81478146
},
81488147
"integration": {
8149-
"description": "Integration integration",
81508148
"type": "object",
81518149
"required": [
81528150
"name",
@@ -8291,6 +8289,7 @@
82918289
}
82928290
},
82938291
"postableSilence": {
8292+
"description": "PostableSilence postable silence",
82948293
"type": "object",
82958294
"required": [
82968295
"comment",

0 commit comments

Comments
 (0)
Please sign in to comment.