Class StatsTestUtils.MetricsRecord
java.lang.Object
io.grpc.internal.testing.StatsTestUtils.MetricsRecord
- Enclosing class:
StatsTestUtils
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateMetricsRecord(com.google.common.collect.ImmutableMap<io.opencensus.tags.TagKey, io.opencensus.tags.TagValue> tags, com.google.common.collect.ImmutableMap<io.opencensus.stats.Measure, Number> metrics) -
Method Summary
Modifier and TypeMethodDescriptiongetMetric(io.opencensus.stats.Measure measure) Returns the value of a metric, ornullif not found.longgetMetricAsLongOrFail(io.opencensus.stats.Measure measure) Returns the value of a metric converted to long, or throw if not found.toString()
-
Field Details
-
tags
public final com.google.common.collect.ImmutableMap<io.opencensus.tags.TagKey, io.opencensus.tags.TagValue> tags -
metrics
-
-
Constructor Details
-
MetricsRecord
private MetricsRecord(com.google.common.collect.ImmutableMap<io.opencensus.tags.TagKey, io.opencensus.tags.TagValue> tags, com.google.common.collect.ImmutableMap<io.opencensus.stats.Measure, Number> metrics)
-
-
Method Details
-
getMetric
-
getMetricAsLongOrFail
public long getMetricAsLongOrFail(io.opencensus.stats.Measure measure) Returns the value of a metric converted to long, or throw if not found. -
toString
-