Class: Temporalio::Runtime::MetricBuffer::Update

Inherits:
Object
  • Object
show all
Defined in:
lib/temporalio/runtime/metric_buffer.rb

Overview

Note:

WARNING: The constructor of this class should not be invoked by users and may change in incompatible ways in the future.

Metric buffer update.

Instance Attribute Summary collapse

Instance Attribute Details

#attributesHash{String => String, Integer, Float, Boolean}

Returns Attributes for this value as a frozen hash. For performance reasons this is sometimes the same hash if the attribute set is reused at a metric level.

Returns:

  • (Hash{String => String, Integer, Float, Boolean})

    Attributes for this value as a frozen hash. For performance reasons this is sometimes the same hash if the attribute set is reused at a metric level.



37
38
39
# File 'lib/temporalio/runtime/metric_buffer.rb', line 37

class Update # rubocop:disable Lint/EmptyClass
  # DEV NOTE: This class is instantiated inside Rust, be careful changing it.
end

#metricMetric

Returns Metric for this update. For performance reasons, this is created lazily on first use and is the same object each time an update on this metric exists.

Returns:

  • (Metric)

    Metric for this update. For performance reasons, this is created lazily on first use and is the same object each time an update on this metric exists.



37
38
39
# File 'lib/temporalio/runtime/metric_buffer.rb', line 37

class Update # rubocop:disable Lint/EmptyClass
  # DEV NOTE: This class is instantiated inside Rust, be careful changing it.
end

#valueInteger, Float

Returns Metric value for this update.

Returns:

  • (Integer, Float)

    Metric value for this update.



37
38
39
# File 'lib/temporalio/runtime/metric_buffer.rb', line 37

class Update # rubocop:disable Lint/EmptyClass
  # DEV NOTE: This class is instantiated inside Rust, be careful changing it.
end