@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,
Resource resource,
InstrumentationLibraryInfo instrumentationLibraryInfo,
Collection<MetricData.Point> points) |
abstract MetricData.Descriptor |
getDescriptor()
Returns the
MetricData.Descriptor of this metric. |
abstract 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.Point s for this metric. |
abstract Resource |
getResource()
Returns the resource of this
MetricData . |
public abstract MetricData.Descriptor getDescriptor()
MetricData.Descriptor
of this metric.Descriptor
of this metric.public abstract Resource getResource()
MetricData
.MetricData
.public abstract InstrumentationLibraryInfo getInstrumentationLibraryInfo()
Meter
which created the
Instrument
that produces MetricData
.InstrumentationLibraryInfo
public abstract Collection<MetricData.Point> getPoints()
MetricData.Point
s 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.Point
s for this metric, or empty Collection
if no points.public static MetricData create(MetricData.Descriptor descriptor, Resource resource, InstrumentationLibraryInfo instrumentationLibraryInfo, Collection<MetricData.Point> points)