Class: Datadog::Core::Telemetry::V1::Product

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog/core/telemetry/v1/product.rb

Overview

Describes attributes for products object

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(appsec: nil, profiler: nil) ⇒ Product

Returns a new instance of Product.

Parameters:

  • appsec (Telemetry::V1::AppSec) (defaults to: nil)

    Holds custom information about the appsec product

  • profiler (Telemetry::V1::Profiler) (defaults to: nil)

    Holds custom information about the profiler product



19
20
21
22
# File 'lib/datadog/core/telemetry/v1/product.rb', line 19

def initialize(appsec: nil, profiler: nil)
  @appsec = appsec
  @profiler = profiler
end

Instance Attribute Details

#appsecObject (readonly)

Returns the value of attribute appsec.



13
14
15
# File 'lib/datadog/core/telemetry/v1/product.rb', line 13

def appsec
  @appsec
end

#profilerObject (readonly)

Returns the value of attribute profiler.



13
14
15
# File 'lib/datadog/core/telemetry/v1/product.rb', line 13

def profiler
  @profiler
end

Instance Method Details

#to_hObject



24
25
26
27
28
29
30
31
# File 'lib/datadog/core/telemetry/v1/product.rb', line 24

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