Searched refs:getSumOverPastBuckets (Results 1 – 8 of 8) sorted by relevance
/packages/modules/StatsD/statsd/tests/anomaly/ |
D | AnomalyTracker_test.cpp | 164 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyA), 1LL); in TEST() 165 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyB), 2LL); in TEST() 166 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyC), 1LL); in TEST() 178 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyA), 1LL); in TEST() 179 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyB), 2LL); in TEST() 180 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyC), 1LL); in TEST() 191 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyA), 2LL); in TEST() 192 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyB), 2LL); in TEST() 193 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyC), 1LL); in TEST() 205 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyA), 2LL); in TEST() [all …]
|
/packages/modules/StatsD/statsd/tests/metrics/ |
D | CountMetricProducer_test.cpp | 280 EXPECT_EQ(0, anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST_P() 300 EXPECT_EQ(0, anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST_P() 310 EXPECT_EQ(0, anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST_P() 319 EXPECT_EQ(2, anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST_P()
|
D | GaugeMetricProducer_test.cpp | 250 EXPECT_EQ(0, anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST_P() 264 EXPECT_EQ(0, anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST_P() 274 EXPECT_EQ(1, anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST_P() 282 EXPECT_EQ(2, anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST_P()
|
D | DurationMetricProducer_test.cpp | 402 anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST_P()
|
D | OringDurationTracker_test.cpp | 501 EXPECT_EQ(anomalyTracker->getSumOverPastBuckets(eventKey), (long long)(bucketSizeNs)); in TEST()
|
/packages/modules/StatsD/statsd/src/anomaly/ |
D | AnomalyTracker.cpp | 189 int64_t AnomalyTracker::getSumOverPastBuckets(const MetricDimensionKey& key) const { in getSumOverPastBuckets() function in android::os::statsd::AnomalyTracker 206 getSumOverPastBuckets(key) + currentBucketValue > mAlert.trigger_if_sum_gt(); in detectAnomaly()
|
D | AnomalyTracker.h | 89 int64_t getSumOverPastBuckets(const MetricDimensionKey& key) const;
|
/packages/modules/StatsD/statsd/src/metrics/duration_helper/ |
D | OringDurationTracker.cpp | 372 int64_t pastNs = currentStateBucketPastNs + anomalyTracker.getSumOverPastBuckets(mEventKey); in predictAnomalyTimestampNs()
|