Alerting: Template API to return errutil errors (#91821)
This commit is contained in:
@@ -1906,7 +1906,7 @@
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"title": "Headers represents the configuration for HTTP headers.",
|
||||
"title": "Header represents the configuration for a single HTTP header.",
|
||||
"type": "object"
|
||||
},
|
||||
"Headers": {
|
||||
@@ -3403,6 +3403,12 @@
|
||||
"Route": {
|
||||
"description": "A Route is a node that contains definitions of how to handle alerts. This is modified\nfrom the upstream alertmanager in that it adds the ObjectMatchers property.",
|
||||
"properties": {
|
||||
"active_time_intervals": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"continue": {
|
||||
"type": "boolean"
|
||||
},
|
||||
@@ -4575,6 +4581,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"alertGroups": {
|
||||
"description": "AlertGroups alert groups",
|
||||
"items": {
|
||||
"$ref": "#/definitions/alertGroup",
|
||||
"type": "object"
|
||||
@@ -6173,9 +6180,6 @@
|
||||
"schema": {
|
||||
"$ref": "#/definitions/NotificationTemplates"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": " Not found."
|
||||
}
|
||||
},
|
||||
"summary": "Get all notification templates.",
|
||||
@@ -6237,7 +6241,10 @@
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": " Not found."
|
||||
"description": "GenericPublicError",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/GenericPublicError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"summary": "Get a notification template.",
|
||||
@@ -6279,9 +6286,9 @@
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "ValidationError",
|
||||
"description": "GenericPublicError",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/ValidationError"
|
||||
"$ref": "#/definitions/GenericPublicError"
|
||||
}
|
||||
},
|
||||
"409": {
|
||||
|
||||
Reference in New Issue
Block a user