struct Openmetrics::Metric

Included Modules

Defined in:

proto/openmetrics_data_model.pb.cr

Constant Summary

FIELDS = {1 => {name: :labels, pb_type: Label, crystal_type: Label, cast_type: Array(Label)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 2 => {name: :metric_points, pb_type: MetricPoint, crystal_type: MetricPoint, cast_type: Array(MetricPoint)?, native: false, optional: true, repeated: true, 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(labels : Array(Label) | Nil = nil, metric_points : Array(MetricPoint) | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def labels : Array(Label) | Nil #

def labels=(labels : Array(Label) | Nil) #

def metric_points : Array(MetricPoint) | Nil #

def metric_points=(metric_points : Array(MetricPoint) | Nil) #

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

def to_protobuf #