Home
last modified time | relevance | path

Searched refs:getSumOverPastBuckets (Results 1 – 8 of 8) sorted by relevance

/packages/modules/StatsD/statsd/tests/anomaly/
DAnomalyTracker_test.cpp164 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/
DCountMetricProducer_test.cpp280 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()
DGaugeMetricProducer_test.cpp250 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()
DDurationMetricProducer_test.cpp402 anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST_P()
DOringDurationTracker_test.cpp501 EXPECT_EQ(anomalyTracker->getSumOverPastBuckets(eventKey), (long long)(bucketSizeNs)); in TEST()
/packages/modules/StatsD/statsd/src/anomaly/
DAnomalyTracker.cpp189 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()
DAnomalyTracker.h89 int64_t getSumOverPastBuckets(const MetricDimensionKey& key) const;
/packages/modules/StatsD/statsd/src/metrics/duration_helper/
DOringDurationTracker.cpp372 int64_t pastNs = currentStateBucketPastNs + anomalyTracker.getSumOverPastBuckets(mEventKey); in predictAnomalyTimestampNs()