struct OpenTelemetry::Proto::Metrics::V1::ResourceMetrics

Included Modules

Defined in:

proto/metrics.pb.cr

Constant Summary

FIELDS = {1 => {name: :resource, pb_type: OpenTelemetry::Proto::Resource::V1::Resource, crystal_type: OpenTelemetry::Proto::Resource::V1::Resource, cast_type: OpenTelemetry::Proto::Resource::V1::Resource?, native: false, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :scope_metrics, pb_type: ScopeMetrics, crystal_type: ScopeMetrics, cast_type: Array(ScopeMetrics)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 1000 => {name: :instrumentation_library_metrics, pb_type: InstrumentationLibraryMetrics, crystal_type: InstrumentationLibraryMetrics, cast_type: Array(InstrumentationLibraryMetrics)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 3 => {name: :schema_url, pb_type: :string, crystal_type: String, cast_type: String?, 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(resource : OpenTelemetry::Proto::Resource::V1::Resource | Nil = nil, scope_metrics : Array(ScopeMetrics) | Nil = nil, instrumentation_library_metrics : Array(InstrumentationLibraryMetrics) | Nil = nil, schema_url : String | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def instrumentation_library_metrics : Array(InstrumentationLibraryMetrics) | Nil #

def instrumentation_library_metrics=(instrumentation_library_metrics : Array(InstrumentationLibraryMetrics) | Nil) #


def resource=(resource : OpenTelemetry::Proto::Resource::V1::Resource | Nil) #

def schema_url : String | Nil #

def schema_url=(schema_url : String | Nil) #

def scope_metrics : Array(ScopeMetrics) | Nil #

def scope_metrics=(scope_metrics : Array(ScopeMetrics) | Nil) #

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

def to_protobuf #