Class: PrometheusClientAddons::Prometheus::Client::FakeGauge

Inherits:
Struct
  • Object
show all
Defined in:
lib/prometheus_client_addons/prometheus/client/fake_gauge.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFakeGauge

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_labelsObject

Returns the value of attribute base_labels

Returns:

  • (Object)

    the current value of base_labels



4
5
6
# File 'lib/prometheus_client_addons/prometheus/client/fake_gauge.rb', line 4

def base_labels
  @base_labels
end

#docstringObject

Returns the value of attribute docstring

Returns:

  • (Object)

    the current value of docstring



4
5
6
# File 'lib/prometheus_client_addons/prometheus/client/fake_gauge.rb', line 4

def docstring
  @docstring
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



4
5
6
# File 'lib/prometheus_client_addons/prometheus/client/fake_gauge.rb', line 4

def name
  @name
end

Instance Method Details

#typeObject



10
11
12
# File 'lib/prometheus_client_addons/prometheus/client/fake_gauge.rb', line 10

def type
  :gauge
end