Sha256: 85da3cf87f66483eaa0ce1b2973b71fe6aeb3e905bb6cf8f65291f990f4a4af2

Contents?: true

Size: 1.25 KB

Versions: 5

Compression:

Stored size: 1.25 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.find_event(event_id)

 ragios.delete_event(event_id)

 ragios.all_events(limit)

 ragios.address
 #=> http://localhost

 ragios.port
 #=> 5041


== Copyright

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ragios-client-0.2.4 README.rdoc
ragios-client-0.2.3 README.rdoc
ragios-client-0.2.1 README.rdoc
ragios-client-0.2.0 README.rdoc
ragios-client-0.1.0 README.rdoc