Home
last modified time | relevance | path

Searched refs:MetricDescriptor (Results 1 – 25 of 26) sorted by relevance

12

/external/opencensus-java/api/src/test/java/io/opencensus/metrics/export/
DMetricDescriptorTest.java23 import io.opencensus.metrics.export.MetricDescriptor.Type;
48 MetricDescriptor metricDescriptor = in testGet()
49 MetricDescriptor.create( in testGet()
62 MetricDescriptor.create(METRIC_NAME_1, DESCRIPTION, UNIT, Type.GAUGE_DOUBLE, null); in preventNullLabelKeyList()
70 MetricDescriptor.create(METRIC_NAME_1, DESCRIPTION, UNIT, Type.GAUGE_DOUBLE, keys); in preventNullLabelKey()
77 MetricDescriptor.create( in testEquals()
79 MetricDescriptor.create( in testEquals()
82 MetricDescriptor.create( in testEquals()
85 MetricDescriptor.create( in testEquals()
88 MetricDescriptor.create( in testEquals()
[all …]
DMetricTest.java25 import io.opencensus.metrics.export.MetricDescriptor.Type;
48 private static final MetricDescriptor METRIC_DESCRIPTOR_1 =
49 MetricDescriptor.create(
51 private static final MetricDescriptor METRIC_DESCRIPTOR_2 =
52 MetricDescriptor.create(
109 MetricDescriptor metricDescriptor, List<TimeSeries> timeSeriesList, String errorMessage) { in typeMismatch()
/external/opencensus-java/exporters/stats/stackdriver/src/main/java/io/opencensus/exporter/stats/stackdriver/
DStackdriverExportUtils.java27 import com.google.api.MetricDescriptor;
28 import com.google.api.MetricDescriptor.MetricKind;
94 private static final Function<Object, MetricDescriptor.ValueType> VALUE_TYPE_DOUBLE_FUNCTION =
95 Functions.returnConstant(MetricDescriptor.ValueType.DOUBLE);
96 private static final Function<Object, MetricDescriptor.ValueType> VALUE_TYPE_INT64_FUNCTION =
97 Functions.returnConstant(MetricDescriptor.ValueType.INT64);
98 private static final Function<Object, MetricDescriptor.ValueType>
100 Functions.returnConstant(MetricDescriptor.ValueType.UNRECOGNIZED);
101 private static final Function<Object, MetricDescriptor.ValueType>
103 Functions.returnConstant(MetricDescriptor.ValueType.DISTRIBUTION);
[all …]
DStackdriverExporterWorker.java19 import com.google.api.MetricDescriptor;
135 MetricDescriptor metricDescriptor = in registerView()
/external/opencensus-java/contrib/dropwizard/src/main/java/io/opencensus/contrib/dropwizard/
DDropWizardMetrics.java32 import io.opencensus.metrics.export.MetricDescriptor;
33 import io.opencensus.metrics.export.MetricDescriptor.Type;
104 MetricDescriptor metricDescriptor = in collectGauge()
105 MetricDescriptor.create( in collectGauge()
125 MetricDescriptor metricDescriptor = in collectCounter()
126 MetricDescriptor.create( in collectCounter()
151 MetricDescriptor metricDescriptor = in collectMeter()
152 MetricDescriptor.create( in collectMeter()
223 MetricDescriptor metricDescriptor = in collectSnapshotAndCount()
224 MetricDescriptor.create( in collectSnapshotAndCount()
/external/opencensus-java/api/src/main/java/io/opencensus/metrics/export/
DMetric.java51 public static Metric create(MetricDescriptor metricDescriptor, List<TimeSeries> timeSeriesList) { in create()
67 MetricDescriptor metricDescriptor, TimeSeries timeSeries) { in createWithOneTimeSeries()
81 MetricDescriptor metricDescriptor, List<TimeSeries> timeSeriesList) { in createInternal()
93 public abstract MetricDescriptor getMetricDescriptor(); in getMetricDescriptor()
105 private static void checkTypeMatch(MetricDescriptor.Type type, List<TimeSeries> timeSeriesList) { in checkTypeMatch()
DMetricDescriptor.java36 public abstract class MetricDescriptor { class
38 MetricDescriptor() {} in MetricDescriptor() method in MetricDescriptor
51 public static MetricDescriptor create( in create()
/external/opencensus-java/exporters/stats/stackdriver/src/test/java/io/opencensus/exporter/stats/stackdriver/
DStackdriverExportUtilsTest.java28 import com.google.api.MetricDescriptor;
29 import com.google.api.MetricDescriptor.MetricKind;
138 .isEqualTo(MetricDescriptor.ValueType.DOUBLE); in createValueType()
140 .isEqualTo(MetricDescriptor.ValueType.INT64); in createValueType()
142 .isEqualTo(MetricDescriptor.ValueType.INT64); in createValueType()
144 .isEqualTo(MetricDescriptor.ValueType.INT64); in createValueType()
146 .isEqualTo(MetricDescriptor.ValueType.DOUBLE); in createValueType()
148 .isEqualTo(MetricDescriptor.ValueType.DOUBLE); in createValueType()
150 .isEqualTo(MetricDescriptor.ValueType.DISTRIBUTION); in createValueType()
152 .isEqualTo(MetricDescriptor.ValueType.DISTRIBUTION); in createValueType()
[all …]
DStackdriverExporterWorkerTest.java29 import com.google.api.MetricDescriptor;
92 private UnaryCallable<CreateMetricDescriptorRequest, MetricDescriptor>
143 MetricDescriptor descriptor = in export()
/external/opencensus-java/contrib/dropwizard/src/test/java/io/opencensus/contrib/dropwizard/
DDropWizardMetricsTest.java30 import io.opencensus.metrics.export.MetricDescriptor;
31 import io.opencensus.metrics.export.MetricDescriptor.Type;
129 MetricDescriptor.create( in collect()
145 MetricDescriptor.create( in collect()
161 MetricDescriptor.create( in collect()
177 MetricDescriptor.create( in collect()
193 MetricDescriptor.create( in collect()
209 MetricDescriptor.create( in collect()
225 MetricDescriptor.create( in collect()
241 MetricDescriptor.create( in collect()
[all …]
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/metrics/
DMetricRegistryImplTest.java33 import io.opencensus.metrics.export.MetricDescriptor;
34 import io.opencensus.metrics.export.MetricDescriptor.Type;
68 private static final MetricDescriptor LONG_METRIC_DESCRIPTOR =
69 MetricDescriptor.create(NAME, DESCRIPTION, UNIT, Type.GAUGE_INT64, LABEL_KEY);
70 private static final MetricDescriptor DOUBLE_METRIC_DESCRIPTOR =
71 MetricDescriptor.create(NAME_2, DESCRIPTION, UNIT, Type.GAUGE_DOUBLE, LABEL_KEY);
72 private static final MetricDescriptor DERIVED_LONG_METRIC_DESCRIPTOR =
73 MetricDescriptor.create(NAME_3, DESCRIPTION, UNIT, Type.GAUGE_INT64, LABEL_KEY);
74 private static final MetricDescriptor DERIVED_DOUBLE_METRIC_DESCRIPTOR =
75 MetricDescriptor.create(NAME_4, DESCRIPTION, UNIT, Type.GAUGE_DOUBLE, LABEL_KEY);
DDerivedDoubleGaugeImplTest.java26 import io.opencensus.metrics.export.MetricDescriptor;
27 import io.opencensus.metrics.export.MetricDescriptor.Type;
58 private static final MetricDescriptor METRIC_DESCRIPTOR =
59 MetricDescriptor.create(
DDerivedLongGaugeImplTest.java26 import io.opencensus.metrics.export.MetricDescriptor;
27 import io.opencensus.metrics.export.MetricDescriptor.Type;
60 private static final MetricDescriptor METRIC_DESCRIPTOR =
61 MetricDescriptor.create(
DLongGaugeImplTest.java28 import io.opencensus.metrics.export.MetricDescriptor;
29 import io.opencensus.metrics.export.MetricDescriptor.Type;
63 private static final MetricDescriptor METRIC_DESCRIPTOR =
64 MetricDescriptor.create(
DDoubleGaugeImplTest.java28 import io.opencensus.metrics.export.MetricDescriptor;
29 import io.opencensus.metrics.export.MetricDescriptor.Type;
63 private static final MetricDescriptor METRIC_DESCRIPTOR =
64 MetricDescriptor.create(
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/stats/
DMetricUtils.java24 import io.opencensus.metrics.export.MetricDescriptor;
25 import io.opencensus.metrics.export.MetricDescriptor.Type;
43 static MetricDescriptor viewToMetricDescriptor(View view) { in viewToMetricDescriptor()
54 return MetricDescriptor.create( in viewToMetricDescriptor()
DMutableViewData.java37 import io.opencensus.metrics.export.MetricDescriptor;
38 import io.opencensus.metrics.export.MetricDescriptor.Type;
114 private final MetricDescriptor metricDescriptor;
119 MetricDescriptor metricDescriptor = MetricUtils.viewToMetricDescriptor(view); in CumulativeMutableViewData()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/metrics/
DDerivedDoubleGaugeImpl.java29 import io.opencensus.metrics.export.MetricDescriptor;
30 import io.opencensus.metrics.export.MetricDescriptor.Type;
47 private final MetricDescriptor metricDescriptor;
57 MetricDescriptor.create(name, description, unit, Type.GAUGE_DOUBLE, labelKeys); in DerivedDoubleGaugeImpl()
DDerivedLongGaugeImpl.java29 import io.opencensus.metrics.export.MetricDescriptor;
30 import io.opencensus.metrics.export.MetricDescriptor.Type;
47 private final MetricDescriptor metricDescriptor;
57 MetricDescriptor.create(name, description, unit, Type.GAUGE_INT64, labelKeys); in DerivedLongGaugeImpl()
DLongGaugeImpl.java29 import io.opencensus.metrics.export.MetricDescriptor;
30 import io.opencensus.metrics.export.MetricDescriptor.Type;
46 private final MetricDescriptor metricDescriptor;
55 MetricDescriptor.create(name, description, unit, Type.GAUGE_INT64, labelKeys); in LongGaugeImpl()
DDoubleGaugeImpl.java30 import io.opencensus.metrics.export.MetricDescriptor;
31 import io.opencensus.metrics.export.MetricDescriptor.Type;
46 private final MetricDescriptor metricDescriptor;
55 MetricDescriptor.create(name, description, unit, Type.GAUGE_DOUBLE, labelKeys); in DoubleGaugeImpl()
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/stats/
DMetricUtilsTest.java25 import io.opencensus.metrics.export.MetricDescriptor;
26 import io.opencensus.metrics.export.MetricDescriptor.Type;
89 MetricDescriptor metricDescriptor = MetricUtils.viewToMetricDescriptor(VIEW_1); in viewToMetricDescriptor()
100 MetricDescriptor metricDescriptor = MetricUtils.viewToMetricDescriptor(VIEW_2); in viewToMetricDescriptor_NoIntervalViews()
/external/tensorflow/tensorflow/core/lib/monitoring/
Dcollected_metrics.h58 struct MetricDescriptor { struct
147 std::map<string, std::unique_ptr<MetricDescriptor>> metric_descriptor_map;
Dcollection_registry_test.cc108 const MetricDescriptor& ld = *collected_metrics->metric_descriptor_map.at( in TEST()
118 const MetricDescriptor& ud = *collected_metrics->metric_descriptor_map.at( in TEST()
198 const MetricDescriptor& ld = *collected_metrics->metric_descriptor_map.at( in TEST()
208 const MetricDescriptor& ud = *collected_metrics->metric_descriptor_map.at( in TEST()
304 const MetricDescriptor& ld = *collected_metrics->metric_descriptor_map.at( in TEST()
314 const MetricDescriptor& ud = *collected_metrics->metric_descriptor_map.at( in TEST()
Dcollection_registry.cc42 std::unique_ptr<MetricDescriptor>(new MetricDescriptor()))) in CollectMetricDescriptor()

12