Sha256: d921a392bfc265b23ed39da05117d1a36d93d6a76f7e71d6533fcb67ced1576b

Contents?: true

Size: 533 Bytes

Versions: 9

Compression:

Stored size: 533 Bytes

Contents

class ZabbixApi
  class Proxies < Basic

    def method_name
      "proxy"
    end

    def indentify
      "host"
    end

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

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

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

  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
logstash-filter-zabbix-0.1.2 vendor/bundle/jruby/1.9/gems/zabbixapi-2.4.9/lib/zabbixapi/classes/proxies.rb
logstash-filter-zabbix-0.1.1 vendor/bundle/jruby/1.9/gems/zabbixapi-2.4.9/lib/zabbixapi/classes/proxies.rb
zabbixapi-3.1.0 lib/zabbixapi/classes/proxies.rb
zabbixapi-3.0.0 lib/zabbixapi/classes/proxies.rb
zabbixapi-2.4.9 lib/zabbixapi/classes/proxies.rb
zabbixapi-2.4.8 lib/zabbixapi/classes/proxies.rb
zabbixapi-2.4.7 lib/zabbixapi/classes/proxies.rb
zabbixapi-2.4.6 lib/zabbixapi/classes/proxies.rb
zabbixapi-2.4.5 lib/zabbixapi/classes/proxies.rb