Sha256: 8a06ac2bb0dbc60f0cfcad6aa2c8ccdec86ba6069c4aeba10b7acc3db841044a

Contents?: true

Size: 1.25 KB

Versions: 2

Compression:

Stored size: 1.25 KB

Contents

module KineticSdk
  class Integrator

    # Retrieve Integrator application version
    #
    # @param headers [Hash] hash of headers to send, default is accept JSON content type
    # @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties
    def app_version(headers=header_accept_json)
      @logger.info("Retrieving Integrator version.")
      get("#{@api_url}/version", {}, headers)
    end

    # Check Integrator health
    #
    # @param headers [Hash] hash of headers to send, default is accept JSON content type
    # @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties
    def health(headers=header_accept_json)
      @logger.info("Retrieving Integrator health.")
      get("#{@api_url}/healthz", {}, headers)
    end

    # OpenApi Specification
    #
    # @param headers [Hash] hash of headers to send, default is accept JSON content type
    # @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties
    def oas(headers=header_accept_json)
      @logger.info("Retrieving OpenAPI Specification.")
      get("#{@api_url}/oas", {}, headers)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kinetic_sdk-5.0.29 lib/kinetic_sdk/integrator/lib/metadata.rb
kinetic_sdk-5.0.28 lib/kinetic_sdk/integrator/lib/metadata.rb