Exception: PrometheusReporter::MissingMetricValue

Inherits:
BaseError
  • Object
show all
Defined in:
lib/prometheus_reporter/errors.rb

Instance Method Summary collapse

Instance Method Details

#intialize(key) ⇒ Object



17
18
19
# File 'lib/prometheus_reporter/errors.rb', line 17

def intialize(key)
  @key = key
end

#messageObject



21
22
23
# File 'lib/prometheus_reporter/errors.rb', line 21

def message
  "Missing value for #{@key} metric"
end