Class: Datadog::Metrics::Metric

Inherits:
Struct
  • Object
show all
Defined in:
lib/ddtrace/metrics.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Metric

Returns a new instance of Metric.



153
154
155
156
# File 'lib/ddtrace/metrics.rb', line 153

def initialize(*args)
  super
  self.options = options || {}
end

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



152
153
154
# File 'lib/ddtrace/metrics.rb', line 152

def name
  @name
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



152
153
154
# File 'lib/ddtrace/metrics.rb', line 152

def options
  @options
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



152
153
154
# File 'lib/ddtrace/metrics.rb', line 152

def type
  @type
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



152
153
154
# File 'lib/ddtrace/metrics.rb', line 152

def value
  @value
end