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,8 +70,8 @@ func New(c *config.WebexConfig, t *template.Template, l log.Logger, httpOpts ...
}
type webhook struct {
Message string `json:"markdown"`
RoomID string `json:"roomId,omitempty"`
Markdown string `json:"markdown"`
RoomID string `json:"roomId,omitempty"`
}
// Notify implements the Notifier interface.
@ -100,8 +100,8 @@ func (n *Notifier) Notify(ctx context.Context, as ...*types.Alert) (bool, error)
}
w := webhook{
Message: message,
RoomID: n.conf.RoomID,
Markdown: message,
RoomID: n.conf.RoomID,
}
var payload bytes.Buffer