/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/stats/ |
D | ViewManagerImplTest.java | 89 private static final MeasureDouble MEASURE_DOUBLE = field in ViewManagerImplTest 128 return createCumulativeView(VIEW_NAME, MEASURE_DOUBLE, DISTRIBUTION, Arrays.asList(KEY)); in createCumulativeView() 150 View.Name.create("View 1"), MEASURE_DOUBLE, DISTRIBUTION, Arrays.asList(KEY)); in testGetAllExportedViews() 153 View.Name.create("View 2"), MEASURE_DOUBLE, DISTRIBUTION, Arrays.asList(KEY)); in testGetAllExportedViews() 158 MEASURE_DOUBLE, in testGetAllExportedViews() 176 MEASURE_DOUBLE, in getAllExportedViewsResultIsUnmodifiable() 187 MEASURE_DOUBLE, in getAllExportedViewsResultIsUnmodifiable() 201 MEASURE_DOUBLE, in testRegisterAndGetIntervalView() 225 MEASURE_DOUBLE, in preventRegisteringDifferentViewWithSameName() 233 MEASURE_DOUBLE, in preventRegisteringDifferentViewWithSameName() [all …]
|
D | StatsRecorderImplTest.java | 65 private static final MeasureDouble MEASURE_DOUBLE = field in StatsRecorderImplTest 93 MEASURE_DOUBLE, in record_CurrentContextNotSet() 98 statsRecorder.newMeasureMap().put(MEASURE_DOUBLE, 1.0).record(); in record_CurrentContextNotSet() 112 MEASURE_DOUBLE, in record_CurrentContextSet() 122 statsRecorder.newMeasureMap().put(MEASURE_DOUBLE, 1.0).record(); in record_CurrentContextSet() 138 MEASURE_DOUBLE, in record_UnregisteredMeasure() 146 .put(MEASURE_DOUBLE, 2.0) in record_UnregisteredMeasure() 156 StatsTestUtil.createAggregationData(Sum.create(), MEASURE_DOUBLE, 2.0)), in record_UnregisteredMeasure() local 164 View.create(VIEW_NAME, "description", MEASURE_DOUBLE, DISTRIBUTION, Arrays.asList(KEY)); in record_WithAttachments_Distribution() 187 MEASURE_DOUBLE, in record_WithAttachments_DistributionNoHistogram() [all …]
|
D | IntervalBucketTest.java | 43 private static final MeasureDouble MEASURE_DOUBLE = field in IntervalBucketTest 53 new IntervalBucket(null, MINUTE, MEAN, MEASURE_DOUBLE); in preventNullStartTime() 59 new IntervalBucket(START, null, MEAN, MEASURE_DOUBLE); in preventNullDuration() 65 new IntervalBucket(START, NEGATIVE_TEN_SEC, MEAN, MEASURE_DOUBLE); in preventNegativeDuration() 71 new IntervalBucket(START, MINUTE, null, MEASURE_DOUBLE); in preventNullAggregation() 82 assertThat(new IntervalBucket(START, MINUTE, MEAN, MEASURE_DOUBLE).getTagValueAggregationMap()) in testGetTagValueAggregationMap_empty() 88 assertThat(new IntervalBucket(START, MINUTE, MEAN, MEASURE_DOUBLE).getStart()).isEqualTo(START); in testGetStart() 93 IntervalBucket bucket = new IntervalBucket(START, MINUTE, MEAN, MEASURE_DOUBLE); in testRecord() 112 new IntervalBucket(START, MINUTE, MEAN, MEASURE_DOUBLE) in testGetFraction() 120 IntervalBucket bucket = new IntervalBucket(START, MINUTE, MEAN, MEASURE_DOUBLE); in preventCallingGetFractionOnPastBuckets() [all …]
|
D | MetricUtilsTest.java | 58 private static final MeasureDouble MEASURE_DOUBLE = field in MetricUtilsTest 76 VIEW_NAME, VIEW_DESCRIPTION, MEASURE_DOUBLE, LAST_VALUE, Collections.singletonList(KEY)); 81 MEASURE_DOUBLE, 106 assertThat(MetricUtils.getType(MEASURE_DOUBLE, LAST_VALUE)).isEqualTo(Type.GAUGE_DOUBLE); in getType() 108 assertThat(MetricUtils.getType(MEASURE_DOUBLE, SUM)).isEqualTo(Type.CUMULATIVE_DOUBLE); in getType() 110 assertThat(MetricUtils.getType(MEASURE_DOUBLE, MEAN)).isEqualTo(Type.CUMULATIVE_DOUBLE); in getType() 112 assertThat(MetricUtils.getType(MEASURE_DOUBLE, COUNT)).isEqualTo(Type.CUMULATIVE_INT64); in getType() 114 assertThat(MetricUtils.getType(MEASURE_DOUBLE, DISTRIBUTION)) in getType()
|
D | RecordUtilsTest.java | 51 private static final MeasureDouble MEASURE_DOUBLE = field in RecordUtilsTest 81 RecordUtils.createMutableAggregation(Sum.create(), MEASURE_DOUBLE).toAggregationData()) in createMutableAggregation() 86 RecordUtils.createMutableAggregation(Count.create(), MEASURE_DOUBLE) in createMutableAggregation() 93 RecordUtils.createMutableAggregation(Mean.create(), MEASURE_DOUBLE).toAggregationData()) in createMutableAggregation() 99 RecordUtils.createMutableAggregation(LastValue.create(), MEASURE_DOUBLE) in createMutableAggregation() 110 Distribution.create(bucketBoundaries), MEASURE_DOUBLE); in createMutableAggregation()
|
/external/opencensus-java/exporters/stats/stackdriver/src/test/java/io/opencensus/exporter/stats/stackdriver/ |
D | StackdriverExportUtilsTest.java | 85 private static final MeasureDouble MEASURE_DOUBLE = field in StackdriverExportUtilsTest 137 assertThat(StackdriverExportUtils.createValueType(SUM, MEASURE_DOUBLE)) in createValueType() 141 assertThat(StackdriverExportUtils.createValueType(COUNT, MEASURE_DOUBLE)) in createValueType() 145 assertThat(StackdriverExportUtils.createValueType(MEAN, MEASURE_DOUBLE)) in createValueType() 149 assertThat(StackdriverExportUtils.createValueType(DISTRIBUTION, MEASURE_DOUBLE)) in createValueType() 153 assertThat(StackdriverExportUtils.createValueType(LAST_VALUE, MEASURE_DOUBLE)) in createValueType() 161 assertThat(StackdriverExportUtils.createUnit(SUM, MEASURE_DOUBLE)).isEqualTo(MEASURE_UNIT); in createUnit() 162 assertThat(StackdriverExportUtils.createUnit(COUNT, MEASURE_DOUBLE)).isEqualTo("1"); in createUnit() 163 assertThat(StackdriverExportUtils.createUnit(MEAN, MEASURE_DOUBLE)).isEqualTo(MEASURE_UNIT); in createUnit() 164 assertThat(StackdriverExportUtils.createUnit(DISTRIBUTION, MEASURE_DOUBLE)) in createUnit() [all …]
|
/external/opencensus-java/api/src/test/java/io/opencensus/stats/ |
D | ViewDataTest.java | 65 View view = View.create(NAME, DESCRIPTION, MEASURE_DOUBLE, DISTRIBUTION, TAG_KEYS, CUMULATIVE); in testCumulativeViewData() 78 View.create(NAME, DESCRIPTION, MEASURE_DOUBLE, DISTRIBUTION, TAG_KEYS, INTERVAL_HOUR); in testIntervalViewData() 90 View.create(NAME, DESCRIPTION, MEASURE_DOUBLE, DISTRIBUTION, TAG_KEYS, CUMULATIVE); in testViewDataEquals() 92 View.create(NAME, DESCRIPTION, MEASURE_DOUBLE, DISTRIBUTION, TAG_KEYS, INTERVAL_HOUR); in testViewDataEquals() 173 View.create(NAME, DESCRIPTION, MEASURE_DOUBLE, DISTRIBUTION, TAG_KEYS, INTERVAL_HOUR), in preventWindowAndAggregationWindowDataMismatch() 183 View.create(NAME, DESCRIPTION, MEASURE_DOUBLE, DISTRIBUTION, TAG_KEYS, CUMULATIVE), in preventWindowAndAggregationWindowDataMismatch2() 197 createView(Sum.create(), MEASURE_DOUBLE), in preventAggregationAndAggregationDataMismatch_SumDouble_SumLong() local 229 createView(LastValue.create(), MEASURE_DOUBLE), in preventAggregationAndAggregationDataMismatch_LastValueDouble_LastValueLong() local 243 return createView(aggregation, MEASURE_DOUBLE); in createView() 297 private static final Measure MEASURE_DOUBLE = field in ViewDataTest
|
/external/opencensus-java/exporters/stats/prometheus/src/test/java/io/opencensus/exporter/stats/prometheus/ |
D | PrometheusExportUtilsTest.java | 83 private static final MeasureDouble MEASURE_DOUBLE = field in PrometheusExportUtilsTest 102 VIEW_NAME_1, DESCRIPTION, MEASURE_DOUBLE, COUNT, Arrays.asList(K1, K2), CUMULATIVE); 104 View.create(VIEW_NAME_2, DESCRIPTION, MEASURE_DOUBLE, MEAN, Arrays.asList(K3), CUMULATIVE); 107 VIEW_NAME_3, DESCRIPTION, MEASURE_DOUBLE, DISTRIBUTION, Arrays.asList(K1), CUMULATIVE); 109 View.create(VIEW_NAME_4, DESCRIPTION, MEASURE_DOUBLE, COUNT, Arrays.asList(K1), INTERVAL); 114 MEASURE_DOUBLE,
|
D | PrometheusStatsCollectorTest.java | 60 private static final MeasureDouble MEASURE_DOUBLE = field in PrometheusStatsCollectorTest 71 VIEW_NAME, DESCRIPTION, MEASURE_DOUBLE, DISTRIBUTION, Arrays.asList(K1, K2), CUMULATIVE); 76 MEASURE_DOUBLE,
|