Class: Datadog::Profiling::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog/profiling/event.rb

Overview

Describes a sample of some data obtained from the runtime.

Direct Known Subclasses

Datadog::Profiling::Events::Stack

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(timestamp = nil) ⇒ Event

Returns a new instance of Event.



8
9
10
# File 'lib/datadog/profiling/event.rb', line 8

def initialize(timestamp = nil)
  @timestamp = timestamp || Time.now.utc.to_f
end

Instance Attribute Details

#timestampObject (readonly)

Returns the value of attribute timestamp.



5
6
7
# File 'lib/datadog/profiling/event.rb', line 5

def timestamp
  @timestamp
end