Module: Jets::Job::Helpers::LogEventHelper
- Included in:
- Base
- Defined in:
- lib/jets/job/helpers/log_event_helper.rb
Instance Method Summary collapse
Instance Method Details
#log_event ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/jets/job/helpers/log_event_helper.rb', line 8 def log_event encoded = event["awslogs"]["data"] compressed_string = Base64.decode64(encoded) gz = Zlib::GzipReader.new(StringIO.new(compressed_string)) uncompressed_string = gz.read data = JSON.load(uncompressed_string) ActiveSupport::HashWithIndifferentAccess.new(data) end |