/packages/modules/StatsD/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 | 35 void startAlarm(const MetricDimensionKey& dimensionKey, int64_t eventTime) override; 40 void stopAlarm(const MetricDimensionKey& dimensionKey, int64_t timestampNs) override; 56 uint32_t getAlarmTimestampSec(const MetricDimensionKey& dimensionKey) const override { in getAlarmTimestampSec() argument 57 auto it = mAlarms.find(dimensionKey); in getAlarmTimestampSec()
|
D | subscriber_util.cpp | 32 const MetricDimensionKey& dimensionKey, int64_t metricValue, in triggerSubscribers() argument 52 dimensionKey, metricValue, configKey)) { in triggerSubscribers() 69 dimensionKey); in triggerSubscribers()
|
D | AnomalyTracker.h | 115 virtual void startAlarm(const MetricDimensionKey& dimensionKey, int64_t eventTime) { in startAlarm() argument 122 virtual void stopAlarm(const MetricDimensionKey& dimensionKey, int64_t timestampNs) { in stopAlarm() argument 154 virtual uint32_t getAlarmTimestampSec(const MetricDimensionKey& dimensionKey) const { in getAlarmTimestampSec() argument
|
D | subscriber_util.h | 28 const MetricDimensionKey& dimensionKey, int64_t metricValue,
|
/packages/modules/StatsD/statsd/src/subscriber/ |
D | IncidentdReporter.cpp | 57 void getProtoData(const int64_t& rule_id, int64_t metricId, const MetricDimensionKey& dimensionKey, in getProtoData() argument 80 writeDimensionToProto(dimensionKey.getDimensionKeyInWhat(), nullptr, &headerProto); in getProtoData() 95 for (const auto& dim : dimensionKey.getDimensionKeyInWhat().getValues()) { in getProtoData() 127 const MetricDimensionKey& dimensionKey, int64_t metricValue, in GenerateIncidentReport() argument 138 getProtoData(rule_id, metricId, dimensionKey, metricValue, configKey, in GenerateIncidentReport()
|
D | IncidentdReporter.h | 31 const MetricDimensionKey& dimensionKey, int64_t metricValue,
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | DurationMetricProducer.cpp | 552 const MetricDimensionKey& dimensionKey = pair.first; in onDumpReportLocked() local 553 VLOG(" dimension key %s", dimensionKey.toString().c_str()); in onDumpReportLocked() 562 writeDimensionToProto(dimensionKey.getDimensionKeyInWhat(), str_set, protoOutput); in onDumpReportLocked() 565 writeDimensionLeafNodesToProto(dimensionKey.getDimensionKeyInWhat(), in onDumpReportLocked() 569 for (auto state : dimensionKey.getStateValuesKey().getValues()) { in onDumpReportLocked() 709 HashableDimensionKey dimensionKey = DEFAULT_DIMENSION_KEY; in handleStartEvent() local 710 filterValues(mInternalDimensions, eventValues, &dimensionKey); in handleStartEvent() 711 it->second->noteStart(dimensionKey, condition, eventTimeNs, conditionKeys, in handleStartEvent()
|
D | CountMetricProducer.cpp | 263 const MetricDimensionKey& dimensionKey = counter.first; in onDumpReportLocked() local 264 VLOG(" dimension key %s", dimensionKey.toString().c_str()); in onDumpReportLocked() 273 writeDimensionToProto(dimensionKey.getDimensionKeyInWhat(), str_set, protoOutput); in onDumpReportLocked() 276 writeDimensionLeafNodesToProto(dimensionKey.getDimensionKeyInWhat(), in onDumpReportLocked() 280 for (auto state : dimensionKey.getStateValuesKey().getValues()) { in onDumpReportLocked()
|
D | GaugeMetricProducer.cpp | 312 const MetricDimensionKey& dimensionKey = pair.first; in onDumpReportLocked() local 314 VLOG("Gauge dimension key %s", dimensionKey.toString().c_str()); in onDumpReportLocked() 322 writeDimensionToProto(dimensionKey.getDimensionKeyInWhat(), str_set, protoOutput); in onDumpReportLocked() 325 writeDimensionLeafNodesToProto(dimensionKey.getDimensionKeyInWhat(), in onDumpReportLocked()
|
/packages/modules/StatsD/statsd/tests/ |
D | FieldValue_test.cpp | 703 HashableDimensionKey dimensionKey; in TEST() local 704 dimensionKey.addValue(FieldValue(field1, value1)); in TEST() 705 dimensionKey.addValue(FieldValue(field2, value2)); in TEST() 706 dimensionKey.addValue(FieldValue(field3, value3)); in TEST() 707 dimensionKey.addValue(FieldValue(field4, value4)); in TEST() 708 dimensionKey.addValue(FieldValue(field5, value5)); in TEST() 710 StatsDimensionsValueParcel rootParcel = dimensionKey.toStatsDimensionsValueParcel(); in TEST()
|