#Bugsnag Error Widget for Dashing.io
Dashing Widget for displaying Bugsnag errors count. Supports any number of bugsnag projects and error configurations.
##Usage
To use this widget you have two options:
- Let Dashing do the hard work for you: run
dashing install f7ed811ea0fcecb5c4ace4c7e029cd9e
(this will copy all files in place).
Then edit bugsnag_errors.rb
to configure your Bugsnag credentials and set up the list of errors you are interested in.
- Or do it all yourself: copy
bugsnag_errors.html
,bugsnag_errors.coffee
, andbugsnag_errors.scss
into the/widgets/bugsnag_errors
directory. Put thebugsnag_errors.rb
file in your/jobs
folder. Then editbugsnag_errors.rb
to configure your Bugsnag credentials and set up the list of errors you are interested in.
After that, install dependencies:
- Add
gem 'json'
to yourGemfile
and runbundle
To include this widget in a dashboard, add the following snippet to the dashboard layout file:
<li data-row="1" data-col="2" data-sizex="1" data-sizey="1">
<div data-id="<bugsnag_errors_job_id>" data-view="BugsnagErrors"></div>
</li>
##How to configure bugsnag_errors.rb
- Modify CREDENTIALS object username and password.
- Inside job_mapping, add one entry per error configuration you want to fetch (i.e production errors, production warnings, dev errors, open errors...) following the structure of the sample jobs you can find in bugsnag_errors.rb.
- Use the key of the job entry you just configured as yor
data-id
in your dashboard html. - You can add any number of jobs and therefore you can have any number of html BugsnagErrors tags.
##Widget background color The widget is colored depending on the error severity:
- red for
error
- orange for
warning
- green for
info
##Where is my project id?
- Open a browser, log into bugsnag.com and load https://api.bugsnag.com/accounts. There you will find your account ID.
- With that account ID, load http://api.bugsnag.com/accounts/your_account_id/projects. There you will find your project's IDs.
##Based on bugsnag API All configurable job properties inside bugsnag_errors.rb are documented in http://docs.bugsnag.com/api/data-access/errors/