Module: Bixby::Monitoring

Defined in:
lib/bixby-client/modules/monitoring.rb

Class Method Summary collapse

Class Method Details

.update_check_config(agent) ⇒ CommandResponse

Update the check configuration for the specified Agent and restart the monitoring daemon.

Parameters:

  • agent (Agent)

Returns:

  • (CommandResponse)


11
12
13
14
15
16
17
# File 'lib/bixby-client/modules/monitoring.rb', line 11

def self.update_check_config(agent)
  if agent.kind_of? Bixby::Model::Agent then
    agent = agent.id
  end
  req = JsonRequest.new("monitoring:update_check_config", [ agent ])
  return Bixby.client.exec_api(req)
end