Skip to content
Rails wrapper for the Pingdom API using Pingr
Ruby
Pull request Compare This branch is 7 commits ahead, 7 commits behind emerose:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
.gitignore
README.textile
Thorfile
init.rb

README.textile

pingr-rails is a rails plugin for accessing the Pingdom API using Pingr

Requirements

Install the soap4r (and thor gems if you want to use the command line version).

Usage

You will need to create a “pingdom.yml” file the config directory. It should look like:


:username: someemail@example.com
:password: YourPingdomPassword
:api_key: 13c9a18ee27cafebabe4a72dead3beef

Obviously replace your email/login, password, and Pingdom API keys appropriately.

You can then call methods on the PingrRails class

e.g.

 PingrRails.current_states 

available methods:

  • downtime_summary(check, from, to)
  • responsetime_summary(check, from, to, resolution = Report_ResolutionEnum::DAILY, locs = nil)
  • outages(check, from, to, page=nil)
  • raw_data(check, from, to, page=nil)
  • checks
  • locations
  • current_states
  • last_outages
Something went wrong with that request. Please try again.