0.0
No commit activity in last 3 years
No release in over 3 years
pingr-rails is a rails plugin for accessing the Pingdom API using Pingr
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

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>