java.lang.Object
java.lang.Enum<TelemetryMetricDefinition>
org.eclipse.microprofile.fault.tolerance.tck.telemetryMetrics.util.TelemetryMetricDefinition
All Implemented Interfaces:
Serializable, Comparable<TelemetryMetricDefinition>

public enum TelemetryMetricDefinition extends Enum<TelemetryMetricDefinition>
Enum containing a definition for each metric defined in the spec.

All tests should not use this enum directly, but should use TelemetryMetricGetter to access metric values. However, if we add new metrics to the spec, their definitions should be added here. Having a defined list of all metrics allows us to easily iterate through them for stuff like TelemetryMetricGetter.baselineMetrics().

Each metric definition has a name, a type and a set of tags.

Each fault tolerance metric is assumed to have a method tag, so the set of tags does not include a method tag.

Each tag in the set is represented by an enum which implements TelemetryMetricDefinition.AttributeValue. Each enum has one entry for each valid value for that tag.

For example, the metric ft.bulkhead.calls.total has one tag, bulkheadResult which can have the value accepted or rejected. The value for this is BULKHEAD_CALLS and calling BULKHEAD_CALLS.getArgumentClasses() returns TelemetryMetricDefinition.BulkheadResult, which is an enum with two entries, TelemetryMetricDefinition.BulkheadResult.ACCEPTED and TelemetryMetricDefinition.BulkheadResult.REJECTED.