struct OpenTelemetry::Proto::Metrics::V1::Metric
- OpenTelemetry::Proto::Metrics::V1::Metric
- Struct
- Value
- Object
Included Modules
- Protobuf::Message
Defined in:
proto/metrics.pb.crConstant 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
- .new(buf : Protobuf::Buffer)
- .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 Summary
Instance Method Summary
- #[](key : String)
- #description : String | Nil
- #description=(description : String | Nil)
- #exponential_histogram : ExponentialHistogram | Nil
- #exponential_histogram=(exponential_histogram : ExponentialHistogram | Nil)
- #gauge : Gauge | Nil
- #gauge=(gauge : Gauge | Nil)
- #histogram : Histogram | Nil
- #histogram=(histogram : Histogram | Nil)
- #name : String | Nil
- #name=(name : String | Nil)
- #sum : Sum | Nil
- #sum=(sum : Sum | Nil)
- #summary : Summary | Nil
- #summary=(summary : Summary | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #unit : String | Nil
- #unit=(unit : String | Nil)
Constructor Detail
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)
#