Sha256: b4a5ea8de6dc60a6cdbe3672e1722492ad7582d8a38b969fc36771977820534e

Contents?: true

Size: 576 Bytes

Versions: 8

Compression:

Stored size: 576 Bytes

Contents

class ZabbixApi
  class Proxies < Basic

    def array_flag
      true
    end

    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

8 entries across 8 versions & 1 rubygems

Version Path
zabbixapi-2.2.4 lib/zabbixapi/classes/proxies.rb
zabbixapi-2.2.3 lib/zabbixapi/classes/proxies.rb
zabbixapi-2.2.2 lib/zabbixapi/classes/proxies.rb
zabbixapi-2.4.0 lib/zabbixapi/classes/proxies.rb
zabbixapi-2.2.1 lib/zabbixapi/classes/proxies.rb
zabbixapi-2.2.0 lib/zabbixapi/classes/proxies.rb
zabbixapi-2.0.0 lib/zabbixapi/classes/proxies.rb
zabbixapi-0.6.6 lib/zabbixapi/2.0/classes/proxies.rb