Class: NagiosHerald::Formatter::Example
- Inherits:
-
NagiosHerald::Formatter
- Object
- NagiosHerald::Formatter
- NagiosHerald::Formatter::Example
- Defined in:
- lib/nagios-herald/formatters/example.rb
Instance Attribute Summary
Attributes inherited from NagiosHerald::Formatter
#content, #sandbox, #state_type
Instance Method Summary collapse
-
#additional_details ⇒ Object
ovrerride Formatter::Base#additional_details.
Methods inherited from NagiosHerald::Formatter
#ack_info, #action_url, #add_attachment, #add_html, #add_short_text, #add_text, #additional_info, #alert_ack_url, #clean_sandbox, #delete_html, #delete_section_for_type, #delete_short_text, #delete_text, #end_section, formatters, #generate_ack_content, #generate_content, #generate_message_content, #generate_problem_content, #generate_recovery_content, #generate_section, #generate_subject, #get_sandbox_path, #host_info, inherited, #initialize, #line_break, #notes, #notification_info, #recipients_email_link, #short_ack_info, #short_state_detail, #start_section, #state_info
Methods included from Util
#get_nagios_var, get_script_path, load_helper, underscore_to_camel_case, #unescape_text
Methods included from Logging
#configure_logger_for, #logger, #logger_for
Constructor Details
This class inherits a constructor from NagiosHerald::Formatter
Instance Method Details
#additional_details ⇒ Object
ovrerride Formatter::Base#additional_details
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/nagios-herald/formatters/example.rb', line 6 def additional_details section = __method__ # content section is named after the method html = "" text = "" text += "Example text" html += "Example <b>HTML</b>" add_text(section, text) add_html(section, html) line_break(section) # trailing line break end |