Sha256: 4de8b5d139c01ce167f29c920a08df13b3d1208f781b769d228272868dd42771

Contents?: true

Size: 1.08 KB

Versions: 5

Compression:

Stored size: 1.08 KB

Contents

# frozen_string_literal: true

require "json"

module Datadog
  module Profiling
    # Entity class used to represent metadata for a given profile
    class Flush
      attr_reader \
        :start,
        :finish,
        :pprof_file_name,
        :pprof_data, # gzipped pprof bytes
        :code_provenance_file_name,
        :code_provenance_data, # gzipped json bytes
        :tags_as_array,
        :internal_metadata_json,
        :info_json

      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(internal_metadata)
        @info_json = info_json
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
datadog-2.7.0 lib/datadog/profiling/flush.rb
datadog-2.6.0 lib/datadog/profiling/flush.rb
datadog-2.5.0 lib/datadog/profiling/flush.rb
datadog-2.4.0 lib/datadog/profiling/flush.rb
datadog-2.3.0 lib/datadog/profiling/flush.rb