2016-05-27 23:27:54 +08:00
# rollbar webhooks
2016-05-24 22:32:42 +08:00
2019-03-09 03:25:20 +08:00
You should configure your Rollbar's Webhooks to point at the `webhooks` service. To do this go to [rollbar.com ](https://rollbar.com/ ) and click `Settings > Notifications > Webhook` . In the resulting page set `URL` to `http://<my_ip>:1619/rollbar` , and click on `Enable Webhook Integration` .
2016-05-24 22:32:42 +08:00
## Events
The titles of the following sections are links to the full payloads and details for each event. The body contains what information from the event is persisted. The format is as follows:
2021-11-25 02:50:22 +08:00
```toml
2016-05-24 22:32:42 +08:00
# TAGS
* 'tagKey' = `tagValue` type
# FIELDS
* 'fieldKey' = `fieldValue` type
```
2021-11-25 02:50:22 +08:00
2016-05-24 22:32:42 +08:00
The tag values and field values show the place on the incoming JSON object where the data is sourced from.
See [webhook doc ](https://rollbar.com/docs/webhooks/ )
2021-11-25 02:50:22 +08:00
### `new_item` event
2016-05-24 22:32:42 +08:00
**Tags:**
2021-11-25 02:50:22 +08:00
2016-05-24 22:32:42 +08:00
* 'event' = `event.event_name` string
* 'environment' = `event.data.item.environment` string
* 'project_id = `event.data.item.project_id` int
2024-05-31 16:26:37 +08:00
* 'language' = `event.data.item.last_occurrence.language` string
* 'level' = `event.data.item.last_occurrence.level` string
2016-05-24 22:32:42 +08:00
**Fields:**
2021-11-25 02:50:22 +08:00
2016-05-24 22:32:42 +08:00
* 'id' = `event.data.item.id` int
2021-11-25 02:50:22 +08:00
### `occurrence` event
2017-09-30 02:49:22 +08:00
**Tags:**
2021-11-25 02:50:22 +08:00
2017-09-30 02:49:22 +08:00
* 'event' = `event.event_name` string
* 'environment' = `event.data.item.environment` string
* 'project_id = `event.data.item.project_id` int
* 'language' = `event.data.occurrence.language` string
* 'level' = `event.data.occurrence.level` string
**Fields:**
2021-11-25 02:50:22 +08:00
2017-09-30 02:49:22 +08:00
* 'id' = `event.data.item.id` int
2021-11-25 02:50:22 +08:00
### `deploy` event
2016-05-24 22:32:42 +08:00
**Tags:**
2021-11-25 02:50:22 +08:00
2016-05-24 22:32:42 +08:00
* 'event' = `event.event_name` string
* 'environment' = `event.data.deploy.environment` string
* 'project_id = `event.data.deploy.project_id` int
**Fields:**
2021-11-25 02:50:22 +08:00
2016-05-24 22:32:42 +08:00
* 'id' = `event.data.item.id` int