Google Hangouts Chat¶
Notify Google Hangouts Chat room with alert status.
-
send_google_hangouts_chat
(webhook_link=None, message=None, color='red')¶ Send Google Hangouts Chat notification.
Parameters: - webhook_link (str) – Webhook Link in Google Hangouts Chat Room. Create a Google Hangouts Chat Webhook and copy the link here.
- multiline (bool) – Should the Text in the notification span multiple lines or not? Default is
True
. - message (str) – Message to be sent. If
None
, then a message constructed from the alert will be sent. - color (str) – Message color. Default is
red
if alert is raised.
Note
Message color will be determined based on alert status. If alert has ended, then color
will be green
, otherwise color
argument will be used.