Sha256: d2bbbd7811fa5ec276cc41c9de7ec3f23ce450cf68baa83e25a71705d66aad26

Contents?: true

Size: 1.68 KB

Versions: 2

Compression:

Stored size: 1.68 KB

Contents

# frozen_string_literal: true

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

module OpenTelemetry
  module SDK
    module Metrics
      module Aggregation
        # TODO: Deal with this later
        # rubocop:disable Lint/StructNewOverride
        HistogramDataPoint = Struct.new(:attributes,            # optional Hash{String => String, Numeric, Boolean, Array<String, Numeric, Boolean>}
                                        :start_time_unix_nano,  # Integer nanoseconds since Epoch
                                        :time_unix_nano,        # Integer nanoseconds since Epoch
                                        :count,                 # Integer count is the number of values in the population. Must be non-negative.
                                        :sum,                   # Float sum of the values in the population. If count is zero then this field must be zero.
                                        :bucket_counts,         # optional Array[Integer] field contains the count values of histogram for each bucket.
                                        :explicit_bounds,       # Array[Float] specifies buckets with explicitly defined bounds for values.
                                        :exemplars,             # optional List of exemplars collected from measurements that were used to form the data point
                                        :min,                   # optional Float min is the minimum value over (start_time, end_time].
                                        :max)                   # optional Float max is the maximum value over (start_time, end_time].
        # rubocop:enable Lint/StructNewOverride
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
opentelemetry-metrics-sdk-0.5.0 lib/opentelemetry/sdk/metrics/aggregation/histogram_data_point.rb
opentelemetry-metrics-sdk-0.4.1 lib/opentelemetry/sdk/metrics/aggregation/histogram_data_point.rb