Cachet API Library Wrapper

This is under development and not functional

Ruby library wrapper for

Travis CI Code Climate Test Coverage Issue Count

Ruby library wrapper for


Add this line to your application's Gemfile:

gem 'cachet_api' (coming soon)

And then execute:

$ bundle

Or install it yourself as:

$ gem install cachet_api


# Under your profile in Cachet, get your api_key from the API Token section. Base url is or

CachetClient =, base_url)
CachetComponents =, base_url)
CachetIncidents =, base_url)
CachetMetrics =, base_url)
CachetSubscribers =, base_url)

View the last release API documentation at:

Library to API Quick Reference


Cachet API Ruby Library


Cachet API Ruby Library
get/components CachetComponents.list
get/components/:id CachetComponents.list_id
post/components CachetComponents.create
put/components/:id CachetComponents.update
delete/components/:id CachetComponents.delete
get/components/groups CachetComponents.groups_list
get/components/groups/:id CachetComponents.groups_list_id
post/components/groups CachetComponents.groups_create
put/components/groups/:id CachetComponents.groups_update
delete/components/groups/:id CachetComponents.groups_delete


Cachet API Ruby Library
get/incidents CachetIncidents.list
get/incidents/:id CachetIncidents.list_id
post/incidents CachetIncidents.create
put/incidents/:id CachetIncidents.update
delete/incidents/:id CachetIncidents.delete


Cachet API Ruby Library
get/metrics CachetMetrics.list
post/metrics CachetMetrics.create
get/metrics/:id CachetMetrics.list_id
delete/metrics/:id CachetMetrics.delete
get/metrics/:id/points CachetMetrics.point_list
post/metrics/:id/points CachetMetrics.point_add
delete/metrics/:id/points/:point_id CachetMetrics.point_delete


Cachet API Ruby Library
get/subscribers CachetSubscribers.list
post/subscribers CachetSubscribers.create
delete/subscribers/:id CachetSubscribers.delete


After checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to