struct Openmetrics::MetricPoint
- Openmetrics::MetricPoint
- Struct
- Value
- Object
Included Modules
- Protobuf::Message
Defined in:
proto/openmetrics_data_model.pb.crConstant 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
- .new(buf : Protobuf::Buffer)
- .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 Summary
Instance Method Summary
- #[](key : String)
- #counter_value : CounterValue | Nil
- #counter_value=(counter_value : CounterValue | Nil)
- #gauge_value : GaugeValue | Nil
- #gauge_value=(gauge_value : GaugeValue | Nil)
- #histogram_value : HistogramValue | Nil
- #histogram_value=(histogram_value : HistogramValue | Nil)
- #info_value : InfoValue | Nil
- #info_value=(info_value : InfoValue | Nil)
- #state_set_value : StateSetValue | Nil
- #state_set_value=(state_set_value : StateSetValue | Nil)
- #summary_value : SummaryValue | Nil
- #summary_value=(summary_value : SummaryValue | Nil)
- #timestamp : Google::Protobuf::Timestamp | Nil
- #timestamp=(timestamp : Google::Protobuf::Timestamp | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #unknown_value : UnknownValue | Nil
- #unknown_value=(unknown_value : UnknownValue | Nil)
Constructor Detail
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)
#