README
¶
rollbar webhooks
You should configure your Rollbar's Webhooks to point at the webhooks
service. To do this go to 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
.
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:
# TAGS
* 'tagKey' = `tagValue` type
# FIELDS
* 'fieldKey' = `fieldValue` type
The tag values and field values show the place on the incoming JSON object where the data is sourced from.
See webhook doc
new_item
event
Tags:
- 'event' =
event.event_name
string - 'environment' =
event.data.item.environment
string - 'project_id =
event.data.item.project_id
int - 'language' =
event.data.item.last_occurence.language
string - 'level' =
event.data.item.last_occurence.level
string
Fields:
- 'id' =
event.data.item.id
int
occurrence
event
Tags:
- '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:
- 'id' =
event.data.item.id
int
deploy
event
Tags:
- 'event' =
event.event_name
string - 'environment' =
event.data.deploy.environment
string - 'project_id =
event.data.deploy.project_id
int
Fields:
- 'id' =
event.data.item.id
int
Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deploy ¶
type Deploy struct { EventName string `json:"event_name"` Data DeployData `json:"data"` }
type DeployData ¶
type DeployData struct {
Deploy DeployDataDeploy `json:"deploy"`
}
type DeployDataDeploy ¶
type DummyEvent ¶
type DummyEvent struct {
EventName string `json:"event_name"`
}
type NewItem ¶
type NewItem struct { EventName string `json:"event_name"` Data NewItemData `json:"data"` }
type NewItemData ¶
type NewItemData struct {
Item NewItemDataItem `json:"item"`
}
type NewItemDataItem ¶
type NewItemDataItem struct { Id int `json:"id"` Environment string `json:"environment"` ProjectId int `json:"project_id"` LastOccurence NewItemDataItemLastOccurence `json:"last_occurrence"` }
type Occurrence ¶
type Occurrence struct { EventName string `json:"event_name"` Data OccurrenceData `json:"data"` }
func (*Occurrence) Fields ¶
func (o *Occurrence) Fields() map[string]interface{}
func (*Occurrence) Tags ¶
func (o *Occurrence) Tags() map[string]string
type OccurrenceData ¶
type OccurrenceData struct { Item OccurrenceDataItem `json:"item"` Occurrence OccurrenceDataOccurrence `json:"occurrence"` }
type OccurrenceDataItem ¶
type RollbarWebhook ¶
type RollbarWebhook struct { Path string // contains filtered or unexported fields }
func (*RollbarWebhook) Register ¶
func (rb *RollbarWebhook) Register(router *mux.Router, acc telegraf.Accumulator)
Click to show internal directories.
Click to hide internal directories.