Home
last modified time | relevance | path

Searched refs:LabelValue (Results 1 – 25 of 27) sorted by relevance

12

/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/metrics/
DDoubleGaugeImpl.java28 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 …]
DLongGaugeImpl.java26 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 …]
DDerivedDoubleGaugeImpl.java27 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 …]
DDerivedLongGaugeImpl.java27 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/
DLabelValueTest.java31 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()
DDerivedDoubleGaugeTest.java40 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()
DDerivedLongGaugeTest.java40 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()
DDoubleGaugeTest.java40 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()
DLongGaugeTest.java40 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/
DDerivedLongGaugeImplTest.java24 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()
DDerivedDoubleGaugeImplTest.java24 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()
DLongGaugeImplTest.java25 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 …]
DDoubleGaugeImplTest.java26 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 …]
DMetricRegistryImplTest.java29 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/
DTimeSeriesTest.java23 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()
DMetricTest.java24 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/
DTimeSeries.java24 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/
DMetricUtils.java23 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/
DLongGauge.java94 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()
DDoubleGauge.java96 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()
DDerivedLongGauge.java83 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()
DDerivedDoubleGauge.java83 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()
DLabelValue.java32 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/
DDropWizardMetrics.java30 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/
DMetricUtilsTest.java24 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()

12