Class: Datadog::Profiling::Flush

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

Overview

Entity class used to represent metadata for a given profile

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = tags_as_array
  @internal_metadata_json = JSON.fast_generate()
  @info_json = info_json
end

Instance Attribute Details

#code_provenance_dataObject (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_nameObject (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

#finishObject (readonly)

Returns the value of attribute finish.



9
10
11
# File 'lib/datadog/profiling/flush.rb', line 9

def finish
  @finish
end

#info_jsonObject (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_jsonObject (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_dataObject (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_nameObject (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

#startObject (readonly)

Returns the value of attribute start.



9
10
11
# File 'lib/datadog/profiling/flush.rb', line 9

def start
  @start
end

#tags_as_arrayObject (readonly)

Returns the value of attribute tags_as_array.



9
10
11
# File 'lib/datadog/profiling/flush.rb', line 9

def tags_as_array
  @tags_as_array
end