Class: AwsAlertMonitor::Events::ProcessDown

Inherits:
AwsAlertMonitor::Event show all
Defined in:
lib/aws-alert-monitor/events/process_down.rb

Instance Attribute Summary

Attributes inherited from AwsAlertMonitor::Event

#message_data, #raw_data

Instance Method Summary collapse

Methods inherited from AwsAlertMonitor::Event

#initialize

Constructor Details

This class inherits a constructor from AwsAlertMonitor::Event

Instance Method Details

#bodyObject



6
7
8
9
10
11
12
# File 'lib/aws-alert-monitor/events/process_down.rb', line 6

def body
  message = "received an alert: \n\n "
  message << "#{description}\n\n "
  message << "Environment: #{environment}\n\n "
  message << "Host: #{host}\n\n "
  message << "At #{created_at}"
end

#subjectObject



14
15
16
# File 'lib/aws-alert-monitor/events/process_down.rb', line 14

def subject
  "Alert: process #{process} down #{environment}"
end

#typeObject



18
19
20
# File 'lib/aws-alert-monitor/events/process_down.rb', line 18

def type
  'process_down'
end