/frameworks/base/cmds/statsd/tests/e2e/ |
D | Anomaly_duration_sum_e2e_test.cpp | 82 MetricDimensionKey dimensionKey( variable 123 anomalyTracker->getAlarmTimestampSec(dimensionKey)); in TEST() 124 EXPECT_EQ(0u, anomalyTracker->getRefractoryPeriodEndsSec(dimensionKey)); in TEST() 129 EXPECT_EQ(0u, anomalyTracker->getAlarmTimestampSec(dimensionKey)); in TEST() 130 EXPECT_EQ(0u, anomalyTracker->getRefractoryPeriodEndsSec(dimensionKey)); in TEST() 136 anomalyTracker->getAlarmTimestampSec(dimensionKey)); in TEST() 137 EXPECT_EQ(0u, anomalyTracker->getRefractoryPeriodEndsSec(dimensionKey)); in TEST() 143 EXPECT_EQ(0u, anomalyTracker->getAlarmTimestampSec(dimensionKey)); in TEST() 145 anomalyTracker->getRefractoryPeriodEndsSec(dimensionKey)); in TEST() 153 const int64_t alarmFiredTimestampSec0 = anomalyTracker->getAlarmTimestampSec(dimensionKey); in TEST() [all …]
|
/frameworks/base/cmds/statsd/src/anomaly/ |
D | DurationAnomalyTracker.cpp | 38 void DurationAnomalyTracker::startAlarm(const MetricDimensionKey& dimensionKey, in startAlarm() argument 42 if (isInRefractoryPeriod(timestampNs, dimensionKey)) { in startAlarm() 47 auto itr = mAlarms.find(dimensionKey); in startAlarm() 53 mAlarms[dimensionKey] = alarm; in startAlarm() 59 void DurationAnomalyTracker::stopAlarm(const MetricDimensionKey& dimensionKey, in stopAlarm() argument 61 const auto itr = mAlarms.find(dimensionKey); in stopAlarm() 68 declareAnomaly(timestampNs, mAlert.metric_id(), dimensionKey, in stopAlarm() 75 mAlarms.erase(dimensionKey); in stopAlarm()
|
D | DurationAnomalyTracker.h | 37 void startAlarm(const MetricDimensionKey& dimensionKey, const int64_t& eventTime); 42 void stopAlarm(const MetricDimensionKey& dimensionKey, const int64_t& timestampNs); 57 uint32_t getAlarmTimestampSec(const MetricDimensionKey& dimensionKey) const override { in getAlarmTimestampSec() argument 58 auto it = mAlarms.find(dimensionKey); in getAlarmTimestampSec()
|
D | subscriber_util.cpp | 28 void triggerSubscribers(int64_t ruleId, int64_t metricId, const MetricDimensionKey& dimensionKey, in triggerSubscribers() argument 48 dimensionKey, metricValue, configKey)) { in triggerSubscribers() 60 dimensionKey); in triggerSubscribers()
|
D | subscriber_util.h | 28 const MetricDimensionKey& dimensionKey, int64_t metricValue,
|
D | AnomalyTracker.h | 119 virtual uint32_t getAlarmTimestampSec(const MetricDimensionKey& dimensionKey) const { in getAlarmTimestampSec() argument
|
/frameworks/base/cmds/statsd/src/subscriber/ |
D | IncidentdReporter.cpp | 60 void getProtoData(const int64_t& rule_id, int64_t metricId, const MetricDimensionKey& dimensionKey, in getProtoData() argument 83 writeDimensionToProto(dimensionKey.getDimensionKeyInWhat(), nullptr, &headerProto); in getProtoData() 88 writeDimensionToProto(dimensionKey.getDimensionKeyInCondition(), nullptr, &headerProto); in getProtoData() 100 for (const auto& dim : dimensionKey.getDimensionKeyInWhat().getValues()) { in getProtoData() 108 for (const auto& dim : dimensionKey.getDimensionKeyInCondition().getValues()) { in getProtoData() 137 const MetricDimensionKey& dimensionKey, int64_t metricValue, in GenerateIncidentReport() argument 148 getProtoData(rule_id, metricId, dimensionKey, metricValue, configKey, in GenerateIncidentReport()
|
D | IncidentdReporter.h | 31 const MetricDimensionKey& dimensionKey, int64_t metricValue,
|
/frameworks/base/cmds/statsd/src/condition/ |
D | SimpleConditionTracker.cpp | 390 HashableDimensionKey dimensionKey; in isConditionMet() local 391 filterValues(dimensionFields, slice.first.getValues(), &dimensionKey); in isConditionMet() 392 dimensionsKeySet.insert(dimensionKey); in isConditionMet() 408 HashableDimensionKey dimensionKey; in isConditionMet() local 409 filterValues(dimensionFields, startedCountIt->first.getValues(), &dimensionKey); in isConditionMet() 410 dimensionsKeySet.insert(dimensionKey); in isConditionMet() 446 HashableDimensionKey dimensionKey; in getMetConditionDimension() local 447 filterValues(dimensionFields, slice.first.getValues(), &dimensionKey); in getMetConditionDimension() 448 dimensionsKeySet.insert(dimensionKey); in getMetConditionDimension()
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | CountMetricProducer.cpp | 186 const MetricDimensionKey& dimensionKey = counter.first; in onDumpReportLocked() local 187 VLOG(" dimension key %s", dimensionKey.toString().c_str()); in onDumpReportLocked() 196 writeDimensionToProto(dimensionKey.getDimensionKeyInWhat(), str_set, protoOutput); in onDumpReportLocked() 199 if (dimensionKey.hasDimensionKeyInCondition()) { in onDumpReportLocked() 202 writeDimensionToProto(dimensionKey.getDimensionKeyInCondition(), in onDumpReportLocked() 207 writeDimensionLeafNodesToProto(dimensionKey.getDimensionKeyInWhat(), in onDumpReportLocked() 209 if (dimensionKey.hasDimensionKeyInCondition()) { in onDumpReportLocked() 210 writeDimensionLeafNodesToProto(dimensionKey.getDimensionKeyInCondition(), in onDumpReportLocked()
|
D | DurationMetricProducer.cpp | 542 const MetricDimensionKey& dimensionKey = pair.first; in onDumpReportLocked() local 543 VLOG(" dimension key %s", dimensionKey.toString().c_str()); in onDumpReportLocked() 552 writeDimensionToProto(dimensionKey.getDimensionKeyInWhat(), str_set, protoOutput); in onDumpReportLocked() 555 if (dimensionKey.hasDimensionKeyInCondition()) { in onDumpReportLocked() 558 writeDimensionToProto(dimensionKey.getDimensionKeyInCondition(), in onDumpReportLocked() 563 writeDimensionLeafNodesToProto(dimensionKey.getDimensionKeyInWhat(), in onDumpReportLocked() 565 if (dimensionKey.hasDimensionKeyInCondition()) { in onDumpReportLocked() 566 writeDimensionLeafNodesToProto(dimensionKey.getDimensionKeyInCondition(), in onDumpReportLocked() 721 HashableDimensionKey dimensionKey = DEFAULT_DIMENSION_KEY; in handleStartEvent() local 722 filterValues(mInternalDimensions, event.getValues(), &dimensionKey); in handleStartEvent() [all …]
|
D | GaugeMetricProducer.cpp | 231 const MetricDimensionKey& dimensionKey = pair.first; in onDumpReportLocked() local 233 VLOG("Gauge dimension key %s", dimensionKey.toString().c_str()); in onDumpReportLocked() 241 writeDimensionToProto(dimensionKey.getDimensionKeyInWhat(), str_set, protoOutput); in onDumpReportLocked() 244 if (dimensionKey.hasDimensionKeyInCondition()) { in onDumpReportLocked() 247 writeDimensionToProto(dimensionKey.getDimensionKeyInCondition(), in onDumpReportLocked() 252 writeDimensionLeafNodesToProto(dimensionKey.getDimensionKeyInWhat(), in onDumpReportLocked() 254 if (dimensionKey.hasDimensionKeyInCondition()) { in onDumpReportLocked() 255 writeDimensionLeafNodesToProto(dimensionKey.getDimensionKeyInCondition(), in onDumpReportLocked()
|
D | ValueMetricProducer.cpp | 262 const MetricDimensionKey& dimensionKey = pair.first; in onDumpReportLocked() local 263 VLOG(" dimension key %s", dimensionKey.toString().c_str()); in onDumpReportLocked() 271 writeDimensionToProto(dimensionKey.getDimensionKeyInWhat(), str_set, protoOutput); in onDumpReportLocked() 273 if (dimensionKey.hasDimensionKeyInCondition()) { in onDumpReportLocked() 276 writeDimensionToProto(dimensionKey.getDimensionKeyInCondition(), str_set, in onDumpReportLocked() 281 writeDimensionLeafNodesToProto(dimensionKey.getDimensionKeyInWhat(), in onDumpReportLocked() 283 if (dimensionKey.hasDimensionKeyInCondition()) { in onDumpReportLocked() 284 writeDimensionLeafNodesToProto(dimensionKey.getDimensionKeyInCondition(), in onDumpReportLocked()
|