Module: Maze::Api::Model::OtelAttributeType
- Defined in:
- lib/maze/api/model/otel_attribute_type.rb
Overview
OTEL attribute types.
Constant Summary collapse
- ARRAY =
0- BOOL =
1- DOUBLE =
2- INT =
3- STRING =
4
Class Method Summary collapse
-
.for_string(type_string) ⇒ Integer?
Get the OTEL attribute type constant for a given string.
Class Method Details
.for_string(type_string) ⇒ Integer?
Get the OTEL attribute type constant for a given string.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/maze/api/model/otel_attribute_type.rb', line 17 def self.for_string(type_string) case type_string when 'arrayValue' ARRAY when 'boolValue' BOOL when 'doubleValue' DOUBLE when 'intValue' INT when 'stringValue' STRING else nil end end |