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.



119
120
121
122
# File 'lib/ddtrace/metrics.rb', line 119

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



118
119
120
# File 'lib/ddtrace/metrics.rb', line 118

def name
  @name
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



118
119
120
# File 'lib/ddtrace/metrics.rb', line 118

def options
  @options
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



118
119
120
# File 'lib/ddtrace/metrics.rb', line 118

def type
  @type
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



118
119
120
# File 'lib/ddtrace/metrics.rb', line 118

def value
  @value
end