Class: Temporalio::Internal::Metric::NullMetric
- Defined in:
- lib/temporalio/internal/metric.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#metric_type ⇒ Object
readonly
Returns the value of attribute metric_type.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#unit ⇒ Object
readonly
Returns the value of attribute unit.
-
#value_type ⇒ Object
readonly
Returns the value of attribute value_type.
Instance Method Summary collapse
-
#initialize(metric_type:, name:, description:, unit:, value_type:) ⇒ NullMetric
constructor
rubocop:disable Lint/MissingSuper.
- #record(value, additional_attributes: nil) ⇒ Object
- #with_additional_attributes(_additional_attributes) ⇒ Object
Constructor Details
#initialize(metric_type:, name:, description:, unit:, value_type:) ⇒ NullMetric
rubocop:disable Lint/MissingSuper
106 107 108 109 110 111 112 |
# File 'lib/temporalio/internal/metric.rb', line 106 def initialize(metric_type:, name:, description:, unit:, value_type:) # rubocop:disable Lint/MissingSuper @metric_type = metric_type @name = name @description = description @unit = unit @value_type = value_type end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
104 105 106 |
# File 'lib/temporalio/internal/metric.rb', line 104 def description @description end |
#metric_type ⇒ Object (readonly)
Returns the value of attribute metric_type.
104 105 106 |
# File 'lib/temporalio/internal/metric.rb', line 104 def metric_type @metric_type end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
104 105 106 |
# File 'lib/temporalio/internal/metric.rb', line 104 def name @name end |
#unit ⇒ Object (readonly)
Returns the value of attribute unit.
104 105 106 |
# File 'lib/temporalio/internal/metric.rb', line 104 def unit @unit end |
#value_type ⇒ Object (readonly)
Returns the value of attribute value_type.
104 105 106 |
# File 'lib/temporalio/internal/metric.rb', line 104 def value_type @value_type end |
Instance Method Details
#record(value, additional_attributes: nil) ⇒ Object
114 |
# File 'lib/temporalio/internal/metric.rb', line 114 def record(value, additional_attributes: nil); end |
#with_additional_attributes(_additional_attributes) ⇒ Object
116 117 118 |
# File 'lib/temporalio/internal/metric.rb', line 116 def with_additional_attributes(_additional_attributes) self end |