Rails wrapper for the Pingdom API using Pingr
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 1 commit ahead of bquilitz:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
README.rdoc
README.textile
Thorfile
init.rb
pingr-rails.gemspec

README.rdoc

pingr-rails is a rails plugin for accessing the Pingdom API using “Pingr”:github.com/chris/pingr

h2. Requirements

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

h2. Usage

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

<pre> :username: someemail@example.com :password: YourPingdomPassword :api_key: 13c9a18ee27cafebabe4a72dead3beef </pre>

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

You can then call methods on the __PingrRails__ class

e.g. <pre> PingrRails.current_states </pre>

available methods: <pre><code>

  • 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

</code></pre>