Add id to POST /api/v1/silences (#9)

Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
This commit is contained in:
Ganesh Vernekar
2021-02-22 19:43:55 +05:30
committed by GitHub
parent 0440301569
commit dbf8a3e27e
2 changed files with 14 additions and 0 deletions
+5
View File
@@ -80,6 +80,11 @@ import (
// swagger:parameters RouteCreateSilence // swagger:parameters RouteCreateSilence
type CreateSilenceParams struct { type CreateSilenceParams struct {
// ID of any existing silence to overwrite
// in:body
// required: false
Id string `json:"id"`
// in:body // in:body
Body Silence Body Silence
} }
+9
View File
@@ -549,6 +549,15 @@
], ],
"operationId": "RouteCreateSilence", "operationId": "RouteCreateSilence",
"parameters": [ "parameters": [
{
"x-go-name": "Id",
"description": "ID of any existing silence to overwrite",
"name": "id",
"in": "body",
"schema": {
"type": "string"
}
},
{ {
"name": "Body", "name": "Body",
"in": "body", "in": "body",