struct OpenTelemetry::Proto::Metrics::V1::Sum
- OpenTelemetry::Proto::Metrics::V1::Sum
- Struct
- Value
- Object
Included Modules
- Protobuf::Message
Defined in:
proto/metrics.pb.crConstant Summary
-
FIELDS =
{1 => {name: :data_points, pb_type: NumberDataPoint, crystal_type: NumberDataPoint, cast_type: Array(NumberDataPoint)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 2 => {name: :aggregation_temporality, pb_type: AggregationTemporality, crystal_type: AggregationTemporality, cast_type: AggregationTemporality?, native: false, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :is_monotonic, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Constructors
- .new(buf : Protobuf::Buffer)
- .new(data_points : Array(NumberDataPoint) | Nil = nil, aggregation_temporality : AggregationTemporality | Nil = nil, is_monotonic : Bool | Nil = nil)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #aggregation_temporality : AggregationTemporality | Nil
- #aggregation_temporality=(aggregation_temporality : AggregationTemporality | Nil)
- #data_points : Array(NumberDataPoint) | Nil
- #data_points=(data_points : Array(NumberDataPoint) | Nil)
- #is_monotonic : Bool | Nil
- #is_monotonic=(is_monotonic : Bool | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
Constructor Detail
def self.new(data_points : Array(NumberDataPoint) | Nil = nil, aggregation_temporality : AggregationTemporality | Nil = nil, is_monotonic : Bool | Nil = nil)
#