/external/opencensus-java/api/src/main/java/io/opencensus/metrics/export/ |
D | Metric.java | 51 public static Metric create(MetricDescriptor metricDescriptor, List<TimeSeries> timeSeriesList) { in create() argument 55 metricDescriptor, Collections.unmodifiableList(new ArrayList<TimeSeries>(timeSeriesList))); in create() 67 MetricDescriptor metricDescriptor, TimeSeries timeSeries) { in createWithOneTimeSeries() argument 69 metricDescriptor, Collections.singletonList(Utils.checkNotNull(timeSeries, "timeSeries"))); in createWithOneTimeSeries() 81 MetricDescriptor metricDescriptor, List<TimeSeries> timeSeriesList) { in createInternal() argument 82 Utils.checkNotNull(metricDescriptor, "metricDescriptor"); in createInternal() 83 checkTypeMatch(metricDescriptor.getType(), timeSeriesList); in createInternal() 84 return new AutoValue_Metric(metricDescriptor, timeSeriesList); in createInternal()
|
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/stats/ |
D | MetricUtilsTest.java | 89 MetricDescriptor metricDescriptor = MetricUtils.viewToMetricDescriptor(VIEW_1); in viewToMetricDescriptor() local 90 assertThat(metricDescriptor).isNotNull(); in viewToMetricDescriptor() 91 assertThat(metricDescriptor.getName()).isEqualTo(VIEW_NAME.asString()); in viewToMetricDescriptor() 92 assertThat(metricDescriptor.getUnit()).isEqualTo(MEASURE_UNIT); in viewToMetricDescriptor() 93 assertThat(metricDescriptor.getType()).isEqualTo(Type.GAUGE_DOUBLE); in viewToMetricDescriptor() 94 assertThat(metricDescriptor.getDescription()).isEqualTo(VIEW_DESCRIPTION); in viewToMetricDescriptor() 95 assertThat(metricDescriptor.getLabelKeys()).containsExactly(LabelKey.create(KEY.getName(), "")); in viewToMetricDescriptor() 100 MetricDescriptor metricDescriptor = MetricUtils.viewToMetricDescriptor(VIEW_2); in viewToMetricDescriptor_NoIntervalViews() local 101 assertThat(metricDescriptor).isNull(); in viewToMetricDescriptor_NoIntervalViews()
|
/external/opencensus-java/api/src/test/java/io/opencensus/metrics/export/ |
D | MetricDescriptorTest.java | 48 MetricDescriptor metricDescriptor = in testGet() local 51 assertThat(metricDescriptor.getName()).isEqualTo(METRIC_NAME_1); in testGet() 52 assertThat(metricDescriptor.getDescription()).isEqualTo(DESCRIPTION); in testGet() 53 assertThat(metricDescriptor.getUnit()).isEqualTo(UNIT); in testGet() 54 assertThat(metricDescriptor.getType()).isEqualTo(Type.GAUGE_DOUBLE); in testGet() 55 assertThat(metricDescriptor.getLabelKeys()).containsExactly(KEY_1, KEY_2).inOrder(); in testGet()
|
D | MetricTest.java | 109 MetricDescriptor metricDescriptor, List<TimeSeries> timeSeriesList, String errorMessage) { in typeMismatch() argument 112 Metric.create(metricDescriptor, timeSeriesList); in typeMismatch()
|
/external/opencensus-java/exporters/stats/stackdriver/src/test/java/io/opencensus/exporter/stats/stackdriver/ |
D | StackdriverExportUtilsTest.java | 378 MetricDescriptor metricDescriptor = in createMetricDescriptor_cumulative() local 381 assertThat(metricDescriptor.getName()) in createMetricDescriptor_cumulative() 387 assertThat(metricDescriptor.getDescription()).isEqualTo(VIEW_DESCRIPTION); in createMetricDescriptor_cumulative() 388 assertThat(metricDescriptor.getDisplayName()).isEqualTo("myorg/" + VIEW_NAME); in createMetricDescriptor_cumulative() 389 assertThat(metricDescriptor.getType()).isEqualTo("custom.googleapis.com/myorg/" + VIEW_NAME); in createMetricDescriptor_cumulative() 390 assertThat(metricDescriptor.getUnit()).isEqualTo(MEASURE_UNIT); in createMetricDescriptor_cumulative() 391 assertThat(metricDescriptor.getMetricKind()).isEqualTo(MetricKind.CUMULATIVE); in createMetricDescriptor_cumulative() 392 assertThat(metricDescriptor.getValueType()).isEqualTo(MetricDescriptor.ValueType.DISTRIBUTION); in createMetricDescriptor_cumulative() 393 assertThat(metricDescriptor.getLabelsList()) in createMetricDescriptor_cumulative() 417 MetricDescriptor metricDescriptor = in createMetricDescriptor_cumulative_count() local [all …]
|
/external/opencensus-java/contrib/dropwizard/src/main/java/io/opencensus/contrib/dropwizard/ |
D | DropWizardMetrics.java | 104 MetricDescriptor metricDescriptor = in collectGauge() local 110 return Metric.createWithOneTimeSeries(metricDescriptor, timeSeries); in collectGauge() 125 MetricDescriptor metricDescriptor = in collectCounter() local 137 return Metric.createWithOneTimeSeries(metricDescriptor, timeSeries); in collectCounter() 151 MetricDescriptor metricDescriptor = in collectMeter() local 164 return Metric.createWithOneTimeSeries(metricDescriptor, timeSeries); in collectMeter() 223 MetricDescriptor metricDescriptor = in collectSnapshotAndCount() local 234 return Metric.createWithOneTimeSeries(metricDescriptor, timeSeries); in collectSnapshotAndCount()
|
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/metrics/ |
D | DerivedDoubleGaugeImpl.java | 47 private final MetricDescriptor metricDescriptor; field in DerivedDoubleGaugeImpl 56 this.metricDescriptor = in DerivedDoubleGaugeImpl() 120 return Metric.createWithOneTimeSeries(metricDescriptor, point.getTimeSeries(clock)); in getMetric() 128 return Metric.create(metricDescriptor, timeSeriesList); in getMetric()
|
D | DerivedLongGaugeImpl.java | 47 private final MetricDescriptor metricDescriptor; field in DerivedLongGaugeImpl 56 this.metricDescriptor = in DerivedLongGaugeImpl() 118 return Metric.createWithOneTimeSeries(metricDescriptor, point.getTimeSeries(clock)); in getMetric() 126 return Metric.create(metricDescriptor, timeSeriesList); in getMetric()
|
D | LongGaugeImpl.java | 46 private final MetricDescriptor metricDescriptor; field in LongGaugeImpl 54 this.metricDescriptor = in LongGaugeImpl() 138 return Metric.createWithOneTimeSeries(metricDescriptor, point.getTimeSeries(clock)); in getMetric() 145 return Metric.create(metricDescriptor, timeSeriesList); in getMetric()
|
D | DoubleGaugeImpl.java | 46 private final MetricDescriptor metricDescriptor; field in DoubleGaugeImpl 54 this.metricDescriptor = in DoubleGaugeImpl() 138 return Metric.createWithOneTimeSeries(metricDescriptor, point.getTimeSeries(clock)); in getMetric() 145 return Metric.create(metricDescriptor, timeSeriesList); in getMetric()
|
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/stats/ |
D | MutableViewData.java | 114 private final MetricDescriptor metricDescriptor; field in MutableViewData.CumulativeMutableViewData 119 MetricDescriptor metricDescriptor = MetricUtils.viewToMetricDescriptor(view); in CumulativeMutableViewData() local 120 if (metricDescriptor == null) { in CumulativeMutableViewData() 124 this.metricDescriptor = metricDescriptor; in CumulativeMutableViewData() 134 Type type = metricDescriptor.getType(); in toMetric() 144 return Metric.create(metricDescriptor, timeSeriesList); in toMetric()
|
/external/opencensus-java/exporters/stats/stackdriver/src/main/java/io/opencensus/exporter/stats/stackdriver/ |
D | StackdriverExporterWorker.java | 135 MetricDescriptor metricDescriptor = in registerView() local 137 if (metricDescriptor == null) { in registerView() 145 .setMetricDescriptor(metricDescriptor) in registerView()
|