Module: Bixby::Monitoring
- Defined in:
- lib/bixby-client/modules/monitoring.rb
Class Method Summary collapse
-
.update_check_config(agent) ⇒ CommandResponse
Update the check configuration for the specified Agent and restart the monitoring daemon.
Class Method Details
.update_check_config(agent) ⇒ CommandResponse
Update the check configuration for the specified Agent and restart the monitoring daemon.
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 |