Modifier | Constructor and Description |
---|---|
protected |
DefaultMetadata(String name,
String displayName,
String description,
MetricType type,
String unit) |
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() |
String |
toString() |
protected DefaultMetadata(String name, String displayName, String description, MetricType type, String unit)
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
Copyright © 2020. All rights reserved.