Class: Datadog::Profiling::Flush
- Inherits:
-
Object
- Object
- Datadog::Profiling::Flush
- Defined in:
- lib/datadog/profiling/flush.rb
Overview
Entity class used to represent metadata for a given profile
Instance Attribute Summary collapse
-
#code_provenance_data ⇒ Object
readonly
Returns the value of attribute code_provenance_data.
-
#code_provenance_file_name ⇒ Object
readonly
Returns the value of attribute code_provenance_file_name.
-
#finish ⇒ Object
readonly
Returns the value of attribute finish.
-
#info_json ⇒ Object
readonly
Returns the value of attribute info_json.
-
#internal_metadata_json ⇒ Object
readonly
Returns the value of attribute internal_metadata_json.
-
#pprof_data ⇒ Object
readonly
Returns the value of attribute pprof_data.
-
#pprof_file_name ⇒ Object
readonly
Returns the value of attribute pprof_file_name.
-
#start ⇒ Object
readonly
Returns the value of attribute start.
-
#tags_as_array ⇒ Object
readonly
Returns the value of attribute tags_as_array.
Instance Method Summary collapse
-
#initialize(start:, finish:, pprof_file_name:, pprof_data:, code_provenance_file_name:, code_provenance_data:, tags_as_array:, internal_metadata:, info_json:) ⇒ Flush
constructor
A new instance of Flush.
Constructor Details
#initialize(start:, finish:, pprof_file_name:, pprof_data:, code_provenance_file_name:, code_provenance_data:, tags_as_array:, internal_metadata:, info_json:) ⇒ Flush
Returns a new instance of Flush.
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/datadog/profiling/flush.rb', line 20 def initialize( start:, finish:, pprof_file_name:, pprof_data:, code_provenance_file_name:, code_provenance_data:, tags_as_array:, internal_metadata:, info_json: ) @start = start @finish = finish @pprof_file_name = pprof_file_name @pprof_data = pprof_data @code_provenance_file_name = code_provenance_file_name @code_provenance_data = code_provenance_data @tags_as_array = @internal_metadata_json = JSON.fast_generate() @info_json = info_json end |
Instance Attribute Details
#code_provenance_data ⇒ Object (readonly)
Returns the value of attribute code_provenance_data.
9 10 11 |
# File 'lib/datadog/profiling/flush.rb', line 9 def code_provenance_data @code_provenance_data end |
#code_provenance_file_name ⇒ Object (readonly)
Returns the value of attribute code_provenance_file_name.
9 10 11 |
# File 'lib/datadog/profiling/flush.rb', line 9 def code_provenance_file_name @code_provenance_file_name end |
#finish ⇒ Object (readonly)
Returns the value of attribute finish.
9 10 11 |
# File 'lib/datadog/profiling/flush.rb', line 9 def finish @finish end |
#info_json ⇒ Object (readonly)
Returns the value of attribute info_json.
9 10 11 |
# File 'lib/datadog/profiling/flush.rb', line 9 def info_json @info_json end |
#internal_metadata_json ⇒ Object (readonly)
Returns the value of attribute internal_metadata_json.
9 10 11 |
# File 'lib/datadog/profiling/flush.rb', line 9 def @internal_metadata_json end |
#pprof_data ⇒ Object (readonly)
Returns the value of attribute pprof_data.
9 10 11 |
# File 'lib/datadog/profiling/flush.rb', line 9 def pprof_data @pprof_data end |
#pprof_file_name ⇒ Object (readonly)
Returns the value of attribute pprof_file_name.
9 10 11 |
# File 'lib/datadog/profiling/flush.rb', line 9 def pprof_file_name @pprof_file_name end |
#start ⇒ Object (readonly)
Returns the value of attribute start.
9 10 11 |
# File 'lib/datadog/profiling/flush.rb', line 9 def start @start end |
#tags_as_array ⇒ Object (readonly)
Returns the value of attribute tags_as_array.
9 10 11 |
# File 'lib/datadog/profiling/flush.rb', line 9 def @tags_as_array end |