lib/zabbixapi/classes/hosts.rb in zabbixapi-2.4.2 vs lib/zabbixapi/classes/hosts.rb in zabbixapi-2.4.3

- old
+ new

@@ -7,9 +7,24 @@ def indentify "host" end + def dump_by_id(data) + log "[DEBUG] Call dump_by_id with parametrs: #{data.inspect}" + + @client.api_request( + :method => "host.get", + :params => { + :filter => { + key.to_sym => data[key.to_sym] + }, + :output => "extend", + :selectGroups => "shorten" + } + ) + end + def default_options { :host => nil, :interfaces => [], :status => 0,