struct OpenTelemetry::Proto::Metrics::V1::HistogramDataPoint

Included Modules

Defined in:

proto/metrics.pb.cr

Constant Summary

FIELDS = {9 => {name: :attributes, pb_type: OpenTelemetry::Proto::Common::V1::KeyValue, crystal_type: OpenTelemetry::Proto::Common::V1::KeyValue, cast_type: Array(OpenTelemetry::Proto::Common::V1::KeyValue)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 2 => {name: :start_time_unix_nano, pb_type: :fixed64, crystal_type: UInt64, cast_type: UInt64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :time_unix_nano, pb_type: :fixed64, crystal_type: UInt64, cast_type: UInt64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :count, pb_type: :fixed64, crystal_type: UInt64, cast_type: UInt64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :sum, pb_type: :double, crystal_type: Float64, cast_type: Float64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :bucket_counts, pb_type: :fixed64, crystal_type: UInt64, cast_type: Array(UInt64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 7 => {name: :explicit_bounds, pb_type: :double, crystal_type: Float64, cast_type: Array(Float64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 8 => {name: :exemplars, pb_type: Exemplar, crystal_type: Exemplar, cast_type: Array(Exemplar)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 10 => {name: :flags, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :min, pb_type: :double, crystal_type: Float64, cast_type: Float64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :max, pb_type: :double, crystal_type: Float64, cast_type: Float64?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(buf : Protobuf::Buffer) #

def self.new(attributes : Array(OpenTelemetry::Proto::Common::V1::KeyValue) | Nil = nil, start_time_unix_nano : UInt64 | Nil = nil, time_unix_nano : UInt64 | Nil = nil, count : UInt64 | Nil = nil, sum : Float64 | Nil = nil, bucket_counts : Array(UInt64) | Nil = nil, explicit_bounds : Array(Float64) | Nil = nil, exemplars : Array(Exemplar) | Nil = nil, flags : UInt32 | Nil = nil, min : Float64 | Nil = nil, max : Float64 | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def attributes : Array(OpenTelemetry::Proto::Common::V1::KeyValue) | Nil #

def attributes=(attributes : Array(OpenTelemetry::Proto::Common::V1::KeyValue) | Nil) #

def bucket_counts : Array(UInt64) | Nil #

def bucket_counts=(bucket_counts : Array(UInt64) | Nil) #

def count : UInt64 | Nil #

def count=(count : UInt64 | Nil) #

def exemplars : Array(Exemplar) | Nil #

def exemplars=(exemplars : Array(Exemplar) | Nil) #

def explicit_bounds : Array(Float64) | Nil #

def explicit_bounds=(explicit_bounds : Array(Float64) | Nil) #

def flags : UInt32 | Nil #

def flags=(flags : UInt32 | Nil) #

def max : Float64 | Nil #

def max=(max : Float64 | Nil) #

def min : Float64 | Nil #

def min=(min : Float64 | Nil) #

def start_time_unix_nano : UInt64 | Nil #

def start_time_unix_nano=(start_time_unix_nano : UInt64 | Nil) #

def sum : Float64 | Nil #

def sum=(sum : Float64 | Nil) #

def time_unix_nano : UInt64 | Nil #

def time_unix_nano=(time_unix_nano : UInt64 | Nil) #

def to_protobuf(io : IO, embedded = false) #

def to_protobuf #