Class: Prometheus::Client::Histogram

Inherits:
Metric
  • Object
show all
Defined in:
lib/prometheus/client/histogram.rb,
lib/prometheus/client/histogram/bucket.rb

Defined Under Namespace

Classes: Bucket

Instance Method Summary collapse

Methods inherited from Metric

#default, #get, #initialize, #set, #to_json, #value

Constructor Details

This class inherits a constructor from Prometheus::Client::Metric

Instance Method Details

#add(labels, timing) ⇒ Object

Raises:

  • (NotImplementedError)


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

def add(labels, timing)
  raise NotImplementedError
end

#measure(labels, &block) ⇒ Object

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/prometheus/client/histogram.rb', line 14

def measure(labels, &block)
  raise NotImplementedError
end

#typeObject



6
7
8
# File 'lib/prometheus/client/histogram.rb', line 6

def type
  :histogram
end