Class: LiveQA::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/liveqa/message.rb

Overview

LiveQA Message

Return the base message for an event

Class Method Summary collapse

Class Method Details

.to_hObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/liveqa/message.rb', line 9

def to_h
  Util.deep_compact(
    tracker_id: tracker_id,
    message_id: SecureRandom.uuid,
    timestamp: Time.now.utc.iso8601,
    session_tracker_id: LiveQA::Store.get(:tracker_id),
    library: library,
    server: server,
    request: LiveQA::Store.get(:request),
    worker: LiveQA::Store.get(:worker),
    stack: LiveQA::Store.get(:stack),
    environement: LiveQA::Store.get(:environement)
  )
end