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.



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

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



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

def name
  @name
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



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

def options
  @options
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



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

def type
  @type
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



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

def value
  @value
end