Package io.helidon.metrics
Class HelidonMetadata
- java.lang.Object
-
- org.eclipse.microprofile.metrics.DefaultMetadata
-
- io.helidon.metrics.HelidonMetadata
-
- All Implemented Interfaces:
Metadata
public class HelidonMetadata extends DefaultMetadata
Class HelidonMetadata. In MP Metrics 2.0,Metadata
is now immutable and a builder was added. This class allows creation of metadata directly using a constructor to avoid switching to a builder in dozens of locations. Can be used from other packages unfortunately.
-
-
Constructor Summary
Constructors Constructor Description HelidonMetadata(String name, String displayName, String description, MetricType type, String unit)
Construct immutable metadata.HelidonMetadata(String name, String displayName, String description, MetricType type, String unit, boolean reusable)
Construct immutable metadata.HelidonMetadata(String name, MetricType type)
Construct immutable metadata.
-
Method Summary
-
Methods inherited from class org.eclipse.microprofile.metrics.DefaultMetadata
equals, getDescription, getDisplayName, getName, getType, getTypeRaw, getUnit, hashCode, isReusable, toString
-
-
-
-
Constructor Detail
-
HelidonMetadata
public HelidonMetadata(String name, MetricType type)
Construct immutable metadata.- Parameters:
name
- Metric name.type
- Metric type.
-
HelidonMetadata
public HelidonMetadata(String name, String displayName, String description, MetricType type, String unit, boolean reusable)
Construct immutable metadata.- Parameters:
name
- Metric name.displayName
- Metric display name.description
- Metric description.type
- Metric type.unit
- Metric unit.reusable
- Reusable flag.
-
HelidonMetadata
public HelidonMetadata(String name, String displayName, String description, MetricType type, String unit)
Construct immutable metadata.- Parameters:
name
- Metric name.displayName
- Metric display name.description
- Metric description.type
- Metric type.unit
- Metric unit.
-
-