Class: AlertDesigner::Formatters::Nagios

Inherits:
Formatter
  • Object
show all
Defined in:
lib/alertdesigner/formatters/nagios.rb

Overview

Class for the generic nagios formatter

Defined Under Namespace

Classes: NagiosDefinition

Instance Method Summary collapse

Instance Method Details

#check_template(template) ⇒ Object



45
46
47
# File 'lib/alertdesigner/formatters/nagios.rb', line 45

def check_template(template)
  @check_template = template
end

#format(type, value) ⇒ Object



49
50
51
52
# File 'lib/alertdesigner/formatters/nagios.rb', line 49

def format(type, value)
  return format_checks(value) if type == :checks
  return format_commands(value) if type == :commands
end