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<?>dataprivate java.lang.Stringdescriptionprivate InstrumentationScopeInfoinstrumentationScopeInfoprivate java.lang.Stringnameprivate Resourceresourceprivate MetricDataTypetypeprivate java.lang.Stringunit
-
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 booleanequals(java.lang.Object o)Data<?>getData()Returns the unconstrained metric data.java.lang.StringgetDescription()Returns the metric description.InstrumentationScopeInfogetInstrumentationScopeInfo()Returns the metricInstrumentationScopeInfo.java.lang.StringgetName()Returns the metric name.ResourcegetResource()Returns the metricResource.MetricDataTypegetType()Returns the type of this metric.java.lang.StringgetUnit()Returns the metric unit.inthashCode()java.lang.StringtoString()-
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:MetricDataReturns the metricResource.The
Resourceis configured viaSdkMeterProviderBuilder.setResource(Resource).
-
getInstrumentationScopeInfo
public InstrumentationScopeInfo getInstrumentationScopeInfo()
Description copied from interface:MetricDataReturns the metricInstrumentationScopeInfo.The
InstrumentationScopeInfois determined from the options used whenMeterBuilder.build()ing theMeter.
-
getName
public java.lang.String getName()
Description copied from interface:MetricDataReturns 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:MetricDataReturns 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:MetricDataReturns the metric unit.
-
getType
public MetricDataType getType()
Description copied from interface:MetricDataReturns the type of this metric.
-
getData
public Data<?> getData()
Description copied from interface:MetricDataReturns 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:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-