struct OpenTelemetry::Proto::Metrics::V1::Metric

Included Modules

Defined in:

proto/metrics.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: :description, pb_type: :string, crystal_type: String, cast_type: String?, native: true, 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}, 5 => {name: :gauge, pb_type: Gauge, crystal_type: Gauge, cast_type: Gauge?, native: false, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :sum, pb_type: Sum, crystal_type: Sum, cast_type: Sum?, native: false, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :histogram, pb_type: Histogram, crystal_type: Histogram, cast_type: Histogram?, native: false, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :exponential_histogram, pb_type: ExponentialHistogram, crystal_type: ExponentialHistogram, cast_type: ExponentialHistogram?, native: false, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :summary, pb_type: Summary, crystal_type: Summary, cast_type: Summary?, 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(name : String | Nil = nil, description : String | Nil = nil, unit : String | Nil = nil, gauge : Gauge | Nil = nil, sum : Sum | Nil = nil, histogram : Histogram | Nil = nil, exponential_histogram : ExponentialHistogram | Nil = nil, summary : Summary | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def description : String | Nil #

def description=(description : String | Nil) #

def exponential_histogram : ExponentialHistogram | Nil #

def exponential_histogram=(exponential_histogram : ExponentialHistogram | Nil) #

def gauge : Gauge | Nil #

def gauge=(gauge : Gauge | Nil) #

def histogram : Histogram | Nil #

def histogram=(histogram : Histogram | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def sum : Sum | Nil #

def sum=(sum : Sum | Nil) #

def summary : Summary | Nil #

def summary=(summary : Summary | Nil) #

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

def to_protobuf #

def unit : String | Nil #

def unit=(unit : String | Nil) #