Sha256: 27e1d530684702a9ac917ecb2f70213c0648bdf6f44d46a460e4e3e64208541d

Contents?: true

Size: 1.15 KB

Versions: 6

Compression:

Stored size: 1.15 KB

Contents

# frozen_string_literal: true

# Copyright The OpenTelemetry Authors
#
# SPDX-License-Identifier: Apache-2.0

module OpenTelemetry
  module SDK
    module Metrics
      module State
        # MetricData is a Struct containing {MetricStream} data for export.
        MetricData = Struct.new(:name,                      # String
                                :description,               # String
                                :unit,                      # String
                                :instrument_kind,           # Symbol
                                :resource,                  # OpenTelemetry::SDK::Resources::Resource
                                :instrumentation_scope,     # OpenTelemetry::SDK::InstrumentationScope
                                :data_points,               # Hash{Hash{String => String, Numeric, Boolean, Array<String, Numeric, Boolean>} => Numeric}
                                :aggregation_temporality,   # Symbol
                                :start_time_unix_nano,      # Integer nanoseconds since Epoch
                                :time_unix_nano)            # Integer nanoseconds since Epoch
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
opentelemetry-metrics-sdk-0.5.0 lib/opentelemetry/sdk/metrics/state/metric_data.rb
opentelemetry-metrics-sdk-0.4.1 lib/opentelemetry/sdk/metrics/state/metric_data.rb
opentelemetry-metrics-sdk-0.4.0 lib/opentelemetry/sdk/metrics/state/metric_data.rb
opentelemetry-metrics-sdk-0.3.0 lib/opentelemetry/sdk/metrics/state/metric_data.rb
opentelemetry-metrics-sdk-0.2.0 lib/opentelemetry/sdk/metrics/state/metric_data.rb
opentelemetry-metrics-sdk-0.1.0 lib/opentelemetry/sdk/metrics/state/metric_data.rb