Sha256: 05b6ac06827ef5855fc4f2a7861227646a03875e8953be25271a4dd3b96554e5
Contents?: true
Size: 886 Bytes
Versions: 4
Compression:
Stored size: 886 Bytes
Contents
# encoding: UTF-8 require 'uri' require 'openssl' require 'prometheus/api_client/client' require 'prometheus/api_client/cadvisor' module Prometheus # Api Client is a ruby implementation for a Prometheus compatible api_client. module ApiClient # Create a Prometheus API client: # # @param [Hash] options # @option options [String] :url Server base URL. # @option options [Hash] :credentials Authentication credentials. # @option options [Hash] :options Options used to define connection. # @option options [Hash] :headers Unencoded HTTP header key/value pairs. # @option options [Hash] :request Request options. # @option options [Hash] :ssl SSL options. # @option options [String] :proxy Proxy url. # # A default client is created if options is omitted. def self.client(options = {}) Client.new(options) end end end
Version data entries
4 entries across 4 versions & 1 rubygems