@Immutable public abstract class MetricData extends Object
MetricData represents the data exported as part of aggregating one Instrument.| Modifier and Type | Class and Description |
|---|---|
static class |
MetricData.Descriptor
MetricData.Descriptor defines metadata about the MetricData type and its schema. |
static class |
MetricData.DoublePoint
DoublePoint is a single data point in a timeseries that describes the time-varying value of a
double metric.
|
static class |
MetricData.LongPoint
LongPoint is a single data point in a timeseries that describes the time-varying values of a
int64 metric.
|
static class |
MetricData.Point |
static class |
MetricData.SummaryPoint
SummaryPoint is a single data point that summarizes the values in a time series of numeric
values.
|
static class |
MetricData.ValueAtPercentile |
| Modifier and Type | Method and Description |
|---|---|
static MetricData |
create(MetricData.Descriptor descriptor,
io.opentelemetry.sdk.resources.Resource resource,
io.opentelemetry.sdk.common.InstrumentationLibraryInfo instrumentationLibraryInfo,
Collection<MetricData.Point> points) |
abstract MetricData.Descriptor |
getDescriptor()
Returns the
MetricData.Descriptor of this metric. |
abstract io.opentelemetry.sdk.common.InstrumentationLibraryInfo |
getInstrumentationLibraryInfo()
Returns the instrumentation library specified when creating the
Meter which created the
Instrument that produces MetricData. |
abstract Collection<MetricData.Point> |
getPoints()
Returns the data
MetricData.Points for this metric. |
abstract io.opentelemetry.sdk.resources.Resource |
getResource()
Returns the resource of this
MetricData. |
public abstract MetricData.Descriptor getDescriptor()
MetricData.Descriptor of this metric.Descriptor of this metric.public abstract io.opentelemetry.sdk.resources.Resource getResource()
MetricData.MetricData.public abstract io.opentelemetry.sdk.common.InstrumentationLibraryInfo getInstrumentationLibraryInfo()
Meter which created the
Instrument that produces MetricData.InstrumentationLibraryInfopublic abstract Collection<MetricData.Point> getPoints()
MetricData.Points for this metric.
Only one type of points are available at any moment for a MetricData, and the type
is determined by the MetricData.Descriptor.Type.
MetricData.Points for this metric, or empty Collection if no points.public static MetricData create(MetricData.Descriptor descriptor, io.opentelemetry.sdk.resources.Resource resource, io.opentelemetry.sdk.common.InstrumentationLibraryInfo instrumentationLibraryInfo, Collection<MetricData.Point> points)