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

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

Overview

Metric definition present on an update.

Instance Attribute Summary collapse

Instance Attribute Details

#descriptionString?

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

class Metric # rubocop:disable Lint/EmptyClass
  # DEV NOTE: This class is instantiated inside Rust, be careful changing it.
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

class Metric # rubocop:disable Lint/EmptyClass
  # DEV NOTE: This class is instantiated inside Rust, be careful changing it.
end

#nameString

Returns Name of the metric.

Returns:

  • (String)

    Name of the metric.



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

class Metric # rubocop:disable Lint/EmptyClass
  # DEV NOTE: This class is instantiated inside Rust, be careful changing it.
end

#unitString?

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

class Metric # rubocop:disable Lint/EmptyClass
  # DEV NOTE: This class is instantiated inside Rust, be careful changing it.
end