Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/lib/monitoring/
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()
Dmetric_def.h39 enum class MetricKind : int { kGauge = 0, kCumulative }; enum
93 MetricKind kind() const { return kind_; } in kind()
106 template <MetricKind kind, typename Value, int NumLabels>
109 AbstractMetricDef(const MetricKind kind, const ValueType value_type, in AbstractMetricDef()
119 const MetricKind kind_;
138 template <MetricKind metric_kind, typename Value, int NumLabels>
Dcollection_registry.h57 template <MetricKind metric_kind, typename Value, int NumLabels>
100 template <MetricKind metric_kind, typename Value, int NumLabels>
263 template <MetricKind metric_kind, typename Value, int NumLabels>
305 template <MetricKind kind>
310 inline void WriteTimestamps<MetricKind::kGauge>(
318 inline void WriteTimestamps<MetricKind::kCumulative>(
332 template <MetricKind metric_kind, typename Value, int NumLabels>
351 template <MetricKind metric_kind, typename Value, int NumLabels>
Dcollection_registry_test.cc48 const MetricDef<MetricKind::kCumulative, int64, 0> metric_def0( in TEST()
50 const MetricDef<MetricKind::kGauge, HistogramProto, 1> metric_def1( in TEST()
72 const MetricDef<MetricKind::kCumulative, int64, 0> metric_def( in TEST()
113 EXPECT_EQ(MetricKind::kCumulative, ld.metric_kind); in TEST()
121 EXPECT_EQ(MetricKind::kCumulative, ud.metric_kind); in TEST()
203 EXPECT_EQ(MetricKind::kGauge, ld.metric_kind); in TEST()
211 EXPECT_EQ(MetricKind::kGauge, ud.metric_kind); in TEST()
309 EXPECT_EQ(MetricKind::kCumulative, ld.metric_kind); in TEST()
317 EXPECT_EQ(MetricKind::kCumulative, ud.metric_kind); in TEST()
403 EXPECT_EQ(MetricKind::kCumulative, ld.metric_kind); in TEST()
[all …]
Dsampler.h136 static Sampler* New(const MetricDef<MetricKind::kCumulative, HistogramProto,
150 Sampler(const MetricDef<MetricKind::kCumulative, HistogramProto, NumLabels>& in Sampler()
178 const MetricDef<MetricKind::kCumulative, HistogramProto, NumLabels>
210 const MetricDef<MetricKind::kCumulative, HistogramProto, NumLabels>& in New()
Dpercentile_sampler.h119 const MetricDef<MetricKind::kCumulative, Percentiles, NumLabels>&
135 PercentileSampler(const MetricDef<MetricKind::kCumulative, Percentiles, in PercentileSampler()
178 const MetricDef<MetricKind::kCumulative, Percentiles, NumLabels> metric_def_;
202 const MetricDef<MetricKind::kCumulative, Percentiles, NumLabels>& in New()
Dcounter.h112 const MetricDef<MetricKind::kCumulative, int64, NumLabels>& metric_def) in Counter()
137 const MetricDef<MetricKind::kCumulative, int64, NumLabels> metric_def_;
163 MetricDef<MetricKind::kCumulative, int64, NumLabels>( in New()
Dmobile_percentile_sampler.h50 const MetricDef<MetricKind::kCumulative, Percentiles, NumLabels>&
72 const MetricDef<MetricKind::kCumulative, Percentiles, NumLabels>& in New()
Dgauge.h164 const MetricDef<MetricKind::kGauge, ValueType, NumLabels>& metric_def) in Gauge()
189 const MetricDef<MetricKind::kGauge, ValueType, NumLabels> metric_def_;
231 MetricDef<MetricKind::kGauge, ValueType, NumLabels>( in New()
Dcollected_metrics.h70 MetricKind metric_kind;
Dmobile_sampler.h87 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()