Class: Prometheus::Client::LabelSet
- Inherits:
-
Object
- Object
- Prometheus::Client::LabelSet
- Defined in:
- lib/prometheus/client/label_set.rb
Overview
LabelSet is a pseudo class used to ensure given labels are semantically correct.
Defined Under Namespace
Classes: InvalidLabelError, InvalidLabelSetError, LabelSetError, ReservedLabelError
Constant Summary collapse
- RESERVED_LABELS =
TODO: we might allow setting :instance in the future
[:name, :job, :instance]
- @@validated =
A list of validated label sets
{}
Class Method Summary collapse
Class Method Details
.new(labels) ⇒ Object
17 18 19 20 |
# File 'lib/prometheus/client/label_set.rb', line 17 def self.new(labels) validate(labels) labels end |