Class: Metriks::Registry

Inherits:
Object
  • Object
show all
Defined in:
lib/metriks-derive.rb

Instance Method Summary collapse

Instance Method Details

#derive(name) ⇒ Object

Public: Fetch or create a new derivative metric. Derivatives are a meter that tracks throughput by calculating the derivative to the previous value.

name - The String name of the metric to define or fetch

Examples

registry.derive('network.bytes')

Returns the Metricks::Derive identified by the name.



24
25
26
# File 'lib/metriks-derive.rb', line 24

def derive(name)
  add_or_get(name, Metriks::Derive)
end