in src/main/kotlin/com/intellij/internal/statistic/eventLog/StatisticsEventEscaper.kt [165:190]
fun newLogEvent(
session: String,
build: String,
bucket: String,
time: Long,
groupId: String,
groupVersion: String,
recorderVersion: String,
eventId: String,
isState: Boolean = false,
eventData: Map<String, Any> = emptyMap(),
count: Int = 1
): LogEvent {
val escapedData = StatisticsEventEscaper.escapeEventData(eventData)
val event = LogEventAction(StatisticsEventEscaper.escapeEventIdOrFieldValue(eventId), isState, escapedData, count)
val group = LogEventGroup(StatisticsEventEscaper.escape(groupId), StatisticsEventEscaper.escape(groupVersion))
return LogEvent(
StatisticsEventEscaper.escape(session),
StatisticsEventEscaper.escape(build),
StatisticsEventEscaper.escape(bucket),
time,
group,
StatisticsEventEscaper.escape(recorderVersion),
event
)
}