Add id to POST /api/v1/silences (#9)
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user