Add FUS collector for Migration tool

This commit is contained in:
Anton Yalyshev
2020-04-12 16:02:08 +03:00
parent fd9bec81cf
commit c8fe842508
9 changed files with 42 additions and 1 deletions
@@ -23,7 +23,8 @@ enum class FUSEventGroups(groupIdSuffix: String, val events: Set<String> = setOf
Editor("ide.editor"),
Settings("ide.settings"),
GradlePerformance("gradle.performance"),
NewWizard("ide.new.wizard");
NewWizard("ide.new.wizard"),
MigrationTool("ide.migrationTool");
val GROUP_ID: String = "kotlin.$groupIdSuffix"
}
@@ -0,0 +1,21 @@
/*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.statistics
object MigrationToolFUSCollector {
fun logNotification(oldVersions: Map<String, String>) {
KotlinFUSLogger.log(FUSEventGroups.MigrationTool, Events.Notification.toString(), oldVersions)
}
fun logRun() {
KotlinFUSLogger.log(FUSEventGroups.MigrationTool, Events.Run.toString())
}
enum class Events {
Notification, Run
}
}