Class: Temporalio::Runtime::MetricBuffer::Update
- Inherits:
-
Data
- Object
- Data
- Temporalio::Runtime::MetricBuffer::Update
- Defined in:
- lib/temporalio/runtime/metric_buffer.rb,
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 def attributes @attributes 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 def metric @metric end |
#value ⇒ Integer, Float
Returns Metric value for this update.
37 38 39 |
# File 'lib/temporalio/runtime/metric_buffer.rb', line 37 def value @value end |