/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/metrics/ |
D | DoubleGaugeImpl.java | 28 import io.opencensus.metrics.LabelValue; 44 @VisibleForTesting static final LabelValue UNSET_VALUE = LabelValue.create(null); 47 private volatile Map<List<LabelValue>, PointImpl> registeredPoints = 48 Collections.<List<LabelValue>, PointImpl>emptyMap(); 50 private final List<LabelValue> defaultLabelValues; 58 defaultLabelValues = new ArrayList<LabelValue>(labelKeysSize); in DoubleGaugeImpl() 65 public DoublePoint getOrCreateTimeSeries(List<LabelValue> labelValues) { in getOrCreateTimeSeries() 72 List<LabelValue> labelValuesCopy = in getOrCreateTimeSeries() 74 new ArrayList<LabelValue>(checkNotNull(labelValues, "labelValues"))); in getOrCreateTimeSeries() 89 public synchronized void removeTimeSeries(List<LabelValue> labelValues) { in removeTimeSeries() [all …]
|
D | LongGaugeImpl.java | 26 import io.opencensus.metrics.LabelValue; 44 @VisibleForTesting static final LabelValue UNSET_VALUE = LabelValue.create(null); 47 private volatile Map<List<LabelValue>, PointImpl> registeredPoints = 48 Collections.<List<LabelValue>, PointImpl>emptyMap(); 50 private final List<LabelValue> defaultLabelValues; 58 defaultLabelValues = new ArrayList<LabelValue>(labelKeysSize); in LongGaugeImpl() 65 public LongPoint getOrCreateTimeSeries(List<LabelValue> labelValues) { in getOrCreateTimeSeries() 72 List<LabelValue> labelValuesCopy = in getOrCreateTimeSeries() 74 new ArrayList<LabelValue>(checkNotNull(labelValues, "labelValues"))); in getOrCreateTimeSeries() 89 public synchronized void removeTimeSeries(List<LabelValue> labelValues) { in removeTimeSeries() [all …]
|
D | DerivedDoubleGaugeImpl.java | 27 import io.opencensus.metrics.LabelValue; 51 private volatile Map<List<LabelValue>, PointWithFunction> registeredPoints = 52 Collections.<List<LabelValue>, PointWithFunction>emptyMap(); 63 List<LabelValue> labelValues, in createTimeSeries() 71 List<LabelValue> labelValuesCopy = in createTimeSeries() 72 Collections.<LabelValue>unmodifiableList(new ArrayList<LabelValue>(labelValues)); in createTimeSeries() 83 Map<List<LabelValue>, PointWithFunction> registeredPointsCopy = in createTimeSeries() 84 new LinkedHashMap<List<LabelValue>, PointWithFunction>(registeredPoints); in createTimeSeries() 91 public synchronized void removeTimeSeries(List<LabelValue> labelValues) { in removeTimeSeries() 94 Map<List<LabelValue>, PointWithFunction> registeredPointsCopy = in removeTimeSeries() [all …]
|
D | DerivedLongGaugeImpl.java | 27 import io.opencensus.metrics.LabelValue; 51 private volatile Map<List<LabelValue>, PointWithFunction> registeredPoints = 52 Collections.<List<LabelValue>, PointWithFunction>emptyMap(); 63 List<LabelValue> labelValues, /*@Nullable*/ T obj, ToLongFunction</*@Nullable*/ T> function) { in createTimeSeries() 69 List<LabelValue> labelValuesCopy = in createTimeSeries() 70 Collections.unmodifiableList(new ArrayList<LabelValue>(labelValues)); in createTimeSeries() 81 Map<List<LabelValue>, PointWithFunction> registeredPointsCopy = in createTimeSeries() 82 new LinkedHashMap<List<LabelValue>, PointWithFunction>(registeredPoints); in createTimeSeries() 89 public synchronized void removeTimeSeries(List<LabelValue> labelValues) { in removeTimeSeries() 92 Map<List<LabelValue>, PointWithFunction> registeredPointsCopy = in removeTimeSeries() [all …]
|
/external/opencensus-java/api/src/test/java/io/opencensus/metrics/ |
D | LabelValueTest.java | 31 private static final LabelValue VALUE = LabelValue.create("value"); 32 private static final LabelValue UNSET = LabelValue.create(null); 33 private static final LabelValue EMPTY = LabelValue.create(""); 49 assertThat(LabelValue.create(value).getValue()).isEqualTo(value); in create_NoLengthConstraint() 55 assertThat(LabelValue.create(value).getValue()).isEqualTo(value); in create_WithUnprintableChars() 61 LabelValue nonAsciiValue = LabelValue.create(value); in create_WithNonAsciiChars() 68 .addEqualityGroup(LabelValue.create("foo"), LabelValue.create("foo")) in testLabelValueEquals() 71 .addEqualityGroup(LabelValue.create("bar")) in testLabelValueEquals()
|
D | DerivedDoubleGaugeTest.java | 40 private static final List<LabelValue> LABEL_VALUES = 41 Collections.singletonList(LabelValue.create("value")); 42 private static final List<LabelValue> EMPTY_LABEL_VALUES = new ArrayList<LabelValue>(); 63 List<LabelValue> labelValues = Collections.singletonList(null); in noopCreateTimeSeries_WithNullElement()
|
D | DerivedLongGaugeTest.java | 40 private static final List<LabelValue> LABEL_VALUES = 41 Collections.singletonList(LabelValue.create("value")); 42 private static final List<LabelValue> EMPTY_LABEL_VALUES = new ArrayList<LabelValue>(); 63 List<LabelValue> labelValues = Collections.singletonList(null); in noopCreateTimeSeries_WithNullElement()
|
D | DoubleGaugeTest.java | 40 private static final List<LabelValue> LABEL_VALUES = 41 Collections.singletonList(LabelValue.create("value")); 43 private static final List<LabelValue> EMPTY_LABEL_VALUES = new ArrayList<LabelValue>(); 58 List<LabelValue> labelValues = Collections.singletonList(null); in noopGetOrCreateTimeSeries_WithNullElement()
|
D | LongGaugeTest.java | 40 private static final List<LabelValue> LABEL_VALUES = 41 Collections.singletonList(LabelValue.create("value")); 43 private static final List<LabelValue> EMPTY_LABEL_VALUES = new ArrayList<LabelValue>(); 57 List<LabelValue> labelValues = Collections.singletonList(null); in noopGetOrCreateTimeSeries_WithNullElement()
|
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/metrics/ |
D | DerivedLongGaugeImplTest.java | 24 import io.opencensus.metrics.LabelValue; 52 private static final List<LabelValue> LABEL_VALUES = 53 Collections.singletonList(LabelValue.create("value")); 54 private static final List<LabelValue> LABEL_VALUES_1 = 55 Collections.singletonList(LabelValue.create("value1")); 107 List<LabelValue> labelValues = Arrays.asList(LabelValue.create("value1"), null); in createTimeSeries_WithNullElement() 118 List<LabelValue> labelValues = in createTimeSeries_WithInvalidLabelSize() 119 Arrays.asList(LabelValue.create("value1"), LabelValue.create("value2")); in createTimeSeries_WithInvalidLabelSize() 200 .isEqualTo(LabelValue.create("value")); in multipleMetrics_GetMetric() 203 .isEqualTo(LabelValue.create("value1")); in multipleMetrics_GetMetric()
|
D | DerivedDoubleGaugeImplTest.java | 24 import io.opencensus.metrics.LabelValue; 52 private static final List<LabelValue> LABEL_VALUES = 53 Collections.singletonList(LabelValue.create("value")); 54 private static final List<LabelValue> LABEL_VALUES_1 = 55 Collections.singletonList(LabelValue.create("value1")); 105 List<LabelValue> labelValues = Arrays.asList(LabelValue.create("value1"), null); in createTimeSeries_WithNullElement() 115 List<LabelValue> labelValues = in createTimeSeries_WithInvalidLabelSize() 116 Arrays.asList(LabelValue.create("value1"), LabelValue.create("value2")); in createTimeSeries_WithInvalidLabelSize() 199 .isEqualTo(LabelValue.create("value")); in multipleMetrics_GetMetric() 202 .isEqualTo(LabelValue.create("value1")); in multipleMetrics_GetMetric()
|
D | LongGaugeImplTest.java | 25 import io.opencensus.metrics.LabelValue; 54 private static final List<LabelValue> LABEL_VALUES = 55 Collections.singletonList(LabelValue.create("value")); 56 private static final List<LabelValue> LABEL_VALUES1 = 57 Collections.singletonList(LabelValue.create("value1")); 58 private static final List<LabelValue> DEFAULT_LABEL_VALUES = 80 List<LabelValue> labelValues = Arrays.asList(LabelValue.create("value1"), null); in getOrCreateTimeSeries_WithNullElement() 91 List<LabelValue> labelValues = in getOrCreateTimeSeries_WithInvalidLabelSize() 92 Arrays.asList(LabelValue.create("value1"), LabelValue.create("value2")); in getOrCreateTimeSeries_WithInvalidLabelSize() 255 List<LabelValue> labelValues = in testEquals() [all …]
|
D | DoubleGaugeImplTest.java | 26 import io.opencensus.metrics.LabelValue; 54 private static final List<LabelValue> LABEL_VALUES = 55 Collections.singletonList(LabelValue.create("value")); 56 private static final List<LabelValue> LABEL_VALUES1 = 57 Collections.singletonList(LabelValue.create("value1")); 58 private static final List<LabelValue> DEFAULT_LABEL_VALUES = 80 List<LabelValue> labelValues = Arrays.asList(LabelValue.create("value1"), null); in getOrCreateTimeSeries_WithNullElement() 91 List<LabelValue> labelValues = in getOrCreateTimeSeries_WithInvalidLabelSize() 92 Arrays.asList(LabelValue.create("value1"), LabelValue.create("value2")); in getOrCreateTimeSeries_WithInvalidLabelSize() 260 List<LabelValue> labelValues = in testEquals() [all …]
|
D | MetricRegistryImplTest.java | 29 import io.opencensus.metrics.LabelValue; 61 private static final List<LabelValue> LABEL_VALUES = 62 Collections.singletonList(LabelValue.create("value"));
|
/external/opencensus-java/api/src/test/java/io/opencensus/metrics/export/ |
D | TimeSeriesTest.java | 23 import io.opencensus.metrics.LabelValue; 40 private static final LabelValue LABEL_VALUE_1 = LabelValue.create("value1"); 41 private static final LabelValue LABEL_VALUE_2 = LabelValue.create("value2"); 71 List<LabelValue> labelValues = Arrays.asList(LABEL_VALUE_1, null); in create_WithNullLabelValue() 81 TimeSeries.create(Collections.<LabelValue>emptyList(), null, TIMESTAMP_1); in create_WithNullPointList() 89 TimeSeries.create(Collections.<LabelValue>emptyList(), points, TIMESTAMP_1); in create_WithNullPoint() 113 List<LabelValue> labelValues = Arrays.asList(LABEL_VALUE_1, null); in createWithOnePoint_WithNullLabelValue() 123 TimeSeries.createWithOnePoint(Collections.<LabelValue>emptyList(), null, TIMESTAMP_1); in createWithOnePoint_WithNullPointList()
|
D | MetricTest.java | 24 import io.opencensus.metrics.LabelValue; 58 private static final LabelValue LABEL_VALUE_1 = LabelValue.create("value1"); 59 private static final LabelValue LABEL_VALUE_2 = LabelValue.create("value1"); 60 private static final LabelValue LABEL_VALUE_EMPTY = LabelValue.create("");
|
/external/opencensus-java/api/src/main/java/io/opencensus/metrics/export/ |
D | TimeSeries.java | 24 import io.opencensus.metrics.LabelValue; 54 List<LabelValue> labelValues, List<Point> points, @Nullable Timestamp startTimestamp) { in create() 72 List<LabelValue> labelValues, Point point, @Nullable Timestamp startTimestamp) { in createWithOnePoint() 87 List<LabelValue> labelValues, List<Point> points, @Nullable Timestamp startTimestamp) { in createInternal() 92 Collections.unmodifiableList(new ArrayList<LabelValue>(labelValues)), in createInternal() 108 public abstract List<LabelValue> getLabelValues(); in getLabelValues()
|
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/stats/ |
D | MetricUtils.java | 23 import io.opencensus.metrics.LabelValue; 80 static List<LabelValue> tagValuesToLabelValues(List</*@Nullable*/ TagValue> tagValues) { in tagValuesToLabelValues() 81 List<LabelValue> labelValues = new ArrayList<LabelValue>(); in tagValuesToLabelValues() 83 labelValues.add(LabelValue.create(tagValue == null ? null : tagValue.asString())); in tagValuesToLabelValues()
|
/external/opencensus-java/api/src/main/java/io/opencensus/metrics/ |
D | LongGauge.java | 94 public abstract LongPoint getOrCreateTimeSeries(List<LabelValue> labelValues); in getOrCreateTimeSeries() 112 public abstract void removeTimeSeries(List<LabelValue> labelValues); in removeTimeSeries() 172 public NoopLongPoint getOrCreateTimeSeries(List<LabelValue> labelValues) { in getOrCreateTimeSeries() 185 public void removeTimeSeries(List<LabelValue> labelValues) { in removeTimeSeries()
|
D | DoubleGauge.java | 96 public abstract DoublePoint getOrCreateTimeSeries(List<LabelValue> labelValues); in getOrCreateTimeSeries() 115 public abstract void removeTimeSeries(List<LabelValue> labelValues); in removeTimeSeries() 180 public NoopDoublePoint getOrCreateTimeSeries(List<LabelValue> labelValues) { in getOrCreateTimeSeries() 193 public void removeTimeSeries(List<LabelValue> labelValues) { in removeTimeSeries()
|
D | DerivedLongGauge.java | 83 List<LabelValue> labelValues, /*@Nullable*/ T obj, ToLongFunction</*@Nullable*/ T> function); in createTimeSeries() 92 public abstract void removeTimeSeries(List<LabelValue> labelValues); in removeTimeSeries() 133 List<LabelValue> labelValues, in createTimeSeries() 143 public void removeTimeSeries(List<LabelValue> labelValues) { in removeTimeSeries()
|
D | DerivedDoubleGauge.java | 83 List<LabelValue> labelValues, in createTimeSeries() 94 public abstract void removeTimeSeries(List<LabelValue> labelValues); in removeTimeSeries() 135 List<LabelValue> labelValues, in createTimeSeries() 145 public void removeTimeSeries(List<LabelValue> labelValues) { in removeTimeSeries()
|
D | LabelValue.java | 32 public abstract class LabelValue { class 34 LabelValue() {} in LabelValue() method in LabelValue 44 public static LabelValue create(@Nullable String value) { in create()
|
/external/opencensus-java/contrib/dropwizard/src/main/java/io/opencensus/contrib/dropwizard/ |
D | DropWizardMetrics.java | 30 import io.opencensus.metrics.LabelValue; 109 Collections.<LabelValue>emptyList(), Point.create(value, clock.now()), null); in collectGauge() 134 Collections.<LabelValue>emptyList(), in collectCounter() 160 Collections.<LabelValue>emptyList(), in collectMeter() 232 Collections.<LabelValue>emptyList(), point, cumulativeStartTimestamp); in collectSnapshotAndCount()
|
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/stats/ |
D | MetricUtilsTest.java | 24 import io.opencensus.metrics.LabelValue; 125 LabelValue.create(VALUE.asString()), in tagValuesToLabelValues() 126 LabelValue.create(VALUE_2.asString()), in tagValuesToLabelValues() 127 LabelValue.create(null)); in tagValuesToLabelValues()
|