struct Openmetrics::MetricPoint

Included Modules

Defined in:

proto/openmetrics_data_model.pb.cr

Constant Summary

FIELDS = {1 => {name: :unknown_value, pb_type: UnknownValue, crystal_type: UnknownValue, cast_type: UnknownValue?, native: false, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :gauge_value, pb_type: GaugeValue, crystal_type: GaugeValue, cast_type: GaugeValue?, native: false, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :counter_value, pb_type: CounterValue, crystal_type: CounterValue, cast_type: CounterValue?, native: false, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :histogram_value, pb_type: HistogramValue, crystal_type: HistogramValue, cast_type: HistogramValue?, native: false, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :state_set_value, pb_type: StateSetValue, crystal_type: StateSetValue, cast_type: StateSetValue?, native: false, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :info_value, pb_type: InfoValue, crystal_type: InfoValue, cast_type: InfoValue?, native: false, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :summary_value, pb_type: SummaryValue, crystal_type: SummaryValue, cast_type: SummaryValue?, native: false, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :timestamp, 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}} of Int32 => HashLiteral(Symbol, ASTNode)

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

def self.new(unknown_value : UnknownValue | Nil = nil, gauge_value : GaugeValue | Nil = nil, counter_value : CounterValue | Nil = nil, histogram_value : HistogramValue | Nil = nil, state_set_value : StateSetValue | Nil = nil, info_value : InfoValue | Nil = nil, summary_value : SummaryValue | Nil = nil, timestamp : Google::Protobuf::Timestamp | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def counter_value : CounterValue | Nil #

def counter_value=(counter_value : CounterValue | Nil) #

def gauge_value : GaugeValue | Nil #

def gauge_value=(gauge_value : GaugeValue | Nil) #

def histogram_value : HistogramValue | Nil #

def histogram_value=(histogram_value : HistogramValue | Nil) #

def info_value : InfoValue | Nil #

def info_value=(info_value : InfoValue | Nil) #

def state_set_value : StateSetValue | Nil #

def state_set_value=(state_set_value : StateSetValue | Nil) #

def summary_value : SummaryValue | Nil #

def summary_value=(summary_value : SummaryValue | Nil) #

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

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

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

def to_protobuf #

def unknown_value : UnknownValue | Nil #

def unknown_value=(unknown_value : UnknownValue | Nil) #