Add FUS collector for Migration tool
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user