class Monit::Server

The server section from the Monit XML

Attributes

controlfile[R]
httpd[R]
id[R]
incarnation[R]
localhostname[R]
poll[R]
startdelay[R]
uptime[R]
version[R]

Public Class Methods

new(options = {}) click to toggle source
# File lib/monit/server.rb, line 6
def initialize(options = {})
  @id = options["id"]
  @incarnation = options["incarnation"]
  @version = options["version"]
  @uptime = options["uptime"].to_i
  @poll = options["poll"].to_i
  @startdelay = options["startdelay"].to_i
  @localhostname = options["localhostname"]
  @controlfile = options["controlfile"]
  @httpd = options["httpd"].is_a?(HTTPD) ? options["httpd"] : HTTPD.new(options["httpd"])
end