struct Openmetrics::MetricFamily

Included Modules

Defined in:

proto/openmetrics_data_model.pb.cr

Constant Summary

FIELDS = {1 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :type, pb_type: MetricType, crystal_type: MetricType, cast_type: MetricType?, native: false, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :unit, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :help, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :metrics, pb_type: Metric, crystal_type: Metric, cast_type: Array(Metric)?, 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(name : String | Nil = nil, type : MetricType | Nil = nil, unit : String | Nil = nil, help : String | Nil = nil, metrics : Array(Metric) | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def help : String | Nil #

def help=(help : String | Nil) #

def metrics : Array(Metric) | Nil #

def metrics=(metrics : Array(Metric) | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

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

def to_protobuf #

def type : MetricType | Nil #

def type=(type : MetricType | Nil) #

def unit : String | Nil #

def unit=(unit : String | Nil) #