struct Openmetrics::CounterValue

Included Modules

Defined in:

proto/openmetrics_data_model.pb.cr

Constant Summary

FIELDS = {1 => {name: :double_value, pb_type: :double, crystal_type: Float64, cast_type: Float64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :int_value, pb_type: :uint64, crystal_type: UInt64, cast_type: UInt64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :created, pb_type: Google::Protobuf::Timestamp, crystal_type: Google::Protobuf::Timestamp, cast_type: Google::Protobuf::Timestamp?, native: false, optional: true, repeated: false, default: nil, packed: false}, 4 => {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

Class Method Summary

Instance Method Summary

Constructor Detail

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

def self.new(double_value : Float64 | Nil = nil, int_value : UInt64 | Nil = nil, created : Google::Protobuf::Timestamp | Nil = nil, exemplar : Exemplar | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def created : Google::Protobuf::Timestamp | Nil #

def created=(created : Google::Protobuf::Timestamp | Nil) #

def double_value : Float64 | Nil #

def double_value=(double_value : Float64 | Nil) #

def exemplar : Exemplar | Nil #

def exemplar=(exemplar : Exemplar | Nil) #

def int_value : UInt64 | Nil #

def int_value=(int_value : UInt64 | Nil) #

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

def to_protobuf #