Sha256: bf1042098467aa9119360246fffdbe456c960de970b1db0b258e1c19509c4ca8

Contents?: true

Size: 874 Bytes

Versions: 19

Compression:

Stored size: 874 Bytes

Contents

# frozen_string_literal: true

require_relative '../../utils/hash'

module Datadog
  module Core
    module Telemetry
      module V1
        # Describes attributes for products object
        class Product
          using Core::Utils::Hash::Refinement

          attr_reader \
            :appsec,
            :profiler

          # @param appsec [Telemetry::V1::AppSec] Holds custom information about the appsec product
          # @param profiler [Telemetry::V1::Profiler] Holds custom information about the profiler product
          def initialize(appsec: nil, profiler: nil)
            @appsec = appsec
            @profiler = profiler
          end

          def to_h
            hash = {
              appsec: @appsec,
              profiler: @profiler
            }
            hash.compact!
            hash
          end
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
datadog-2.0.0.beta1 lib/datadog/core/telemetry/v1/product.rb
ddtrace-1.21.1 lib/datadog/core/telemetry/v1/product.rb
ddtrace-1.21.0 lib/datadog/core/telemetry/v1/product.rb
ddtrace-1.20.0 lib/datadog/core/telemetry/v1/product.rb
ddtrace-1.19.0 lib/datadog/core/telemetry/v1/product.rb
ddtrace-1.18.0 lib/datadog/core/telemetry/v1/product.rb
ddtrace-1.17.0 lib/datadog/core/telemetry/v1/product.rb
ddtrace-1.16.2 lib/datadog/core/telemetry/v1/product.rb
ddtrace-1.16.1 lib/datadog/core/telemetry/v1/product.rb
ddtrace-1.16.0 lib/datadog/core/telemetry/v1/product.rb
ddtrace-1.15.0 lib/datadog/core/telemetry/v1/product.rb
ddtrace-1.14.0 lib/datadog/core/telemetry/v1/product.rb
ddtrace-1.13.1 lib/datadog/core/telemetry/v1/product.rb
ddtrace-1.13.0 lib/datadog/core/telemetry/v1/product.rb
ddtrace-1.12.1 lib/datadog/core/telemetry/v1/product.rb
ddtrace-1.12.0 lib/datadog/core/telemetry/v1/product.rb
ddtrace-1.11.1 lib/datadog/core/telemetry/v1/product.rb
ddtrace-1.11.0 lib/datadog/core/telemetry/v1/product.rb
ddtrace-1.11.0.beta1 lib/datadog/core/telemetry/v1/product.rb