Class: Io::Flow::V0::Clients::KubeHealthchecks

Inherits:
Object
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KubeHealthchecks

Returns a new instance of KubeHealthchecks.



7337
7338
7339
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7337

def initialize(client)
  @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client)
end

Instance Method Details

#get_liveObject



7341
7342
7343
7344
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7341

def get_live
  r = @client.request("/_internal_/live").get
  ::Io::Flow::V0::Models::KubeHealthcheck.new(r)
end

#get_readyObject



7346
7347
7348
7349
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7346

def get_ready
  r = @client.request("/_internal_/ready").get
  ::Io::Flow::V0::Models::KubeHealthcheck.new(r)
end

#get_startupObject



7351
7352
7353
7354
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7351

def get_startup
  r = @client.request("/_internal_/startup").get
  ::Io::Flow::V0::Models::KubeHealthcheck.new(r)
end