Interface Metrics.MetricOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Metrics.Metric,Metrics.Metric.Builder
- Enclosing class:
- Metrics
public static interface Metrics.MetricOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionoptional .io.prometheus.client.Counter counter = 3;optional .io.prometheus.client.Counter counter = 3;getGauge()optional .io.prometheus.client.Gauge gauge = 2;optional .io.prometheus.client.Gauge gauge = 2;optional .io.prometheus.client.Histogram histogram = 7;optional .io.prometheus.client.Histogram histogram = 7;getLabel(int index) repeated .io.prometheus.client.LabelPair label = 1;intrepeated .io.prometheus.client.LabelPair label = 1;repeated .io.prometheus.client.LabelPair label = 1;getLabelOrBuilder(int index) repeated .io.prometheus.client.LabelPair label = 1;List<? extends Metrics.LabelPairOrBuilder>repeated .io.prometheus.client.LabelPair label = 1;optional .io.prometheus.client.Summary summary = 4;optional .io.prometheus.client.Summary summary = 4;longoptional int64 timestamp_ms = 6;optional .io.prometheus.client.Untyped untyped = 5;optional .io.prometheus.client.Untyped untyped = 5;booleanoptional .io.prometheus.client.Counter counter = 3;booleanhasGauge()optional .io.prometheus.client.Gauge gauge = 2;booleanoptional .io.prometheus.client.Histogram histogram = 7;booleanoptional .io.prometheus.client.Summary summary = 4;booleanoptional int64 timestamp_ms = 6;booleanoptional .io.prometheus.client.Untyped untyped = 5;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
-
getLabelList
List<Metrics.LabelPair> getLabelList()repeated .io.prometheus.client.LabelPair label = 1; -
getLabel
repeated .io.prometheus.client.LabelPair label = 1; -
getLabelCount
int getLabelCount()repeated .io.prometheus.client.LabelPair label = 1; -
getLabelOrBuilderList
List<? extends Metrics.LabelPairOrBuilder> getLabelOrBuilderList()repeated .io.prometheus.client.LabelPair label = 1; -
getLabelOrBuilder
repeated .io.prometheus.client.LabelPair label = 1; -
hasGauge
boolean hasGauge()optional .io.prometheus.client.Gauge gauge = 2;- Returns:
- Whether the gauge field is set.
-
getGauge
Metrics.Gauge getGauge()optional .io.prometheus.client.Gauge gauge = 2;- Returns:
- The gauge.
-
getGaugeOrBuilder
Metrics.GaugeOrBuilder getGaugeOrBuilder()optional .io.prometheus.client.Gauge gauge = 2; -
hasCounter
boolean hasCounter()optional .io.prometheus.client.Counter counter = 3;- Returns:
- Whether the counter field is set.
-
getCounter
Metrics.Counter getCounter()optional .io.prometheus.client.Counter counter = 3;- Returns:
- The counter.
-
getCounterOrBuilder
Metrics.CounterOrBuilder getCounterOrBuilder()optional .io.prometheus.client.Counter counter = 3; -
hasSummary
boolean hasSummary()optional .io.prometheus.client.Summary summary = 4;- Returns:
- Whether the summary field is set.
-
getSummary
Metrics.Summary getSummary()optional .io.prometheus.client.Summary summary = 4;- Returns:
- The summary.
-
getSummaryOrBuilder
Metrics.SummaryOrBuilder getSummaryOrBuilder()optional .io.prometheus.client.Summary summary = 4; -
hasUntyped
boolean hasUntyped()optional .io.prometheus.client.Untyped untyped = 5;- Returns:
- Whether the untyped field is set.
-
getUntyped
Metrics.Untyped getUntyped()optional .io.prometheus.client.Untyped untyped = 5;- Returns:
- The untyped.
-
getUntypedOrBuilder
Metrics.UntypedOrBuilder getUntypedOrBuilder()optional .io.prometheus.client.Untyped untyped = 5; -
hasHistogram
boolean hasHistogram()optional .io.prometheus.client.Histogram histogram = 7;- Returns:
- Whether the histogram field is set.
-
getHistogram
Metrics.Histogram getHistogram()optional .io.prometheus.client.Histogram histogram = 7;- Returns:
- The histogram.
-
getHistogramOrBuilder
Metrics.HistogramOrBuilder getHistogramOrBuilder()optional .io.prometheus.client.Histogram histogram = 7; -
hasTimestampMs
boolean hasTimestampMs()optional int64 timestamp_ms = 6;- Returns:
- Whether the timestampMs field is set.
-
getTimestampMs
long getTimestampMs()optional int64 timestamp_ms = 6;- Returns:
- The timestampMs.
-