ragios-client¶ ↑
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 © 2014 obi-a. See LICENSE.txt for further details.