Project

kaseyaws

0.0
No commit activity in last 3 years
No release in over 3 years
A Ruby Gem for Kaseya's VSA web service
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

>= 0
>= 2.1.0
 Project Readme

KaseyaWS

A simple Ruby Gem that provides a Ruby client for Kaseya's VSA web service.

This is currently a work in progress, as all Kaseya web service operations are not yet implemented.

The offical documentation for the Kaseya VSA web service

Installation

KaseyaWS is available at Rubygems and can be installed as follows.

$ gem install kaseyaws

or add it to your Gemfile:

gem 'kaseyaws', '~> 0.0.6'

Usage

require 'kaseyaws'

# Create a new web service client instance
kclient = KaseyaWS::Client.new("username","password","mykserver.domain.com")

#Get alarm list, returns hash
alarms = kclient.get_alarm_list

#Get a specific alarm by alarm id, returns hash
alarm = kclient.get_alarm(alarms[:alarms][:alarm][0][:monitor_alarm_id])

alarm[:alarm_subject]
# => "Monitoring generated Counter ALARM at 5:47:54 am 01-Feb-13 on computer.systems.company"

Dependencies

KaseyaWS has two Gem dependencies, Savon and json.

Savon

The Heavy metal SOAP client Savon does most of the work.

JSON

A Ruby implementation for JSON.