Sha256: 6b399b99363ac4af21bffa787dfcdaa8a51d99be37ec46ddb448d9a34e217e75

Contents?: true

Size: 954 Bytes

Versions: 5

Compression:

Stored size: 954 Bytes

Contents

# frozen_string_literal: true

module Datadog
  module Core
    module Telemetry
      module V1
        # Describes attributes for install signature
        class InstallSignature
          using Core::Utils::Hash::Refinement

          attr_reader \
            :install_id,
            :install_type,
            :install_time

          # @param id [String,nil] Install ID
          # @param type [String,nil] Install type
          # @param type [String,nil] Install time
          def initialize(install_id:, install_type:, install_time:)
            @install_id = install_id
            @install_type = install_type
            @install_time = install_time
          end

          def to_h
            hash = {
              install_id: @install_id,
              install_type: @install_type,
              install_time: @install_time
            }
            hash.compact!
            hash
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
datadog-2.0.0.beta1 lib/datadog/core/telemetry/v1/install_signature.rb
ddtrace-1.21.1 lib/datadog/core/telemetry/v1/install_signature.rb
ddtrace-1.21.0 lib/datadog/core/telemetry/v1/install_signature.rb
ddtrace-1.20.0 lib/datadog/core/telemetry/v1/install_signature.rb
ddtrace-1.19.0 lib/datadog/core/telemetry/v1/install_signature.rb