Class: Labkit::Metrics::Null

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/labkit/metrics/null.rb

Overview

Fakes Prometheus::Client::Metric and all derived metrics. Explicitly avoiding meta-programming to make interface more obvious to interact with.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#base_labelsObject (readonly)

Returns the value of attribute base_labels.



10
11
12
# File 'lib/labkit/metrics/null.rb', line 10

def base_labels
  @base_labels
end

#docstringObject (readonly)

Returns the value of attribute docstring.



10
11
12
# File 'lib/labkit/metrics/null.rb', line 10

def docstring
  @docstring
end

#nameObject (readonly)

Returns the value of attribute name.



10
11
12
# File 'lib/labkit/metrics/null.rb', line 10

def name
  @name
end

Instance Method Details

#decrement(*args) ⇒ Object



15
# File 'lib/labkit/metrics/null.rb', line 15

def decrement(*args); end

#get(*args) ⇒ Object



12
# File 'lib/labkit/metrics/null.rb', line 12

def get(*args); end

#increment(*args) ⇒ Object



14
# File 'lib/labkit/metrics/null.rb', line 14

def increment(*args); end

#observe(*args) ⇒ Object



16
# File 'lib/labkit/metrics/null.rb', line 16

def observe(*args); end

#set(*args) ⇒ Object



13
# File 'lib/labkit/metrics/null.rb', line 13

def set(*args); end

#values(*args) ⇒ Object



17
# File 'lib/labkit/metrics/null.rb', line 17

def values(*args); end