Home
last modified time | relevance | path

Searched refs:MetricKind (Results 1 – 11 of 11) sorted by relevance

/external/tensorflow/tensorflow/core/lib/monitoring/
Dmetric_def.h38 enum class MetricKind : int { kGauge = 0, kCumulative }; enum
81 MetricKind kind() const { return kind_; } in kind()
94 template <MetricKind kind, typename Value, int NumLabels>
97 AbstractMetricDef(const MetricKind kind, const ValueType value_type, in AbstractMetricDef()
107 const MetricKind kind_;
126 template <MetricKind metric_kind, typename Value, int NumLabels>
Dmetric_def_test.cc25 const MetricDef<MetricKind::kCumulative, int64, 0> metric_def0( in TEST()
27 const MetricDef<MetricKind::kGauge, HistogramProto, 1> metric_def1( in TEST()
33 EXPECT_EQ(MetricKind::kCumulative, metric_def0.kind()); in TEST()
34 EXPECT_EQ(MetricKind::kGauge, metric_def1.kind()); in TEST()
49 const MetricDef<MetricKind::kCumulative, int64, 1> metric_def( in TEST()
Dcollection_registry.h56 template <MetricKind metric_kind, typename Value, int NumLabels>
100 template <MetricKind metric_kind, typename Value, int NumLabels>
257 template <MetricKind metric_kind, typename Value, int NumLabels>
299 template <MetricKind kind>
304 inline void WriteTimestamps<MetricKind::kGauge>(
312 inline void WriteTimestamps<MetricKind::kCumulative>(
326 template <MetricKind metric_kind, typename Value, int NumLabels>
345 template <MetricKind metric_kind, typename Value, int NumLabels>
Dcollection_registry_test.cc47 const MetricDef<MetricKind::kCumulative, int64, 0> metric_def0( in TEST()
49 const MetricDef<MetricKind::kGauge, HistogramProto, 1> metric_def1( in TEST()
71 const MetricDef<MetricKind::kCumulative, int64, 0> metric_def( in TEST()
115 EXPECT_EQ(MetricKind::kCumulative, ld.metric_kind); in TEST()
123 EXPECT_EQ(MetricKind::kCumulative, ud.metric_kind); in TEST()
205 EXPECT_EQ(MetricKind::kGauge, ld.metric_kind); in TEST()
213 EXPECT_EQ(MetricKind::kGauge, ud.metric_kind); in TEST()
311 EXPECT_EQ(MetricKind::kCumulative, ld.metric_kind); in TEST()
319 EXPECT_EQ(MetricKind::kCumulative, ud.metric_kind); in TEST()
390 const MetricDef<MetricKind::kCumulative, int64, 0> cumulative_metric( in TEST()
[all …]
Dsampler.h122 static Sampler* New(const MetricDef<MetricKind::kCumulative, HistogramProto,
134 Sampler(const MetricDef<MetricKind::kCumulative, HistogramProto, NumLabels>& in Sampler()
153 const MetricDef<MetricKind::kCumulative, HistogramProto, NumLabels>
185 const MetricDef<MetricKind::kCumulative, HistogramProto, NumLabels>& in New()
Dcounter.h102 const MetricDef<MetricKind::kCumulative, int64, NumLabels>& metric_def) in Counter()
118 const MetricDef<MetricKind::kCumulative, int64, NumLabels> metric_def_;
144 MetricDef<MetricKind::kCumulative, int64, NumLabels>( in New()
Dgauge.h154 const MetricDef<MetricKind::kGauge, ValueType, NumLabels>& metric_def) in Gauge()
170 const MetricDef<MetricKind::kGauge, ValueType, NumLabels> metric_def_;
212 MetricDef<MetricKind::kGauge, ValueType, NumLabels>( in New()
Dcollected_metrics.h69 MetricKind metric_kind;
Dmobile_sampler.h78 static Sampler* New(const MetricDef<MetricKind::kCumulative, HistogramProto, in New()
/external/opencensus-java/exporters/stats/stackdriver/src/test/java/io/opencensus/exporter/stats/stackdriver/
DStackdriverExportUtilsTest.java29 import com.google.api.MetricDescriptor.MetricKind;
126 .isEqualTo(MetricKind.CUMULATIVE); in createMetricKind()
128 .isEqualTo(MetricKind.UNRECOGNIZED); in createMetricKind()
130 .isEqualTo(MetricKind.GAUGE); in createMetricKind()
132 .isEqualTo(MetricKind.GAUGE); in createMetricKind()
391 assertThat(metricDescriptor.getMetricKind()).isEqualTo(MetricKind.CUMULATIVE); in createMetricDescriptor_cumulative()
431 assertThat(metricDescriptor.getMetricKind()).isEqualTo(MetricKind.CUMULATIVE); in createMetricDescriptor_cumulative_count()
489 .setMetricKind(MetricKind.CUMULATIVE) in createTimeSeriesList_cumulative()
500 .setMetricKind(MetricKind.CUMULATIVE) in createTimeSeriesList_cumulative()
559 .setMetricKind(MetricKind.CUMULATIVE) in createTimeSeriesList_withCustomMonitoredResource()
/external/opencensus-java/exporters/stats/stackdriver/src/main/java/io/opencensus/exporter/stats/stackdriver/
DStackdriverExportUtils.java28 import com.google.api.MetricDescriptor.MetricKind;
119 private static final Function<Object, MetricKind> METRIC_KIND_CUMULATIVE_FUNCTION =
120 Functions.returnConstant(MetricKind.CUMULATIVE);
121 private static final Function<Object, MetricKind> METRIC_KIND_UNRECOGNIZED_FUNCTION =
122 Functions.returnConstant(MetricKind.UNRECOGNIZED);
258 static MetricKind createMetricKind(View.AggregationWindow window, Aggregation aggregation) { in createMetricKind()
260 return MetricKind.GAUGE; in createMetricKind()