MCPcopy Create free account
hub / github.com/dobin/RedEdr / AnalyzeEventStr

Method AnalyzeEventStr

RedEdr/event_processor.cpp:166–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164
165
166void EventProcessor::AnalyzeEventStr(std::string eventStr) {
167 nlohmann::json j;
168 try
169 {
170 j = nlohmann::json::parse(eventStr);
171 }
172 catch (const nlohmann::json::exception& e)
173 {
174 LOG_A(LOG_WARNING, "JSON Parser Exception msg: %s", e.what());
175 LOG_A(LOG_WARNING, "JSON Parser Exception event: %s", eventStr.c_str());
176 return;
177 }
178
179 AnalyzeEventJson(j);
180}
181
182
183void EventProcessor::AnalyzeNewEvents(std::vector<std::string> events) {

Callers

nothing calls this directly

Calls 3

parseFunction · 0.85
LOG_AFunction · 0.70
whatMethod · 0.45

Tested by

no test coverage detected