Home
last modified time | relevance | path

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

/packages/modules/StatsD/statsd/tests/anomaly/
DAnomalyTracker_test.cpp53 std::shared_ptr<DimToValMap> bucket) { in AddValueToBucket()
59 std::shared_ptr<DimToValMap> MockBucket( in MockBucket()
61 std::shared_ptr<DimToValMap> bucket = std::make_shared<DimToValMap>(); in MockBucket()
67 int64_t getBucketValue(const std::shared_ptr<DimToValMap>& bucket, in getBucketValue()
78 const std::shared_ptr<DimToValMap>& currentBucket, in detectAnomaliesPass()
96 const std::shared_ptr<DimToValMap>& bucket, int64_t eventTimestamp) { in detectAndDeclareAnomalies()
145 std::shared_ptr<DimToValMap> bucket0 = MockBucket({{keyA, 1}, {keyB, 2}, {keyC, 1}}); in TEST()
146 std::shared_ptr<DimToValMap> bucket1 = MockBucket({{keyA, 1}}); in TEST()
147 std::shared_ptr<DimToValMap> bucket2 = MockBucket({{keyB, 1}}); in TEST()
148 std::shared_ptr<DimToValMap> bucket3 = MockBucket({{keyA, 2}}); in TEST()
[all …]
/packages/modules/StatsD/statsd/src/anomaly/
DAnomalyTracker.h57 void addPastBucket(const std::shared_ptr<DimToValMap>& bucket, const int64_t bucketNum);
173 std::vector<shared_ptr<DimToValMap>> mPastBuckets;
177 DimToValMap mSumOverPastBuckets;
194 void addBucketToSum(const shared_ptr<DimToValMap>& bucket);
198 void subtractBucketFromSum(const shared_ptr<DimToValMap>& bucket);
DAnomalyTracker.cpp103 std::shared_ptr<DimToValMap>& bucket = mPastBuckets[bucketIndex]; in addPastBucket()
115 std::shared_ptr<DimToValMap> bucket = std::make_shared<DimToValMap>(); in addPastBucket()
121 void AnomalyTracker::addPastBucket(const std::shared_ptr<DimToValMap>& bucket, in addPastBucket()
140 void AnomalyTracker::subtractBucketFromSum(const shared_ptr<DimToValMap>& bucket) { in subtractBucketFromSum()
161 void AnomalyTracker::addBucketToSum(const shared_ptr<DimToValMap>& bucket) { in addBucketToSum()
/packages/modules/StatsD/statsd/src/metrics/
DCountMetricProducer.h126 std::shared_ptr<DimToValMap> mCurrentSlicedCounter = std::make_shared<DimToValMap>();
130 std::shared_ptr<DimToValMap> mCurrentFullCounters = std::make_shared<DimToValMap>();
DCountMetricProducer.cpp486 mCurrentFullCounters = std::make_shared<DimToValMap>(); in flushCurrentBucketLocked()
504 mCurrentSlicedCounter = std::make_shared<DimToValMap>(); in flushCurrentBucketLocked()
DGaugeMetricProducer.h203 std::shared_ptr<DimToValMap> mCurrentSlicedBucketForAnomaly;
DGaugeMetricProducer.cpp110 mCurrentSlicedBucketForAnomaly = std::make_shared<DimToValMap>();
708 mCurrentSlicedBucketForAnomaly = std::make_shared<DimToValMap>(); in flushCurrentBucketLocked()
/packages/modules/StatsD/statsd/src/
Dstats_util.h44 typedef std::unordered_map<MetricDimensionKey, int64_t> DimToValMap; typedef