Class: Datadog::Core::Metrics::Metric

Inherits:
Struct
  • Object
show all
Defined in:
lib/datadog/core/metrics/metric.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Metric

Returns a new instance of Metric.



7
8
9
10
# File 'lib/datadog/core/metrics/metric.rb', line 7

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



6
7
8
# File 'lib/datadog/core/metrics/metric.rb', line 6

def name
  @name
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



6
7
8
# File 'lib/datadog/core/metrics/metric.rb', line 6

def options
  @options
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



6
7
8
# File 'lib/datadog/core/metrics/metric.rb', line 6

def type
  @type
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



6
7
8
# File 'lib/datadog/core/metrics/metric.rb', line 6

def value
  @value
end