Class: Labkit::Metrics::Null
- Inherits:
-
Object
- Object
- Labkit::Metrics::Null
- 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
-
#base_labels ⇒ Object
readonly
Returns the value of attribute base_labels.
-
#docstring ⇒ Object
readonly
Returns the value of attribute docstring.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #decrement(*args) ⇒ Object
- #get(*args) ⇒ Object
- #increment(*args) ⇒ Object
- #observe(*args) ⇒ Object
- #set(*args) ⇒ Object
- #values(*args) ⇒ Object
Instance Attribute Details
#base_labels ⇒ Object (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 |
#docstring ⇒ Object (readonly)
Returns the value of attribute docstring.
10 11 12 |
# File 'lib/labkit/metrics/null.rb', line 10 def docstring @docstring end |
#name ⇒ Object (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 |