public class FUCounterUsageLogger
extends java.lang.Object
Use it to record IDE events e.g. invoked action, opened dialog.
logEvent(Project, String, String),
logEvent(Project, String, String, FeatureUsageData),
logEvent(String, String) or
logEvent(String, String, FeatureUsageData);
<statistics.counterUsagesCollector groupId="ID" version="1"/>;SensitiveDataValidator;com.intellij.internal.statistic.actions.localWhitelist.AddTestGroupToLocalWhitelistAction
com.intellij.internal.statistic.actions.ShowStatisticsEventLogAction
ApplicationUsagesCollector,
ProjectUsagesCollector| Constructor and Description |
|---|
FUCounterUsageLogger() |
| Modifier and Type | Method and Description |
|---|---|
static FUCounterUsageLogger |
getInstance() |
void |
logEvent(Project project,
java.lang.String groupId,
java.lang.String eventId)
Records new project-wide event without context.
|
void |
logEvent(Project project,
java.lang.String groupId,
java.lang.String eventId,
FeatureUsageData data)
Records new project-wide event with context.
|
void |
logEvent(java.lang.String groupId,
java.lang.String eventId)
Records new application-wide event without context.
|
void |
logEvent(java.lang.String groupId,
java.lang.String eventId,
FeatureUsageData data)
Records new application-wide event with context information.
|
void |
logRegisteredGroups() |
void |
register(FeatureUsageGroup group)
Deprecated.
Don't call this method directly, register counter group in XML as
|
public static FUCounterUsageLogger getInstance()
@Deprecated public void register(FeatureUsageGroup group)
public void logRegisteredGroups()
public void logEvent(Project project, java.lang.String groupId, java.lang.String eventId)
logEvent(Project, String, String, FeatureUsageData),
useful to report structured events.project - shows in which project event was invoked, useful to separate events from two simultaneously opened projects.groupId - is used to simplify access to events, e.g. 'dialogs', 'intentions'.eventId - should be a verb because it shows which action happened, e.g. 'dialog.shown', 'project.opened'.logEvent(Project, String, String, FeatureUsageData)public void logEvent(Project project, java.lang.String groupId, java.lang.String eventId, FeatureUsageData data)
project - shows in which project event was invoked, useful to separate events from two simultaneously opened projects.groupId - is used to simplify access to events, e.g. 'dialogs', 'intentions'.eventId - should be a verb because it shows which action happened, e.g. 'dialog.shown', 'project.opened'.data - information about event context or related "items", e.g. "input_event":"Alt+Enter", "place":"MainMenu".public void logEvent(java.lang.String groupId,
java.lang.String eventId)
logEvent(String, String, FeatureUsageData),
useful to report structured events.logEvent(Project, String, String),
useful to separate events from two simultaneously opened projects.groupId - is used to simplify access to events, e.g. 'dialogs', 'intentions'.eventId - should be a verb because it shows which action happened, e.g. 'dialog.shown', 'project.opened'.logEvent(String, String, FeatureUsageData),
logEvent(Project, String, String, FeatureUsageData)public void logEvent(java.lang.String groupId,
java.lang.String eventId,
FeatureUsageData data)
logEvent(Project, String, String, FeatureUsageData),
useful to separate events from two simultaneously opened projects.groupId - is used to simplify access to events, e.g. 'dialogs', 'intentions'.eventId - should be a verb because it shows which action happened, e.g. 'dialog.shown', 'project.opened'.data - information about event context or related "items", e.g. "input_event":"Alt+Enter", "place":"MainMenu".logEvent(Project, String, String, FeatureUsageData)