Home
last modified time | relevance | path

Searched refs:LabelKey (Results 1 – 25 of 30) sorted by relevance

12

/external/opencensus-java/api/src/test/java/io/opencensus/metrics/
DLabelKeyTest.java31 private static final LabelKey KEY = LabelKey.create("key", "description");
50 assertThat(LabelKey.create(key, "").getKey()).isEqualTo(key); in create_NoLengthConstraint()
57 LabelKey labelKey = LabelKey.create(key, description); in create_WithUnprintableChars()
66 LabelKey nonAsciiKey = LabelKey.create(key, description); in create_WithNonAsciiChars()
73 LabelKey emptyKey = LabelKey.create("", ""); in create_Empty()
81 .addEqualityGroup(LabelKey.create("foo", ""), LabelKey.create("foo", "")) in testLabelKeyEquals()
82 .addEqualityGroup(LabelKey.create("foo", "description")) in testLabelKeyEquals()
83 .addEqualityGroup(LabelKey.create("bar", "")) in testLabelKeyEquals()
DDoubleGaugeTest.java38 private static final List<LabelKey> LABEL_KEY =
39 Collections.singletonList(LabelKey.create("key", "key description"));
42 private static final List<LabelKey> EMPTY_LABEL_KEYS = new ArrayList<LabelKey>();
DLongGaugeTest.java38 private static final List<LabelKey> LABEL_KEY =
39 Collections.singletonList(LabelKey.create("key", "key description"));
42 private static final List<LabelKey> EMPTY_LABEL_KEYS = new ArrayList<LabelKey>();
DMetricRegistryTest.java40 private static final List<LabelKey> LABEL_KEY =
41 Collections.singletonList(LabelKey.create("key", "key description"));
77 List<LabelKey> labelKeys = Collections.singletonList(null); in noopAddLongGauge_WithNullElement()
113 List<LabelKey> labelKeys = Collections.singletonList(null); in noopAddDoubleGauge_WithNullElement()
149 List<LabelKey> labelKeys = Collections.singletonList(null); in noopAddDerivedLongGauge_WithNullElement()
185 List<LabelKey> labelKeys = Collections.singletonList(null); in noopAddDerivedDoubleGauge_WithNullElement()
DDerivedDoubleGaugeTest.java38 private static final List<LabelKey> LABEL_KEY =
39 Collections.singletonList(LabelKey.create("key", "key description"));
DDerivedLongGaugeTest.java38 private static final List<LabelKey> LABEL_KEY =
39 Collections.singletonList(LabelKey.create("key", "key description"));
/external/opencensus-java/api/src/main/java/io/opencensus/metrics/
DMetricRegistry.java49 String name, String description, String unit, List<LabelKey> labelKeys); in addLongGauge()
66 String name, String description, String unit, List<LabelKey> labelKeys); in addDoubleGauge()
83 String name, String description, String unit, List<LabelKey> labelKeys); in addDerivedLongGauge()
100 String name, String description, String unit, List<LabelKey> labelKeys); in addDerivedDoubleGauge()
110 String name, String description, String unit, List<LabelKey> labelKeys) { in addLongGauge()
122 String name, String description, String unit, List<LabelKey> labelKeys) { in addDoubleGauge()
134 String name, String description, String unit, List<LabelKey> labelKeys) { in addDerivedLongGauge()
146 String name, String description, String unit, List<LabelKey> labelKeys) { in addDerivedDoubleGauge()
DLabelKey.java31 public abstract class LabelKey { class
33 LabelKey() {} in LabelKey() method in LabelKey
43 public static LabelKey create(String key, String description) { in create()
DLongGauge.java129 String name, String description, String unit, List<LabelKey> labelKeys) { in newNoopLongGauge()
162 String name, String description, String unit, List<LabelKey> labelKeys) { in create()
167 NoopLongGauge(String name, String description, String unit, List<LabelKey> labelKeys) { in NoopLongGauge()
DDerivedLongGauge.java108 String name, String description, String unit, List<LabelKey> labelKeys) { in newNoopDerivedLongGauge()
117 String name, String description, String unit, List<LabelKey> labelKeys) { in create()
122 NoopDerivedLongGauge(String name, String description, String unit, List<LabelKey> labelKeys) { in NoopDerivedLongGauge()
DDoubleGauge.java132 String name, String description, String unit, List<LabelKey> labelKeys) { in newNoopDoubleGauge()
165 String name, String description, String unit, List<LabelKey> labelKeys) { in create()
170 NoopDoubleGauge(String name, String description, String unit, List<LabelKey> labelKeys) { in NoopDoubleGauge()
DDerivedDoubleGauge.java110 String name, String description, String unit, List<LabelKey> labelKeys) { in newNoopDerivedDoubleGauge()
119 String name, String description, String unit, List<LabelKey> labelKeys) { in create()
124 NoopDerivedDoubleGauge(String name, String description, String unit, List<LabelKey> labelKeys) { in NoopDerivedDoubleGauge()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/metrics/
DMetricRegistryImpl.java26 import io.opencensus.metrics.LabelKey;
50 String name, String description, String unit, List<LabelKey> labelKeys) { in addLongGauge()
58 Collections.unmodifiableList(new ArrayList<LabelKey>(labelKeys))); in addLongGauge()
65 String name, String description, String unit, List<LabelKey> labelKeys) { in addDoubleGauge()
73 Collections.unmodifiableList(new ArrayList<LabelKey>(labelKeys))); in addDoubleGauge()
80 String name, String description, String unit, List<LabelKey> labelKeys) { in addDerivedLongGauge()
88 Collections.unmodifiableList(new ArrayList<LabelKey>(labelKeys))); in addDerivedLongGauge()
95 String name, String description, String unit, List<LabelKey> labelKeys) { in addDerivedDoubleGauge()
103 Collections.unmodifiableList(new ArrayList<LabelKey>(labelKeys))); in addDerivedDoubleGauge()
DDerivedLongGaugeImpl.java26 import io.opencensus.metrics.LabelKey;
54 DerivedLongGaugeImpl(String name, String description, String unit, List<LabelKey> labelKeys) { in DerivedLongGaugeImpl()
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/metrics/
DDoubleGaugeImplTest.java25 import io.opencensus.metrics.LabelKey;
52 private static final List<LabelKey> LABEL_KEY =
53 Collections.singletonList(LabelKey.create("key", "key description"));
78 List<LabelKey> labelKeys = in getOrCreateTimeSeries_WithNullElement()
79 Arrays.asList(LabelKey.create("key1", "desc"), LabelKey.create("key2", "desc")); in getOrCreateTimeSeries_WithNullElement()
199 List<LabelKey> labelKeys = in setDefaultLabelValues()
200 Arrays.asList(LabelKey.create("key1", "desc"), LabelKey.create("key2", "desc")); in setDefaultLabelValues()
258 List<LabelKey> labelKeys = in testEquals()
259 Arrays.asList(LabelKey.create("key1", "desc"), LabelKey.create("key2", "desc")); in testEquals()
DLongGaugeImplTest.java24 import io.opencensus.metrics.LabelKey;
52 private static final List<LabelKey> LABEL_KEY =
53 Collections.singletonList(LabelKey.create("key", "key description"));
78 List<LabelKey> labelKeys = in getOrCreateTimeSeries_WithNullElement()
79 Arrays.asList(LabelKey.create("key1", "desc"), LabelKey.create("key2", "desc")); in getOrCreateTimeSeries_WithNullElement()
194 List<LabelKey> labelKeys = in setDefaultLabelValues()
195 Arrays.asList(LabelKey.create("key1", "desc"), LabelKey.create("key2", "desc")); in setDefaultLabelValues()
253 List<LabelKey> labelKeys = in testEquals()
254 Arrays.asList(LabelKey.create("key1", "desc"), LabelKey.create("key2", "desc")); in testEquals()
DDerivedLongGaugeImplTest.java23 import io.opencensus.metrics.LabelKey;
50 private static final List<LabelKey> LABEL_KEY =
51 Collections.singletonList(LabelKey.create("key", "key description"));
105 List<LabelKey> labelKeys = in createTimeSeries_WithNullElement()
106 Arrays.asList(LabelKey.create("key1", "desc"), LabelKey.create("key2", "desc")); in createTimeSeries_WithNullElement()
DDerivedDoubleGaugeImplTest.java23 import io.opencensus.metrics.LabelKey;
50 private static final List<LabelKey> LABEL_KEY =
51 Collections.singletonList(LabelKey.create("key", "key description"));
103 List<LabelKey> labelKeys = in createTimeSeries_WithNullElement()
104 Arrays.asList(LabelKey.create("key1", "desc"), LabelKey.create("key2", "desc")); in createTimeSeries_WithNullElement()
DMetricRegistryImplTest.java28 import io.opencensus.metrics.LabelKey;
59 private static final List<LabelKey> LABEL_KEY =
60 Collections.singletonList(LabelKey.create("key", "key description"));
122 List<LabelKey> labelKeys = Collections.singletonList(null); in addLongGauge_WithNullElement()
158 List<LabelKey> labelKeys = Collections.singletonList(null); in addDoubleGauge_WithNullElement()
194 List<LabelKey> labelKeys = Collections.singletonList(null); in addDerivedLongGauge_WithNullElement()
230 List<LabelKey> labelKeys = Collections.singletonList(null); in addDerivedDoubleGauge_WithNullElement()
/external/opencensus-java/api/src/test/java/io/opencensus/metrics/export/
DMetricDescriptorTest.java22 import io.opencensus.metrics.LabelKey;
43 private static final LabelKey KEY_1 = LabelKey.create("key1", "some key");
44 private static final LabelKey KEY_2 = LabelKey.create("key2", "some other key");
67 List<LabelKey> keys = Arrays.asList(KEY_1, null); in preventNullLabelKey()
DMetricTest.java23 import io.opencensus.metrics.LabelKey;
46 private static final LabelKey KEY_1 = LabelKey.create("key1", "some key");
47 private static final LabelKey KEY_2 = LabelKey.create("key1", "some other key");
/external/opencensus-java/api/src/main/java/io/opencensus/metrics/export/
DMetricDescriptor.java22 import io.opencensus.metrics.LabelKey;
52 String name, String description, String unit, Type type, List<LabelKey> labelKeys) { in create()
60 Collections.unmodifiableList(new ArrayList<LabelKey>(labelKeys))); in create()
101 public abstract List<LabelKey> getLabelKeys(); in getLabelKeys()
/external/opencensus-java/contrib/dropwizard/src/test/java/io/opencensus/contrib/dropwizard/
DDropWizardMetricsTest.java28 import io.opencensus.metrics.LabelKey;
135 Collections.<LabelKey>emptyList())); in collect()
151 Collections.<LabelKey>emptyList())); in collect()
167 Collections.<LabelKey>emptyList())); in collect()
183 Collections.<LabelKey>emptyList())); in collect()
199 Collections.<LabelKey>emptyList())); in collect()
215 Collections.<LabelKey>emptyList())); in collect()
231 Collections.<LabelKey>emptyList())); in collect()
246 Collections.<LabelKey>emptyList())); in collect()
275 Collections.<LabelKey>emptyList())); in collect()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/stats/
DMetricUtils.java22 import io.opencensus.metrics.LabelKey;
48 List<LabelKey> labelKeys = new ArrayList<LabelKey>(); in viewToMetricDescriptor()
51 labelKeys.add(LabelKey.create(tagKey.getName(), "")); in viewToMetricDescriptor()
/external/opencensus-java/contrib/dropwizard/src/main/java/io/opencensus/contrib/dropwizard/
DDropWizardMetrics.java29 import io.opencensus.metrics.LabelKey;
106 metricName, metricDescription, DEFAULT_UNIT, type, Collections.<LabelKey>emptyList()); in collectGauge()
131 Collections.<LabelKey>emptyList()); in collectCounter()
157 Collections.<LabelKey>emptyList()); in collectMeter()
229 Collections.<LabelKey>emptyList()); in collectSnapshotAndCount()

12