Class: Temporalio::Internal::Metric::NullMeter
- Inherits:
-
Metric::Meter
- Object
- Metric::Meter
- Temporalio::Internal::Metric::NullMeter
- Includes:
- Singleton
- Defined in:
- lib/temporalio/internal/metric.rb
Instance Method Summary collapse
- #create_metric(metric_type, name, description: nil, unit: nil, value_type: :integer) ⇒ Object
-
#initialize ⇒ NullMeter
constructor
rubocop:disable Style/RedundantInitialize,Lint/MissingSuper.
- #with_additional_attributes(_additional_attributes) ⇒ Object
Methods inherited from Metric::Meter
Constructor Details
#initialize ⇒ NullMeter
rubocop:disable Style/RedundantInitialize,Lint/MissingSuper
79 80 |
# File 'lib/temporalio/internal/metric.rb', line 79 def initialize # rubocop:disable Style/RedundantInitialize,Lint/MissingSuper end |
Instance Method Details
#create_metric(metric_type, name, description: nil, unit: nil, value_type: :integer) ⇒ Object
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/temporalio/internal/metric.rb', line 82 def create_metric( metric_type, name, description: nil, unit: nil, value_type: :integer ) NullMetric.new( metric_type:, name:, description:, unit:, value_type: ) end |
#with_additional_attributes(_additional_attributes) ⇒ Object
98 99 100 |
# File 'lib/temporalio/internal/metric.rb', line 98 def with_additional_attributes(_additional_attributes) self end |