Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 777 Bytes

google_chat.md

File metadata and controls

30 lines (19 loc) · 777 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.parent_name.underscore.