Home | History | Annotate | Download | only in anomaly

Lines Matching defs:AnomalyTracker

20 #include "AnomalyTracker.h"
34 AnomalyTracker::AnomalyTracker(const Alert& alert, const ConfigKey& configKey)
36 VLOG("AnomalyTracker() called");
38 ALOGE("Cannot create AnomalyTracker with %lld buckets", (long long)mAlert.num_buckets());
42 ALOGE("Cannot create AnomalyTracker without threshold");
48 AnomalyTracker::~AnomalyTracker() {
49 VLOG("~AnomalyTracker() called");
52 void AnomalyTracker::resetStorage() {
60 size_t AnomalyTracker::index(int64_t bucketNum) const {
67 void AnomalyTracker::advanceMostRecentBucketTo(const int64_t& bucketNum) {
93 void AnomalyTracker::addPastBucket(const MetricDimensionKey& key,
123 void AnomalyTracker::addPastBucket(std::shared_ptr<DimToValMap> bucket,
142 void AnomalyTracker::subtractBucketFromSum(const shared_ptr<DimToValMap>& bucket) {
152 void AnomalyTracker::subtractValueFromSum(const MetricDimensionKey& key,
164 void AnomalyTracker::addBucketToSum(const shared_ptr<DimToValMap>& bucket) {
174 int64_t AnomalyTracker::getPastBucketValue(const MetricDimensionKey& key,
190 int64_t AnomalyTracker::getSumOverPastBuckets(const MetricDimensionKey& key) const {
198 bool AnomalyTracker::detectAnomaly(const int64_t& currentBucketNum,
210 void AnomalyTracker::declareAnomaly(const int64_t& timestampNs, const MetricDimensionKey& key) {
238 void AnomalyTracker::detectAndDeclareAnomaly(const int64_t& timestampNs,
247 bool AnomalyTracker::isInRefractoryPeriod(const int64_t& timestampNs,
256 void AnomalyTracker::informSubscribers(const MetricDimensionKey& key) {