class Nagios::API::Host

Public Instance Methods

name() click to toggle source
# File lib/nagios/api/host.rb, line 28
def name
  host_name
end
schedule_downtime() click to toggle source
# File lib/nagios/api/host.rb, line 36
def schedule_downtime
  # host
  # author
  # comment
  # start_time
  # fixed
  # duration
  # end_time
  # services_too
end
services() click to toggle source
# File lib/nagios/api/host.rb, line 24
def services
  @services ||= Nagios::API::Services.new(api_client: api_client, host: self)
end
state() click to toggle source
# File lib/nagios/api/host.rb, line 32
def state
  api_client.state.for_host(name)
end