Package io.opencensus.proto.metrics.v1
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MetricDescriptorgetMetricDescriptor()The descriptor of the Metric.MetricDescriptorOrBuildergetMetricDescriptorOrBuilder()The descriptor of the Metric.ResourcegetResource()The resource for the metric.ResourceOrBuildergetResourceOrBuilder()The resource for the metric.TimeSeriesgetTimeseries(int index)One or more timeseries for a single metric, where each timeseries has one or more points.intgetTimeseriesCount()One or more timeseries for a single metric, where each timeseries has one or more points.List<TimeSeries>getTimeseriesList()One or more timeseries for a single metric, where each timeseries has one or more points.TimeSeriesOrBuildergetTimeseriesOrBuilder(int index)One or more timeseries for a single metric, where each timeseries has one or more points.List<? extends TimeSeriesOrBuilder>getTimeseriesOrBuilderList()One or more timeseries for a single metric, where each timeseries has one or more points.booleanhasMetricDescriptor()The descriptor of the Metric.booleanhasResource()The resource for the metric.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasMetricDescriptor
boolean hasMetricDescriptor()
The descriptor of the Metric. TODO(issue #152): consider only sending the name of descriptor for optimization.
.opencensus.proto.metrics.v1.MetricDescriptor metric_descriptor = 1;- Returns:
- Whether the metricDescriptor field is set.
-
getMetricDescriptor
MetricDescriptor getMetricDescriptor()
The descriptor of the Metric. TODO(issue #152): consider only sending the name of descriptor for optimization.
.opencensus.proto.metrics.v1.MetricDescriptor metric_descriptor = 1;- Returns:
- The metricDescriptor.
-
getMetricDescriptorOrBuilder
MetricDescriptorOrBuilder getMetricDescriptorOrBuilder()
The descriptor of the Metric. TODO(issue #152): consider only sending the name of descriptor for optimization.
.opencensus.proto.metrics.v1.MetricDescriptor metric_descriptor = 1;
-
getTimeseriesList
List<TimeSeries> getTimeseriesList()
One or more timeseries for a single metric, where each timeseries has one or more points.
repeated .opencensus.proto.metrics.v1.TimeSeries timeseries = 2;
-
getTimeseries
TimeSeries getTimeseries(int index)
One or more timeseries for a single metric, where each timeseries has one or more points.
repeated .opencensus.proto.metrics.v1.TimeSeries timeseries = 2;
-
getTimeseriesCount
int getTimeseriesCount()
One or more timeseries for a single metric, where each timeseries has one or more points.
repeated .opencensus.proto.metrics.v1.TimeSeries timeseries = 2;
-
getTimeseriesOrBuilderList
List<? extends TimeSeriesOrBuilder> getTimeseriesOrBuilderList()
One or more timeseries for a single metric, where each timeseries has one or more points.
repeated .opencensus.proto.metrics.v1.TimeSeries timeseries = 2;
-
getTimeseriesOrBuilder
TimeSeriesOrBuilder getTimeseriesOrBuilder(int index)
One or more timeseries for a single metric, where each timeseries has one or more points.
repeated .opencensus.proto.metrics.v1.TimeSeries timeseries = 2;
-
hasResource
boolean hasResource()
The resource for the metric. If unset, it may be set to a default value provided for a sequence of messages in an RPC stream.
.opencensus.proto.resource.v1.Resource resource = 3;- Returns:
- Whether the resource field is set.
-
getResource
Resource getResource()
The resource for the metric. If unset, it may be set to a default value provided for a sequence of messages in an RPC stream.
.opencensus.proto.resource.v1.Resource resource = 3;- Returns:
- The resource.
-
getResourceOrBuilder
ResourceOrBuilder getResourceOrBuilder()
The resource for the metric. If unset, it may be set to a default value provided for a sequence of messages in an RPC stream.
.opencensus.proto.resource.v1.Resource resource = 3;
-
-