0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
ruby client for ragios
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0
~> 2.3.7
>= 0
~> 3.12
>= 0

Runtime

>= 1.8.2
>= 2.0.6
 Project Readme

ragios-client¶ ↑

Documentation

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