/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/metrics/ |
D | DoubleGaugeImpl.java | 65 public DoublePoint getOrCreateTimeSeries(List<LabelValue> labelValues) { in getOrCreateTimeSeries() argument 67 PointImpl existingPoint = registeredPoints.get(labelValues); in getOrCreateTimeSeries() 74 new ArrayList<LabelValue>(checkNotNull(labelValues, "labelValues"))); in getOrCreateTimeSeries() 89 public synchronized void removeTimeSeries(List<LabelValue> labelValues) { in removeTimeSeries() argument 90 checkNotNull(labelValues, "labelValues"); in removeTimeSeries() 94 if (registeredPointsCopy.remove(labelValues) == null) { in removeTimeSeries() 106 private synchronized DoublePoint registerTimeSeries(List<LabelValue> labelValues) { in registerTimeSeries() argument 107 PointImpl existingPoint = registeredPoints.get(labelValues); in registerTimeSeries() 114 checkArgument(labelKeysSize == labelValues.size(), "Incorrect number of labels."); in registerTimeSeries() 115 Utils.checkListElementNotNull(labelValues, "labelValue element should not be null."); in registerTimeSeries() [all …]
|
D | LongGaugeImpl.java | 65 public LongPoint getOrCreateTimeSeries(List<LabelValue> labelValues) { in getOrCreateTimeSeries() argument 67 PointImpl existingPoint = registeredPoints.get(labelValues); in getOrCreateTimeSeries() 74 new ArrayList<LabelValue>(checkNotNull(labelValues, "labelValues"))); in getOrCreateTimeSeries() 89 public synchronized void removeTimeSeries(List<LabelValue> labelValues) { in removeTimeSeries() argument 90 checkNotNull(labelValues, "labelValues"); in removeTimeSeries() 94 if (registeredPointsCopy.remove(labelValues) == null) { in removeTimeSeries() 106 private synchronized LongPoint registerTimeSeries(List<LabelValue> labelValues) { in registerTimeSeries() argument 107 PointImpl existingPoint = registeredPoints.get(labelValues); in registerTimeSeries() 114 checkArgument(labelKeysSize == labelValues.size(), "Incorrect number of labels."); in registerTimeSeries() 115 Utils.checkListElementNotNull(labelValues, "labelValue element should not be null."); in registerTimeSeries() [all …]
|
D | DerivedDoubleGaugeImpl.java | 63 List<LabelValue> labelValues, in createTimeSeries() argument 67 checkNotNull(labelValues, "labelValues"), "labelValue element should not be null."); in createTimeSeries() 68 checkArgument(labelKeysSize == labelValues.size(), "Incorrect number of labels."); in createTimeSeries() 72 Collections.<LabelValue>unmodifiableList(new ArrayList<LabelValue>(labelValues)); in createTimeSeries() 91 public synchronized void removeTimeSeries(List<LabelValue> labelValues) { in removeTimeSeries() argument 92 checkNotNull(labelValues, "labelValues"); in removeTimeSeries() 96 if (registeredPointsCopy.remove(labelValues) == null) { in removeTimeSeries() 133 private final List<LabelValue> labelValues; field in DerivedDoubleGaugeImpl.PointWithFunction 138 List<LabelValue> labelValues, in PointWithFunction() argument 141 this.labelValues = labelValues; in PointWithFunction() [all …]
|
D | DerivedLongGaugeImpl.java | 63 List<LabelValue> labelValues, /*@Nullable*/ T obj, ToLongFunction</*@Nullable*/ T> function) { in createTimeSeries() argument 65 checkNotNull(labelValues, "labelValues"), "labelValue element should not be null."); in createTimeSeries() 66 checkArgument(labelKeysSize == labelValues.size(), "Incorrect number of labels."); in createTimeSeries() 70 Collections.unmodifiableList(new ArrayList<LabelValue>(labelValues)); in createTimeSeries() 89 public synchronized void removeTimeSeries(List<LabelValue> labelValues) { in removeTimeSeries() argument 90 checkNotNull(labelValues, "labelValues"); in removeTimeSeries() 94 if (registeredPointsCopy.remove(labelValues) == null) { in removeTimeSeries() 131 private final List<LabelValue> labelValues; field in DerivedLongGaugeImpl.PointWithFunction 136 List<LabelValue> labelValues, in PointWithFunction() argument 139 this.labelValues = labelValues; in PointWithFunction() [all …]
|
/external/opencensus-java/api/src/main/java/io/opencensus/metrics/export/ |
D | TimeSeries.java | 54 List<LabelValue> labelValues, List<Point> points, @Nullable Timestamp startTimestamp) { in create() argument 58 labelValues, Collections.unmodifiableList(new ArrayList<Point>(points)), startTimestamp); in create() 72 List<LabelValue> labelValues, Point point, @Nullable Timestamp startTimestamp) { in createWithOnePoint() argument 74 return createInternal(labelValues, Collections.singletonList(point), startTimestamp); in createWithOnePoint() 87 List<LabelValue> labelValues, List<Point> points, @Nullable Timestamp startTimestamp) { in createInternal() argument 89 Utils.checkNotNull(labelValues, "labelValues"); in createInternal() 90 Utils.checkListElementNotNull(labelValues, "labelValue"); in createInternal() 92 Collections.unmodifiableList(new ArrayList<LabelValue>(labelValues)), in createInternal()
|
/external/opencensus-java/api/src/main/java/io/opencensus/metrics/ |
D | LongGauge.java | 94 public abstract LongPoint getOrCreateTimeSeries(List<LabelValue> labelValues); in getOrCreateTimeSeries() argument 112 public abstract void removeTimeSeries(List<LabelValue> labelValues); in removeTimeSeries() argument 172 public NoopLongPoint getOrCreateTimeSeries(List<LabelValue> labelValues) { in getOrCreateTimeSeries() argument 174 Utils.checkNotNull(labelValues, "labelValues"), "labelValue element should not be null."); in getOrCreateTimeSeries() 175 Utils.checkArgument(labelKeysSize == labelValues.size(), "Incorrect number of labels."); in getOrCreateTimeSeries() 185 public void removeTimeSeries(List<LabelValue> labelValues) { in removeTimeSeries() argument 186 Utils.checkNotNull(labelValues, "labelValues"); in removeTimeSeries()
|
D | DoubleGauge.java | 96 public abstract DoublePoint getOrCreateTimeSeries(List<LabelValue> labelValues); in getOrCreateTimeSeries() argument 115 public abstract void removeTimeSeries(List<LabelValue> labelValues); in removeTimeSeries() argument 180 public NoopDoublePoint getOrCreateTimeSeries(List<LabelValue> labelValues) { in getOrCreateTimeSeries() argument 182 Utils.checkNotNull(labelValues, "labelValues"), "labelValue element should not be null."); in getOrCreateTimeSeries() 183 Utils.checkArgument(labelKeysSize == labelValues.size(), "Incorrect number of labels."); in getOrCreateTimeSeries() 193 public void removeTimeSeries(List<LabelValue> labelValues) { in removeTimeSeries() argument 194 Utils.checkNotNull(labelValues, "labelValues"); in removeTimeSeries()
|
D | DerivedDoubleGauge.java | 83 List<LabelValue> labelValues, in createTimeSeries() argument 94 public abstract void removeTimeSeries(List<LabelValue> labelValues); in removeTimeSeries() argument 135 List<LabelValue> labelValues, in createTimeSeries() argument 139 Utils.checkNotNull(labelValues, "labelValues"), "labelValue element should not be null."); in createTimeSeries() 140 Utils.checkArgument(labelKeysSize == labelValues.size(), "Incorrect number of labels."); in createTimeSeries() 145 public void removeTimeSeries(List<LabelValue> labelValues) { in removeTimeSeries() argument 146 Utils.checkNotNull(labelValues, "labelValues"); in removeTimeSeries()
|
D | DerivedLongGauge.java | 83 List<LabelValue> labelValues, /*@Nullable*/ T obj, ToLongFunction</*@Nullable*/ T> function); in createTimeSeries() argument 92 public abstract void removeTimeSeries(List<LabelValue> labelValues); in removeTimeSeries() argument 133 List<LabelValue> labelValues, in createTimeSeries() argument 137 Utils.checkNotNull(labelValues, "labelValues"), "labelValue element should not be null."); in createTimeSeries() 138 Utils.checkArgument(labelKeysSize == labelValues.size(), "Incorrect number of labels."); in createTimeSeries() 143 public void removeTimeSeries(List<LabelValue> labelValues) { in removeTimeSeries() argument 144 Utils.checkNotNull(labelValues, "labelValues"); in removeTimeSeries()
|
/external/opencensus-java/exporters/stats/prometheus/src/main/java/io/opencensus/exporter/stats/prometheus/ |
D | PrometheusExportUtils.java | 164 final List<String> labelValues = new ArrayList<String>(tagValues.size()); 167 labelValues.add(labelValue); 174 samples.add(new Sample(name, labelNames, labelValues, arg.getSum())); 181 samples.add(new Sample(name, labelNames, labelValues, arg.getSum())); 188 samples.add(new Sample(name, labelNames, labelValues, arg.getCount())); 204 List<String> labelValuesWithLe = new ArrayList<String>(labelValues); 222 name + SAMPLE_SUFFIX_COUNT, labelNames, labelValues, arg.getCount())); 227 labelValues, 235 samples.add(new Sample(name, labelNames, labelValues, arg.getLastValue())); 242 samples.add(new Sample(name, labelNames, labelValues, arg.getLastValue())); [all …]
|
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/metrics/ |
D | DoubleGaugeImplTest.java | 80 List<LabelValue> labelValues = Arrays.asList(LabelValue.create("value1"), null); in getOrCreateTimeSeries_WithNullElement() local 86 doubleGauge.getOrCreateTimeSeries(labelValues); in getOrCreateTimeSeries_WithNullElement() 91 List<LabelValue> labelValues = in getOrCreateTimeSeries_WithInvalidLabelSize() local 96 doubleGauge.getOrCreateTimeSeries(labelValues); in getOrCreateTimeSeries_WithInvalidLabelSize() 260 List<LabelValue> labelValues = in testEquals() local 268 DoublePoint doublePoint1 = doubleGauge.getOrCreateTimeSeries(labelValues); in testEquals() 269 DoublePoint doublePoint2 = doubleGauge.getOrCreateTimeSeries(labelValues); in testEquals() 279 DoublePoint newDoublePointAfterClear = doubleGauge.getOrCreateTimeSeries(labelValues); in testEquals() 281 doubleGauge.removeTimeSeries(labelValues); in testEquals() 282 DoublePoint newDoublePointAfterRemove = doubleGauge.getOrCreateTimeSeries(labelValues); in testEquals()
|
D | LongGaugeImplTest.java | 80 List<LabelValue> labelValues = Arrays.asList(LabelValue.create("value1"), null); in getOrCreateTimeSeries_WithNullElement() local 86 longGauge.getOrCreateTimeSeries(labelValues); in getOrCreateTimeSeries_WithNullElement() 91 List<LabelValue> labelValues = in getOrCreateTimeSeries_WithInvalidLabelSize() local 96 longGaugeMetric.getOrCreateTimeSeries(labelValues); in getOrCreateTimeSeries_WithInvalidLabelSize() 255 List<LabelValue> labelValues = in testEquals() local 263 LongPoint longPoint1 = longGauge.getOrCreateTimeSeries(labelValues); in testEquals() 264 LongPoint longPoint2 = longGauge.getOrCreateTimeSeries(labelValues); in testEquals() 274 LongPoint newLongPointAfterClear = longGauge.getOrCreateTimeSeries(labelValues); in testEquals() 276 longGauge.removeTimeSeries(labelValues); in testEquals() 277 LongPoint newLongPointAfterRemove = longGauge.getOrCreateTimeSeries(labelValues); in testEquals()
|
D | DerivedLongGaugeImplTest.java | 107 List<LabelValue> labelValues = Arrays.asList(LabelValue.create("value1"), null); in createTimeSeries_WithNullElement() local 113 derivedLongGauge.createTimeSeries(labelValues, null, longFunction); in createTimeSeries_WithNullElement() 118 List<LabelValue> labelValues = in createTimeSeries_WithInvalidLabelSize() local 123 derivedLongGauge.createTimeSeries(labelValues, null, longFunction); in createTimeSeries_WithInvalidLabelSize()
|
D | DerivedDoubleGaugeImplTest.java | 105 List<LabelValue> labelValues = Arrays.asList(LabelValue.create("value1"), null); in createTimeSeries_WithNullElement() local 110 derivedDoubleGauge.createTimeSeries(labelValues, null, doubleFunction); in createTimeSeries_WithNullElement() 115 List<LabelValue> labelValues = in createTimeSeries_WithInvalidLabelSize() local 119 derivedDoubleGauge.createTimeSeries(labelValues, null, doubleFunction); in createTimeSeries_WithInvalidLabelSize()
|
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/stats/ |
D | MetricUtils.java | 81 List<LabelValue> labelValues = new ArrayList<LabelValue>(); in tagValuesToLabelValues() local 83 labelValues.add(LabelValue.create(tagValue == null ? null : tagValue.asString())); in tagValuesToLabelValues() 85 return labelValues; in tagValuesToLabelValues()
|
D | MutableViewData.java | 140 List<LabelValue> labelValues = MetricUtils.tagValuesToLabelValues(entry.getKey()); in toMetric() local 142 timeSeriesList.add(TimeSeries.createWithOnePoint(labelValues, point, startTime)); in toMetric()
|
/external/opencensus-java/api/src/test/java/io/opencensus/metrics/export/ |
D | TimeSeriesTest.java | 71 List<LabelValue> labelValues = Arrays.asList(LABEL_VALUE_1, null); in create_WithNullLabelValue() local 74 TimeSeries.create(labelValues, Collections.<Point>emptyList(), TIMESTAMP_1); in create_WithNullLabelValue() 113 List<LabelValue> labelValues = Arrays.asList(LABEL_VALUE_1, null); in createWithOnePoint_WithNullLabelValue() local 116 TimeSeries.createWithOnePoint(labelValues, POINT_1, TIMESTAMP_1); in createWithOnePoint_WithNullLabelValue()
|
/external/opencensus-java/api/src/test/java/io/opencensus/metrics/ |
D | DerivedDoubleGaugeTest.java | 63 List<LabelValue> labelValues = Collections.singletonList(null); in noopCreateTimeSeries_WithNullElement() local 66 derivedDoubleGauge.createTimeSeries(labelValues, null, doubleFunction); in noopCreateTimeSeries_WithNullElement()
|
D | DerivedLongGaugeTest.java | 63 List<LabelValue> labelValues = Collections.singletonList(null); in noopCreateTimeSeries_WithNullElement() local 66 derivedLongGauge.createTimeSeries(labelValues, null, longFunction); in noopCreateTimeSeries_WithNullElement()
|
D | DoubleGaugeTest.java | 58 List<LabelValue> labelValues = Collections.singletonList(null); in noopGetOrCreateTimeSeries_WithNullElement() local 62 doubleGauge.getOrCreateTimeSeries(labelValues); in noopGetOrCreateTimeSeries_WithNullElement()
|
D | LongGaugeTest.java | 57 List<LabelValue> labelValues = Collections.singletonList(null); in noopGetOrCreateTimeSeries_WithNullElement() local 61 longGauge.getOrCreateTimeSeries(labelValues); in noopGetOrCreateTimeSeries_WithNullElement()
|