Interface MetricOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Metric,Metric.Builder
public interface MetricOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionA description of the metric, which can be used in documentation.com.google.protobuf.ByteStringA description of the metric, which can be used in documentation..opentelemetry.proto.metrics.v1.ExponentialHistogram exponential_histogram = 10;.opentelemetry.proto.metrics.v1.ExponentialHistogram exponential_histogram = 10;getGauge().opentelemetry.proto.metrics.v1.Gauge gauge = 5;.opentelemetry.proto.metrics.v1.Gauge gauge = 5;.opentelemetry.proto.metrics.v1.Histogram histogram = 9;.opentelemetry.proto.metrics.v1.Histogram histogram = 9;getMetadata(int index) Additional metadata attributes that describe the metric.intAdditional metadata attributes that describe the metric.Additional metadata attributes that describe the metric.getMetadataOrBuilder(int index) Additional metadata attributes that describe the metric.List<? extends KeyValueOrBuilder>Additional metadata attributes that describe the metric.getName()The name of the metric.com.google.protobuf.ByteStringThe name of the metric.getSum().opentelemetry.proto.metrics.v1.Sum sum = 7;.opentelemetry.proto.metrics.v1.Summary summary = 11;.opentelemetry.proto.metrics.v1.Summary summary = 11;.opentelemetry.proto.metrics.v1.Sum sum = 7;getUnit()The unit in which the metric value is reported.com.google.protobuf.ByteStringThe unit in which the metric value is reported.boolean.opentelemetry.proto.metrics.v1.ExponentialHistogram exponential_histogram = 10;booleanhasGauge().opentelemetry.proto.metrics.v1.Gauge gauge = 5;boolean.opentelemetry.proto.metrics.v1.Histogram histogram = 9;booleanhasSum().opentelemetry.proto.metrics.v1.Sum sum = 7;boolean.opentelemetry.proto.metrics.v1.Summary summary = 11;Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()The name of the metric.
string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()The name of the metric.
string name = 1;- Returns:
- The bytes for name.
-
getDescription
String getDescription()A description of the metric, which can be used in documentation.
string description = 2;- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()A description of the metric, which can be used in documentation.
string description = 2;- Returns:
- The bytes for description.
-
getUnit
String getUnit()The unit in which the metric value is reported. Follows the format described by https://unitsofmeasure.org/ucum.html.
string unit = 3;- Returns:
- The unit.
-
getUnitBytes
com.google.protobuf.ByteString getUnitBytes()The unit in which the metric value is reported. Follows the format described by https://unitsofmeasure.org/ucum.html.
string unit = 3;- Returns:
- The bytes for unit.
-
hasGauge
boolean hasGauge().opentelemetry.proto.metrics.v1.Gauge gauge = 5;- Returns:
- Whether the gauge field is set.
-
getGauge
Gauge getGauge().opentelemetry.proto.metrics.v1.Gauge gauge = 5;- Returns:
- The gauge.
-
getGaugeOrBuilder
GaugeOrBuilder getGaugeOrBuilder().opentelemetry.proto.metrics.v1.Gauge gauge = 5; -
hasSum
boolean hasSum().opentelemetry.proto.metrics.v1.Sum sum = 7;- Returns:
- Whether the sum field is set.
-
getSum
Sum getSum().opentelemetry.proto.metrics.v1.Sum sum = 7;- Returns:
- The sum.
-
getSumOrBuilder
SumOrBuilder getSumOrBuilder().opentelemetry.proto.metrics.v1.Sum sum = 7; -
hasHistogram
boolean hasHistogram().opentelemetry.proto.metrics.v1.Histogram histogram = 9;- Returns:
- Whether the histogram field is set.
-
getHistogram
Histogram getHistogram().opentelemetry.proto.metrics.v1.Histogram histogram = 9;- Returns:
- The histogram.
-
getHistogramOrBuilder
HistogramOrBuilder getHistogramOrBuilder().opentelemetry.proto.metrics.v1.Histogram histogram = 9; -
hasExponentialHistogram
boolean hasExponentialHistogram().opentelemetry.proto.metrics.v1.ExponentialHistogram exponential_histogram = 10;- Returns:
- Whether the exponentialHistogram field is set.
-
getExponentialHistogram
ExponentialHistogram getExponentialHistogram().opentelemetry.proto.metrics.v1.ExponentialHistogram exponential_histogram = 10;- Returns:
- The exponentialHistogram.
-
getExponentialHistogramOrBuilder
ExponentialHistogramOrBuilder getExponentialHistogramOrBuilder().opentelemetry.proto.metrics.v1.ExponentialHistogram exponential_histogram = 10; -
hasSummary
boolean hasSummary().opentelemetry.proto.metrics.v1.Summary summary = 11;- Returns:
- Whether the summary field is set.
-
getSummary
Summary getSummary().opentelemetry.proto.metrics.v1.Summary summary = 11;- Returns:
- The summary.
-
getSummaryOrBuilder
SummaryOrBuilder getSummaryOrBuilder().opentelemetry.proto.metrics.v1.Summary summary = 11; -
getMetadataList
Additional metadata attributes that describe the metric. [Optional]. Attributes are non-identifying. Consumers SHOULD NOT need to be aware of these attributes. These attributes MAY be used to encode information allowing for lossless roundtrip translation to / from another data model. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue metadata = 12; -
getMetadata
Additional metadata attributes that describe the metric. [Optional]. Attributes are non-identifying. Consumers SHOULD NOT need to be aware of these attributes. These attributes MAY be used to encode information allowing for lossless roundtrip translation to / from another data model. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue metadata = 12; -
getMetadataCount
int getMetadataCount()Additional metadata attributes that describe the metric. [Optional]. Attributes are non-identifying. Consumers SHOULD NOT need to be aware of these attributes. These attributes MAY be used to encode information allowing for lossless roundtrip translation to / from another data model. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue metadata = 12; -
getMetadataOrBuilderList
List<? extends KeyValueOrBuilder> getMetadataOrBuilderList()Additional metadata attributes that describe the metric. [Optional]. Attributes are non-identifying. Consumers SHOULD NOT need to be aware of these attributes. These attributes MAY be used to encode information allowing for lossless roundtrip translation to / from another data model. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue metadata = 12; -
getMetadataOrBuilder
Additional metadata attributes that describe the metric. [Optional]. Attributes are non-identifying. Consumers SHOULD NOT need to be aware of these attributes. These attributes MAY be used to encode information allowing for lossless roundtrip translation to / from another data model. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue metadata = 12; -
getDataCase
Metric.DataCase getDataCase()
-