Class AutoValue_ImmutableMetricData
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.internal.data.ImmutableMetricData
-
- io.opentelemetry.sdk.metrics.internal.data.AutoValue_ImmutableMetricData
-
- All Implemented Interfaces:
MetricData
@Generated("com.google.auto.value.processor.AutoValueProcessor") final class AutoValue_ImmutableMetricData extends ImmutableMetricData
-
-
Field Summary
Fields Modifier and Type Field Description private Data<?>
data
private java.lang.String
description
private InstrumentationScopeInfo
instrumentationScopeInfo
private java.lang.String
name
private Resource
resource
private MetricDataType
type
private java.lang.String
unit
-
Constructor Summary
Constructors Constructor Description AutoValue_ImmutableMetricData(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, java.lang.String name, java.lang.String description, java.lang.String unit, MetricDataType type, Data<?> data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Data<?>
getData()
Returns the unconstrained metric data.java.lang.String
getDescription()
Returns the metric description.InstrumentationScopeInfo
getInstrumentationScopeInfo()
Returns the metricInstrumentationScopeInfo
.java.lang.String
getName()
Returns the metric name.Resource
getResource()
Returns the metricResource
.MetricDataType
getType()
Returns the type of this metric.java.lang.String
getUnit()
Returns the metric unit.int
hashCode()
java.lang.String
toString()
-
Methods inherited from class io.opentelemetry.sdk.metrics.internal.data.ImmutableMetricData
create, createDoubleGauge, createDoubleHistogram, createDoubleSum, createDoubleSummary, createExponentialHistogram, createLongGauge, createLongSum
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.opentelemetry.sdk.metrics.data.MetricData
getDoubleGaugeData, getDoubleSumData, getExponentialHistogramData, getHistogramData, getLongGaugeData, getLongSumData, getSummaryData, isEmpty
-
-
-
-
Field Detail
-
resource
private final Resource resource
-
instrumentationScopeInfo
private final InstrumentationScopeInfo instrumentationScopeInfo
-
name
private final java.lang.String name
-
description
private final java.lang.String description
-
unit
private final java.lang.String unit
-
type
private final MetricDataType type
-
data
private final Data<?> data
-
-
Constructor Detail
-
AutoValue_ImmutableMetricData
AutoValue_ImmutableMetricData(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, java.lang.String name, java.lang.String description, java.lang.String unit, MetricDataType type, Data<?> data)
-
-
Method Detail
-
getResource
public Resource getResource()
Description copied from interface:MetricData
Returns the metricResource
.The
Resource
is configured viaSdkMeterProviderBuilder.setResource(Resource)
.
-
getInstrumentationScopeInfo
public InstrumentationScopeInfo getInstrumentationScopeInfo()
Description copied from interface:MetricData
Returns the metricInstrumentationScopeInfo
.The
InstrumentationScopeInfo
is determined from the options used whenMeterBuilder.build()
ing theMeter
.
-
getName
public java.lang.String getName()
Description copied from interface:MetricData
Returns the metric name.The metric name is typically the instrument name, but may be optionally overridden by a
View
.
-
getDescription
public java.lang.String getDescription()
Description copied from interface:MetricData
Returns the metric description.The metric name is typically the instrument description, but may be optionally overridden by a
View
.
-
getUnit
public java.lang.String getUnit()
Description copied from interface:MetricData
Returns the metric unit.
-
getType
public MetricDataType getType()
Description copied from interface:MetricData
Returns the type of this metric.
-
getData
public Data<?> getData()
Description copied from interface:MetricData
Returns the unconstrained metric data.Most will instead prefer to access the constrained metric data after first checking the
MetricData.getType()
:// if (metricData.getType() == MetricDataType.LONG_SUM) { // SumData<LongPointData> sumData = metricData.getLongSumData(); // ... // Process long sum data // }
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-