struct OpenTelemetry::Proto::Metrics::V1::Sum

Included Modules

Defined in:

proto/metrics.pb.cr

Constant 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

Class Method Summary

Instance Method Summary

Constructor Detail

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

def self.new(data_points : Array(NumberDataPoint) | Nil = nil, aggregation_temporality : AggregationTemporality | Nil = nil, is_monotonic : Bool | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def aggregation_temporality : AggregationTemporality | Nil #

def aggregation_temporality=(aggregation_temporality : AggregationTemporality | Nil) #

def data_points : Array(NumberDataPoint) | Nil #

def data_points=(data_points : Array(NumberDataPoint) | Nil) #

def is_monotonic : Bool | Nil #

def is_monotonic=(is_monotonic : Bool | Nil) #

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

def to_protobuf #