Exception: PrometheusReporter::UnknownMetricType
- Defined in:
- lib/prometheus_reporter/errors.rb
Instance Method Summary collapse
-
#initialize(key_type) ⇒ UnknownMetricType
constructor
A new instance of UnknownMetricType.
- #message ⇒ Object
Constructor Details
#initialize(key_type) ⇒ UnknownMetricType
Returns a new instance of UnknownMetricType.
27 28 29 |
# File 'lib/prometheus_reporter/errors.rb', line 27 def initialize(key_type) @type = key_type end |
Instance Method Details
#message ⇒ Object
31 32 33 34 |
# File 'lib/prometheus_reporter/errors.rb', line 31 def "Unknown key type: #{@type}. "\ "Valid ones: #{TextFormatter::TYPES.join(', ')}" end |