Class: Temporalio::Runtime::MetricBuffer::Update
- Inherits:
-
Object
- Object
- Temporalio::Runtime::MetricBuffer::Update
- 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
-
#attributes ⇒ Hash{String => String, Integer, Float, Boolean}
Attributes for this value as a frozen hash.
-
#metric ⇒ Metric
Metric for this update.
-
#value ⇒ Integer, Float
Metric value for this update.
Instance Attribute Details
#attributes ⇒ Hash{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.
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 |
#metric ⇒ Metric
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.
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 |
#value ⇒ Integer, Float
Returns 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 |