Class: Ksql::Api::HealthCheck

Inherits:
Object
  • Object
show all
Defined in:
lib/ksql/api/health_check.rb

Constant Summary collapse

Headers =
{ 'Accept' => 'application/json' }.freeze

Class Method Summary collapse

Class Method Details

.build(headers:) ⇒ Ksql::Connection::Request

Build the ksqlDB /healthcheck request

Parameters:

  • headers (Hash)

    Request headers

Returns:



15
16
17
18
19
20
21
22
# File 'lib/ksql/api/health_check.rb', line 15

def self.build(headers:)
  ::Ksql::Connection::Request.new(
    {},
    '/healthcheck',
    Headers.merge(headers),
    :get
  )
end