Uptime Robot API client for Ruby.
Ruby
Latest commit 68ea360 Jan 2, 2015 @winebarrel Fix spec
Permalink
Failed to load latest commit information.
lib bump version Dec 31, 2014
spec Fix spec Jan 2, 2015
.gitignore Add test.rb to .gitignore Dec 24, 2014
.rspec Add spec skeleton Dec 24, 2014
.travis.yml Add .travis.yml Dec 25, 2014
Gemfile first commit Dec 24, 2014
LICENSE.txt first commit Dec 24, 2014
README.md Update README.md Dec 29, 2014
Rakefile Add spec skeleton Dec 24, 2014
uptimerobot.gemspec Fix description Dec 25, 2014

README.md

UptimeRobot

Uptime Robot API client for Ruby.

Gem Version Build Status

Installation

Add this line to your application's Gemfile:

gem 'uptimerobot'

And then execute:

$ bundle

Or install it yourself as:

$ gem install uptimerobot

Usage

require 'uptimerobot'

client = UptimeRobot::Client.new(apiKey: 'u956-afus321g565fghr519')

client.getMonitors
# => {"stat"=>"ok",
#     "offset"=>"0",
#     "limit"=>"50",
#     "total"=>"2",
#     "monitors"=>
#      {"monitor"=>
#        [{"id"=>"128795",
#          "friendlyname"=>"Yahoo",
#          "url"=>"http://www.yahoo.com/",
#          "type"=>"1",
#          "subtype"=>"",
#          ...

client.newMonitor(
  monitorFriendlyName: 'Google',
  monitorURL: 'http://www.google.com',
  monitorType: UptimeRobot::Monitor::Type::HTTP,
  monitorAlertContacts: '448,716'
)

Test

$ bundle exec rake

Uptime Robot API reference