Installation
Add this line to your application's Gemfile:
gem 'ekg'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ekg
Usage
- Provide some setup.
Ekg.config = { name: 'YOUR APP NAME',
firebase_url: 'https://YOURDB.firebaseio.com' }
- Call "lub_dub" whenever you want to fire a note that your app is alive.
Ekg.lub_dub
- Check your firebase database. You'll find that a note in /heartbeats will be updated with the current timestamp.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request