Sha256: fb2b4402c1519efe0a7a64acda3918360da97576754579fd11a245efbd38bd32

Contents?: true

Size: 868 Bytes

Versions: 4

Compression:

Stored size: 868 Bytes

Contents

### Google Chat Notifier

Post notifications in a Google Chats channel via [incoming webhook](https://developers.google.com/hangouts/chat/how-tos/webhooks)

Add the [HTTParty](https://github.com/jnunemaker/httparty) gem to your `Gemfile`:

```ruby
gem 'httparty'
```

To configure it, you **need** to set the `webhook_url` option.

```ruby
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.

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
exception_notification-4.5.0 docs/notifiers/google_chat.md
exception_notification-4.4.3 docs/notifiers/google_chat.md
exception_notification-4.4.1 docs/notifiers/google_chat.md
exception_notification-4.4.0 docs/notifiers/google_chat.md