Class: OpenTelemetry::SDK::Metrics::State::MetricData Private

Inherits:
Struct
  • Object
show all
Defined in:
lib/opentelemetry/sdk/metrics/state/metric_data.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

MetricData is a Struct containing MetricStream data for export.

Instance Attribute Summary collapse

Instance Attribute Details

#aggregation_temporalityObject

Returns the value of attribute aggregation_temporality

Returns:

  • (Object)

    the current value of aggregation_temporality



12
13
14
# File 'lib/opentelemetry/sdk/metrics/state/metric_data.rb', line 12

def aggregation_temporality
  @aggregation_temporality
end

#data_pointsObject

Returns the value of attribute data_points

Returns:

  • (Object)

    the current value of data_points



12
13
14
# File 'lib/opentelemetry/sdk/metrics/state/metric_data.rb', line 12

def data_points
  @data_points
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



12
13
14
# File 'lib/opentelemetry/sdk/metrics/state/metric_data.rb', line 12

def description
  @description
end

#instrument_kindObject

Returns the value of attribute instrument_kind

Returns:

  • (Object)

    the current value of instrument_kind



12
13
14
# File 'lib/opentelemetry/sdk/metrics/state/metric_data.rb', line 12

def instrument_kind
  @instrument_kind
end

#instrumentation_scopeObject

Returns the value of attribute instrumentation_scope

Returns:

  • (Object)

    the current value of instrumentation_scope



12
13
14
# File 'lib/opentelemetry/sdk/metrics/state/metric_data.rb', line 12

def instrumentation_scope
  @instrumentation_scope
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



12
13
14
# File 'lib/opentelemetry/sdk/metrics/state/metric_data.rb', line 12

def name
  @name
end

#resourceObject

Returns the value of attribute resource

Returns:

  • (Object)

    the current value of resource



12
13
14
# File 'lib/opentelemetry/sdk/metrics/state/metric_data.rb', line 12

def resource
  @resource
end

#start_time_unix_nanoObject

Returns the value of attribute start_time_unix_nano

Returns:

  • (Object)

    the current value of start_time_unix_nano



12
13
14
# File 'lib/opentelemetry/sdk/metrics/state/metric_data.rb', line 12

def start_time_unix_nano
  @start_time_unix_nano
end

#time_unix_nanoObject

Returns the value of attribute time_unix_nano

Returns:

  • (Object)

    the current value of time_unix_nano



12
13
14
# File 'lib/opentelemetry/sdk/metrics/state/metric_data.rb', line 12

def time_unix_nano
  @time_unix_nano
end

#unitObject

Returns the value of attribute unit

Returns:

  • (Object)

    the current value of unit



12
13
14
# File 'lib/opentelemetry/sdk/metrics/state/metric_data.rb', line 12

def unit
  @unit
end