Post notifications in a Google Chats channel via incoming webhook
Add the HTTParty gem to your Gemfile
:
gem 'httparty'
To configure it, you need to set the webhook_url
option.
Rails.application.config.middleware.use ExceptionNotification::Rack,
google_chat: {
webhook_url: 'https://chat.googleapis.com/v1/spaces/XXXXXXXX/messages?key=YYYYYYYYYYYYY&token=ZZZZZZZZZZZZ'
}
String, required
The Incoming WebHook URL on Google Chats.
String, optional
Your application name, shown in the notification. Defaults to Rails.application.class.parent_name.underscore
.