Lines Matching refs:second
175 it->second->deletion_time_sec = nowTimeSec; in noteConfigRemovedInternalLocked()
176 addToIceBoxLocked(it->second); in noteConfigRemovedInternalLocked()
189 it->second->reset_time_sec = getWallClockSec(); in noteConfigResetInternalLocked()
218 if (it->second->broadcast_sent_time_sec.size() == kMaxTimestampCount) { in noteBroadcastSent()
219 it->second->broadcast_sent_time_sec.pop_front(); in noteBroadcastSent()
221 it->second->broadcast_sent_time_sec.push_back(timeSec); in noteBroadcastSent()
235 auto& vec = activated ? it->second->activation_time_sec in noteActiveStatusChanged()
236 : it->second->deactivation_time_sec; in noteActiveStatusChanged()
283 if (it->second->data_drop_time_sec.size() == kMaxTimestampCount) { in noteDataDropped()
284 it->second->data_drop_time_sec.pop_front(); in noteDataDropped()
285 it->second->data_drop_bytes.pop_front(); in noteDataDropped()
287 it->second->data_drop_time_sec.push_back(timeSec); in noteDataDropped()
288 it->second->data_drop_bytes.push_back(totalBytes); in noteDataDropped()
303 if (it->second->dump_report_stats.size() == kMaxTimestampCount) { in noteMetricsReportSent()
304 it->second->dump_report_stats.pop_front(); in noteMetricsReportSent()
306 it->second->dump_report_stats.push_back(std::make_pair(timeSec, num_bytes)); in noteMetricsReportSent()
337 auto& conditionSizeMap = statsIt->second->condition_stats; in noteConditionDimensionSize()
350 auto& metricsDimensionMap = statsIt->second->metric_stats; in noteMetricDimensionSize()
364 auto& metricsDimensionMap = statsIt->second->metric_dimension_in_condition_stats; in noteMetricDimensionInConditionSize()
377 statsIt->second->matcher_stats[id]++; in noteMatcherMatched()
386 statsIt->second->alert_stats[id]++; in noteAnomalyDeclared()
556 return atomMetricStatsIter->second; in getAtomMetricStats()
559 return emplaceResult.first->second; in getAtomMetricStats()
581 config.second->broadcast_sent_time_sec.clear(); in resetInternalLocked()
582 config.second->activation_time_sec.clear(); in resetInternalLocked()
583 config.second->deactivation_time_sec.clear(); in resetInternalLocked()
584 config.second->data_drop_time_sec.clear(); in resetInternalLocked()
585 config.second->data_drop_bytes.clear(); in resetInternalLocked()
586 config.second->dump_report_stats.clear(); in resetInternalLocked()
587 config.second->annotations.clear(); in resetInternalLocked()
588 config.second->matcher_stats.clear(); in resetInternalLocked()
589 config.second->condition_stats.clear(); in resetInternalLocked()
590 config.second->metric_stats.clear(); in resetInternalLocked()
591 config.second->metric_dimension_in_condition_stats.clear(); in resetInternalLocked()
592 config.second->alert_stats.clear(); in resetInternalLocked()
595 pullStats.second.totalPull = 0; in resetInternalLocked()
596 pullStats.second.totalPullFromCache = 0; in resetInternalLocked()
597 pullStats.second.avgPullTimeNs = 0; in resetInternalLocked()
598 pullStats.second.maxPullTimeNs = 0; in resetInternalLocked()
599 pullStats.second.numPullTime = 0; in resetInternalLocked()
600 pullStats.second.avgPullDelayNs = 0; in resetInternalLocked()
601 pullStats.second.maxPullDelayNs = 0; in resetInternalLocked()
602 pullStats.second.numPullDelay = 0; in resetInternalLocked()
603 pullStats.second.dataError = 0; in resetInternalLocked()
604 pullStats.second.pullTimeout = 0; in resetInternalLocked()
605 pullStats.second.pullExceedMaxDelay = 0; in resetInternalLocked()
606 pullStats.second.registeredCount = 0; in resetInternalLocked()
607 pullStats.second.unregisteredCount = 0; in resetInternalLocked()
660 auto& configStats = pair.second; in dumpStats()
670 annotation.second); in dumpStats()
698 (long long)dump.second); in dumpStats()
701 for (const auto& stats : pair.second->matcher_stats) { in dumpStats()
702 dprintf(out, "matcher %lld matched %d times\n", (long long)stats.first, stats.second); in dumpStats()
705 for (const auto& stats : pair.second->condition_stats) { in dumpStats()
707 stats.second); in dumpStats()
710 for (const auto& stats : pair.second->condition_stats) { in dumpStats()
712 stats.second); in dumpStats()
715 for (const auto& stats : pair.second->alert_stats) { in dumpStats()
716 dprintf(out, "alert %lld declared %d times\n", (long long)stats.first, stats.second); in dumpStats()
729 dprintf(out, "Atom %lu->%d\n", (unsigned long)pair.first, pair.second); in dumpStats()
742 (int)pair.first, (long)pair.second.totalPull, (long)pair.second.totalPullFromCache, in dumpStats()
743 (long)pair.second.pullFailed, (long)pair.second.minPullIntervalSec, in dumpStats()
744 (long long)pair.second.avgPullTimeNs, (long long)pair.second.maxPullTimeNs, in dumpStats()
745 (long long)pair.second.avgPullDelayNs, (long long)pair.second.maxPullDelayNs, in dumpStats()
746 pair.second.dataError, pair.second.pullTimeout, pair.second.pullExceedMaxDelay, in dumpStats()
747 pair.second.registeredCount, pair.second.unregisteredCount); in dumpStats()
784 for (const auto& guardrailHitTime : pair.second) { in dumpStats()
847 (long long)dump.second); in addConfigStatsToProto()
855 proto->write(FIELD_TYPE_INT32 | FIELD_ID_CONFIG_STATS_ANNOTATION_INT32, annotation.second); in addConfigStatsToProto()
863 proto->write(FIELD_TYPE_INT32 | FIELD_ID_MATCHER_STATS_COUNT, pair.second); in addConfigStatsToProto()
871 proto->write(FIELD_TYPE_INT32 | FIELD_ID_CONDITION_STATS_COUNT, pair.second); in addConfigStatsToProto()
879 proto->write(FIELD_TYPE_INT32 | FIELD_ID_METRIC_STATS_COUNT, pair.second); in addConfigStatsToProto()
886 proto->write(FIELD_TYPE_INT32 | FIELD_ID_METRIC_STATS_COUNT, pair.second); in addConfigStatsToProto()
894 proto->write(FIELD_TYPE_INT32 | FIELD_ID_ALERT_STATS_COUNT, pair.second); in addConfigStatsToProto()
913 addConfigStatsToProto(*(pair.second), &proto); in dumpStats()
931 proto.write(FIELD_TYPE_INT32 | FIELD_ID_ATOM_STATS_COUNT, pair.second); in dumpStats()
997 for (const auto& guardrailHitTime : pair.second) { in dumpStats()