Sha256: 5050e145940f832ea07d83c7b813adcb41d1d9f715388cabf011ac803578c36c

Contents?: true

Size: 473 Bytes

Versions: 6

Compression:

Stored size: 473 Bytes

Contents

module Bixby
  module Monitoring

  # Update the check configuration for the specified Agent and restart the
  # monitoring daemon.
  #
  # @param [Agent] agent
  #
  # @return [CommandResponse]
    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

  end # Monitoring
end # Bixby

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bixby-client-0.5.3 lib/bixby-client/modules/monitoring.rb
bixby-client-0.5.2 lib/bixby-client/modules/monitoring.rb
bixby-client-0.5.1 lib/bixby-client/modules/monitoring.rb
bixby-client-0.5.0 lib/bixby-client/modules/monitoring.rb
bixby-client-0.4.1 lib/bixby-client/modules/monitoring.rb
bixby-client-0.4.0 lib/bixby-client/modules/monitoring.rb