Sha256: 9d0490462e46d4b3a8ca2b2dcb6a83fb9d66cf6e11dbdc32441dde69e3680550

Contents?: true

Size: 355 Bytes

Versions: 3

Compression:

Stored size: 355 Bytes

Contents

# frozen_string_literal: true

module ElasticAPM
  # @api private
  class Metricset
    def initialize(timestamp: Util.micros, labels: nil, **samples)
      @timestamp = timestamp
      @labels = labels
      @samples = samples
    end

    attr_accessor :timestamp
    attr_reader :samples, :labels

    def empty?
      samples.empty?
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
elastic-apm-3.1.0 lib/elastic_apm/metricset.rb
elastic-apm-3.0.0 lib/elastic_apm/metricset.rb
elastic-apm-2.12.0 lib/elastic_apm/metricset.rb