Rename message to markwdown on the webex notifier

Signed-off-by: gotjosh <josue.abreu@gmail.com>
This commit is contained in:
gotjosh 2022-12-15 11:05:55 -04:00
parent 2c9eb9858e
commit 5ebe94d325
No known key found for this signature in database
GPG Key ID: A6E1DDE38FF3C74E
1 changed files with 4 additions and 4 deletions

View File

@ -70,7 +70,7 @@ func New(c *config.WebexConfig, t *template.Template, l log.Logger, httpOpts ...
}
type webhook struct {
Message string `json:"markdown"`
Markdown string `json:"markdown"`
RoomID string `json:"roomId,omitempty"`
}
@ -100,7 +100,7 @@ func (n *Notifier) Notify(ctx context.Context, as ...*types.Alert) (bool, error)
}
w := webhook{
Message: message,
Markdown: message,
RoomID: n.conf.RoomID,
}