struct Openmetrics::HistogramValue::Bucket
- Openmetrics::HistogramValue::Bucket
- Struct
- Value
- Object
Included Modules
- Protobuf::Message
Defined in:
proto/openmetrics_data_model.pb.crConstant Summary
-
FIELDS =
{1 => {name: :count, pb_type: :uint64, crystal_type: UInt64, cast_type: UInt64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :upper_bound, pb_type: :double, crystal_type: Float64, cast_type: Float64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :exemplar, pb_type: Exemplar, crystal_type: Exemplar, cast_type: Exemplar?, native: false, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Constructors
- .new(buf : Protobuf::Buffer)
- .new(count : UInt64 | Nil = nil, upper_bound : Float64 | Nil = nil, exemplar : Exemplar | Nil = nil)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #count : UInt64 | Nil
- #count=(count : UInt64 | Nil)
- #exemplar : Exemplar | Nil
- #exemplar=(exemplar : Exemplar | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #upper_bound : Float64 | Nil
- #upper_bound=(upper_bound : Float64 | Nil)
Constructor Detail
def self.new(count : UInt64 | Nil = nil, upper_bound : Float64 | Nil = nil, exemplar : Exemplar | Nil = nil)
#