Class: PrometheusClientAddons::Prometheus::Client::FakeGauge
- Inherits:
-
Struct
- Object
- Struct
- PrometheusClientAddons::Prometheus::Client::FakeGauge
- Defined in:
- lib/prometheus_client_addons/prometheus/client/fake_gauge.rb
Instance Attribute Summary collapse
-
#base_labels ⇒ Object
Returns the value of attribute base_labels.
-
#docstring ⇒ Object
Returns the value of attribute docstring.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize ⇒ FakeGauge
constructor
A new instance of FakeGauge.
- #type ⇒ Object
Constructor Details
#initialize ⇒ FakeGauge
Returns a new instance of FakeGauge.
5 6 7 8 |
# File 'lib/prometheus_client_addons/prometheus/client/fake_gauge.rb', line 5 def initialize(*) self.base_labels ||= {} super end |
Instance Attribute Details
#base_labels ⇒ Object
Returns the value of attribute base_labels
4 5 6 |
# File 'lib/prometheus_client_addons/prometheus/client/fake_gauge.rb', line 4 def base_labels @base_labels end |
#docstring ⇒ Object
Returns the value of attribute docstring
4 5 6 |
# File 'lib/prometheus_client_addons/prometheus/client/fake_gauge.rb', line 4 def docstring @docstring end |
#name ⇒ Object
Returns the value of attribute name
4 5 6 |
# File 'lib/prometheus_client_addons/prometheus/client/fake_gauge.rb', line 4 def name @name end |
Instance Method Details
#type ⇒ Object
10 11 12 |
# File 'lib/prometheus_client_addons/prometheus/client/fake_gauge.rb', line 10 def type :gauge end |