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:, encoded_profile:, code_provenance_data:, metrics:, tags_as_array:, process_tags:, internal_metadata:, info_json:) ⇒ Flush

Returns a new instance of Flush.



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/datadog/profiling/flush.rb', line 29

def initialize(
  start:,
  finish:,
  encoded_profile:,
  code_provenance_data:,
  metrics:,
  tags_as_array:,
  process_tags:,
  internal_metadata:,
  info_json:
)
  @start = start
  @finish = finish
  @encoded_profile = encoded_profile
  @code_provenance_data = code_provenance_data
  @metrics = JSON.generate(metrics)
  @tags_as_array = tags_as_array
  @process_tags = process_tags
  @internal_metadata_json = JSON.generate()
  @info_json = info_json
end

Instance Attribute Details

#code_provenance_data ⇒ Object (readonly)

: ::String?



12
13
14
# File 'lib/datadog/profiling/flush.rb', line 12

def code_provenance_data
  @code_provenance_data
end

#encoded_profile ⇒ Object (readonly)

: Datadog::Profiling::EncodedProfile



11
12
13
# File 'lib/datadog/profiling/flush.rb', line 11

def encoded_profile
  @encoded_profile
end

#finish ⇒ Object (readonly)

: ::Time



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

def finish
  @finish
end

#info_json ⇒ Object (readonly)

: ::String



17
18
19
# File 'lib/datadog/profiling/flush.rb', line 17

def info_json
  @info_json
end

#internal_metadata_json ⇒ Object (readonly)

: ::String



16
17
18
# File 'lib/datadog/profiling/flush.rb', line 16

def 
  @internal_metadata_json
end

#metrics ⇒ Object (readonly)

: ::String



13
14
15
# File 'lib/datadog/profiling/flush.rb', line 13

def metrics
  @metrics
end

#process_tags ⇒ Object (readonly)

: ::String



15
16
17
# File 'lib/datadog/profiling/flush.rb', line 15

def process_tags
  @process_tags
end

#start ⇒ Object (readonly)

: ::Time



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

def start
  @start
end

#tags_as_array ⇒ Object (readonly)

: Array[[::String, ::String]]



14
15
16
# File 'lib/datadog/profiling/flush.rb', line 14

def tags_as_array
  @tags_as_array
end