Class: ZabbixApi::Proxies

Inherits:
Basic
  • Object
show all
Defined in:
lib/zabbixapi/classes/proxies.rb

Instance Method Summary collapse

Methods inherited from Basic

#add, #all, #create, #create_or_update, #default_options, #destroy, #dump_by_id, #get, #get_full_data, #get_id, #get_or_create, #hash_equals?, #initialize, #key, #keys, #log, #merge_params, #normalize_hash, #parse_keys, #symbolize_keys, #update

Constructor Details

This class inherits a constructor from ZabbixApi::Basic

Instance Method Details

#delete(data) ⇒ Object



12
13
14
15
# File 'lib/zabbixapi/classes/proxies.rb', line 12

def delete(data)
  result = @client.api_request(:method => "proxy.delete", :params => data)
  result.empty? ? nil : result['proxyids'][0].to_i
end

#indentifyObject



8
9
10
# File 'lib/zabbixapi/classes/proxies.rb', line 8

def indentify
  "host"
end

#isreadable(data) ⇒ Object



17
18
19
# File 'lib/zabbixapi/classes/proxies.rb', line 17

def isreadable(data)
  result = @client.api_request(:method => "proxy.isreadable", :params => data)
end

#iswritable(data) ⇒ Object



21
22
23
# File 'lib/zabbixapi/classes/proxies.rb', line 21

def iswritable(data)
  result = @client.api_request(:method => "proxy.iswritable", :params => data)
end

#method_nameObject



4
5
6
# File 'lib/zabbixapi/classes/proxies.rb', line 4

def method_name
  "proxy"
end