Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 868 Bytes

google_chat.md

File metadata and controls

31 lines (20 loc) · 868 Bytes

Google Chat Notifier

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'
  }
webhook_url

String, required

The Incoming WebHook URL on Google Chats.

app_name

String, optional

Your application name, shown in the notification. Defaults to Rails.application.class.module_parent_name.underscore for Rails versions >= 6; Rails.application.class.parent_name.underscore otherwise.