Sha256: 0599137ce8728a0bfa355441754b9c9bd79ae9291ca98365629464a0e5e3e42d

Contents?: true

Size: 1.16 KB

Versions: 2

Compression:

Stored size: 1.16 KB

Contents

= ragios-client

{Documentation}[http://www.whisperservers.com/ragios/ragios-saint-ruby/using-ragios]

== usage
 require 'ragios-client'

 ragios = Ragios::Client.new

 ragios = Ragios::Client.new(username: 'admin', password: 'password')

 ragios = Ragios::Client.new(address: 'http://localhost', port: '5041')

 ragios = Ragios::Client.new(username: 'admin', password: 'password', address: 'http://localhost', port: '5041')

 ragios.login('admin', 'password')

 monitor = {
   monitor: "my website",
   every: "5m",
   url: "http://mywebsite.com",
   via: "twtter_notifier",
   plugin: "url_monitor"
 }

 ragios.create monitor

 ragios.find(monitor_id)

 ragios.all

 ragios.stop(monitor_id)

 ragios.restart(monitor_id)

 ragios.delete(monitor_id)

 ragios.where(options)

 ragios.update(monitor_id, options)

 ragios.test(monitor_id)

 ragios.events(monitor_id, start_date, end_date, limit)

 ragios.events_by_type(monitor_id, event_type, start_date, end_date, limit)

 ragios.events_by_state(monitor_id, state, start_date, end_date, limit)

 ragios.address
 #=> http://localhost

 ragios.port
 #=> 5041


== Copyright

Copyright (c) 2014 obi-a. See LICENSE.txt for
further details.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ragios-client-0.0.7 README.rdoc
ragios-client-0.0.6 README.rdoc