Searched refs:MetricKind (Results 1 – 11 of 11) sorted by relevance
/external/tensorflow/tensorflow/core/lib/monitoring/ |
D | metric_def.h | 38 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>
|
D | metric_def_test.cc | 25 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()
|
D | collection_registry.h | 56 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>
|
D | collection_registry_test.cc | 47 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 …]
|
D | sampler.h | 122 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()
|
D | counter.h | 102 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()
|
D | gauge.h | 154 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()
|
D | collected_metrics.h | 69 MetricKind metric_kind;
|
D | mobile_sampler.h | 78 static Sampler* New(const MetricDef<MetricKind::kCumulative, HistogramProto, in New()
|
/external/opencensus-java/exporters/stats/stackdriver/src/test/java/io/opencensus/exporter/stats/stackdriver/ |
D | StackdriverExportUtilsTest.java | 29 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/ |
D | StackdriverExportUtils.java | 28 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()
|