Skip to content

Instantly share code, notes, and snippets.

/ruby.rb Secret

Created April 16, 2015 18:35
Show Gist options
  • Save anonymous/703e9e48a500a5c314fd to your computer and use it in GitHub Desktop.
Save anonymous/703e9e48a500a5c314fd to your computer and use it in GitHub Desktop.
class Email
attr_accessor :is_set, :alertname, :from, :to, :subject, :priority, :include_trigger, :include_trigger_time, :reportServerEnabled, :inline, :sendresults, :useNSSubject
def initialize
@is_set = "1"
@from = "\" " + @alertname + " \"" + @from
@to = "no-reply@email.com"
@subject = @alertname
@priority = "2"
@include_trigger = "1"
@include_trigger_time = "1"
@reportServerEnabled = "0"
@inline = "1"
@sendresults = "1"
@useNSSubject = "1"
super
end
def print
puts "action.email = " + @is_set
puts "action.email.from = " + @from
puts "action.email.to = " + @to
puts "action.email.subject = " + @subject
puts "action.email.priority = " + @priority
puts "action.email.include.trigger = " + @include_trigger
puts "action.email.include.trigger.time = " + @include_trigger_time
puts "action.email.reportServerEnabled = " + @reportServerEnabled
puts "action.email.inline = " + @inline
puts "action.email.sendresults = " + @inline
puts "action.email.useNSSubject = " + @sendresults
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment