@Immutable public abstract static class MetricData.Descriptor extends Object
MetricData.Descriptor
defines metadata about the MetricData
type and its schema.Modifier and Type | Class and Description |
---|---|
static class |
MetricData.Descriptor.Type
The kind of metric.
|
Modifier and Type | Method and Description |
---|---|
static MetricData.Descriptor |
create(String name,
String description,
String unit,
MetricData.Descriptor.Type type,
io.opentelemetry.common.Labels constantLabels) |
abstract io.opentelemetry.common.Labels |
getConstantLabels()
Returns the constant labels associated with this metric descriptor.
|
abstract String |
getDescription()
Returns the description of this metric descriptor.
|
abstract String |
getName()
Returns the metric descriptor name.
|
abstract MetricData.Descriptor.Type |
getType()
Returns the type of this metric descriptor.
|
abstract String |
getUnit()
Returns the unit of this metric descriptor.
|
public abstract String getName()
public abstract String getDescription()
public abstract String getUnit()
public abstract MetricData.Descriptor.Type getType()
public abstract io.opentelemetry.common.Labels getConstantLabels()
public static MetricData.Descriptor create(String name, String description, String unit, MetricData.Descriptor.Type type, io.opentelemetry.common.Labels constantLabels)