public static class StatsTestUtils.MetricsRecord extends Object
| Modifier and Type | Field and Description |
|---|---|
com.google.instrumentation.stats.MeasurementMap |
metrics |
com.google.common.collect.ImmutableMap<com.google.instrumentation.stats.TagKey,com.google.instrumentation.stats.TagValue> |
tags |
| Modifier and Type | Method and Description |
|---|---|
Double |
getMetric(com.google.instrumentation.stats.MeasurementDescriptor metricName)
Returns the value of a metric, or
null if not found. |
long |
getMetricAsLongOrFail(com.google.instrumentation.stats.MeasurementDescriptor metricName)
Returns the value of a metric converted to long, or throw if not found.
|
public final com.google.common.collect.ImmutableMap<com.google.instrumentation.stats.TagKey,com.google.instrumentation.stats.TagValue> tags
public final com.google.instrumentation.stats.MeasurementMap metrics
@Nullable public Double getMetric(com.google.instrumentation.stats.MeasurementDescriptor metricName)
null if not found.public long getMetricAsLongOrFail(com.google.instrumentation.stats.MeasurementDescriptor metricName)