Class: Kaseya::VSA::Client::Alarms

Inherits:
Api
  • Object
show all
Defined in:
lib/kaseya/vsa/client/alarms.rb

Instance Attribute Summary

Attributes inherited from Api

#connection

Instance Method Summary collapse

Methods inherited from Api

#delete, #get_many, #get_one, #initialize, #post, #put

Constructor Details

This class inherits a constructor from Kaseya::VSA::Api

Instance Method Details

#all(params = {}) ⇒ Object



3
4
5
# File 'lib/kaseya/vsa/client/alarms.rb', line 3

def all(params = {})
  get_many "assetmgmt/alarms/true", params
end

#close(id) ⇒ Object



15
16
17
# File 'lib/kaseya/vsa/client/alarms.rb', line 15

def close(id)
  put "assetmgmt/alarms/#{id}/close"
end

#find(id) ⇒ Object



11
12
13
# File 'lib/kaseya/vsa/client/alarms.rb', line 11

def find(id)
  get_one "assetmgmt/alarms/#{id}"
end

#new_alarms(params = {}) ⇒ Object



7
8
9
# File 'lib/kaseya/vsa/client/alarms.rb', line 7

def new_alarms(params = {})
  get_many "assetmgmt/alarms/false", params
end