Skip to content
This repository has been archived by the owner on Mar 27, 2021. It is now read-only.

obi-a/ragios-client

Repository files navigation

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.

About

Ruby client library for Ragios

Resources

License

Stars

Watchers

Forks

Packages

No packages published