Closed th-developer closed 2 years ago
It seems a type StateSet models both, a set of exclusive states and a set of flags each representing a individual state property?
Yes.
Instead it is a property of a source of type enumeration which a developer wants to map on an OpenMetrics StateSet
Yes.
thanx!!
The description of OpenMetrics seems to be a bit unclear. Regarding the description of a StateSet in the Section 'Data Model' / 'Metric Types' the first sentence starts with introducing 2 new terms 'bitset' and 'ENUM' It seems a type StateSet models both, a set of exclusive states and a set of flags each representing a individual state property?
this is my conclusion because of the sample in section 'Wire Format'. The sample shows non-exclusive states:
back to section 'Data Model': As long as the the type does not make a distinction between exclusive and non-exclusive states the clause "if ... as ENUM" is not a property of the model. Instead it is a property of a source of type enumeration which a developer wants to map on an OpenMetrics StateSet....