| 113 | } |
| 114 | |
| 115 | void Statistics::processEvent(String const& name, Json const& fields) { |
| 116 | if (m_service) |
| 117 | m_service->reportEvent(name, fields); |
| 118 | Logger::debug("Event {} {}", name, fields); |
| 119 | |
| 120 | auto statisticsDatabase = Root::singleton().statisticsDatabase(); |
| 121 | if (auto const& event = statisticsDatabase->event(name)) { |
| 122 | runStatScript(event->scripts, event->config, "event", name, fields); |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | void Statistics::setStat(String const& name, String const& type, Json const& value) { |
| 127 | Logger::debug("Stat {} ({}) : {}", name, type, value); |
nothing calls this directly
no test coverage detected