Lines Matching refs:int64_t
57 void addPastBucket(const std::shared_ptr<DimToValMap>& bucket, const int64_t bucketNum);
63 void addPastBucket(const MetricDimensionKey& key, int64_t bucketValue, int64_t bucketNum);
68 bool detectAnomaly(int64_t currBucketNum, const MetricDimensionKey& key,
69 int64_t currentBucketValue);
72 void declareAnomaly(int64_t timestampNs, int64_t metricId, const MetricDimensionKey& key,
73 int64_t metricValue);
79 void detectAndDeclareAnomaly(int64_t timestampNs, int64_t currBucketNum, int64_t metricId,
80 const MetricDimensionKey& key, int64_t currentBucketValue);
88 int64_t getSumOverPastBuckets(const MetricDimensionKey& key) const;
91 int64_t getPastBucketValue(const MetricDimensionKey& key, int64_t bucketNum) const;
94 inline int64_t getAnomalyThreshold() const { in getAnomalyThreshold()
115 virtual void startAlarm(const MetricDimensionKey& dimensionKey, int64_t eventTime) { in startAlarm()
122 virtual void stopAlarm(const MetricDimensionKey& dimensionKey, int64_t timestampNs) { in stopAlarm()
134 int64_t timestampNs, in informAlarmsFired()
142 int64_t currentWallClockTimeNs,
143 int64_t systemElapsedTimeNs, metadata::AlertMetadata* alertMetadata);
147 int64_t currentWallClockTimeNs,
148 int64_t systemElapsedTimeNs);
180 int64_t mMostRecentBucketNum = -1;
191 void advanceMostRecentBucketTo(int64_t bucketNum);
201 void subtractValueFromSum(const MetricDimensionKey& key, int64_t bucketValue);
204 bool isInRefractoryPeriod(int64_t timestampNs, const MetricDimensionKey& key) const;
208 size_t index(int64_t bucketNum) const;
214 void informSubscribers(const MetricDimensionKey& key, int64_t metricId, int64_t metricValue);