Modifier | Constructor and Description |
---|---|
protected |
DefaultMetadata(String name,
String displayName,
String description,
MetricType type,
String unit,
boolean reusable) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Optional<String> |
getDescription()
Returns the description of the metric.
|
String |
getDisplayName()
Returns the display name if set, otherwise this method returns the metric name.
|
String |
getName()
Returns the metric name.
|
String |
getType()
Returns the String representation of the
MetricType . |
MetricType |
getTypeRaw()
Returns the
MetricType of the metric |
Optional<String> |
getUnit() |
int |
hashCode() |
boolean |
isReusable() |
String |
toString() |
protected DefaultMetadata(String name, String displayName, String description, MetricType type, String unit, boolean reusable)
public String getName()
Metadata
public String getDisplayName()
Metadata
getDisplayName
in interface Metadata
public Optional<String> getDescription()
Metadata
getDescription
in interface Metadata
public String getType()
Metadata
MetricType
.getType
in interface Metadata
MetricType
public MetricType getTypeRaw()
Metadata
MetricType
of the metricgetTypeRaw
in interface Metadata
MetricType
public boolean isReusable()
isReusable
in interface Metadata
Copyright © 2022. All rights reserved.