Class: Temporalio::Runtime::MetricBuffer::Metric

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

Overview

Metric definition present on an update.

Instance Attribute Summary collapse

Instance Attribute Details

#description ⇒ String?

Returns Description of the metric if any.

Returns:

  • (String, nil) —

    Description of the metric if any.



53
54
55
# File 'lib/temporalio/runtime/metric_buffer.rb', line 53

def description
  @description
end

#kind ⇒ :counter, ...

Returns Kind of the metric.

Returns:

  • (:counter, :histogram, :gauge) —

    Kind of the metric.



53
54
55
# File 'lib/temporalio/runtime/metric_buffer.rb', line 53

def kind
  @kind
end

#name ⇒ String

Returns Name of the metric.

Returns:

  • (String) —

    Name of the metric.



53
54
55
# File 'lib/temporalio/runtime/metric_buffer.rb', line 53

def name
  @name
end

#unit ⇒ String?

Returns Unit of the metric if any.

Returns:

  • (String, nil) —

    Unit of the metric if any.



53
54
55
# File 'lib/temporalio/runtime/metric_buffer.rb', line 53

def unit
  @unit
end