public class FUStateUsagesLogger
extends java.lang.Object
Called by a scheduler once a day and records IDE/project state.
Don't use it directly unless absolutely necessary.
Implement ApplicationUsagesCollector
or ProjectUsagesCollector
instead.
To record IDE events (e.g. invoked action, opened dialog) use FUCounterUsageLogger
Modifier and Type | Field and Description |
---|---|
static java.lang.Object |
LOCK |
Constructor and Description |
---|
FUStateUsagesLogger() |
Modifier and Type | Method and Description |
---|---|
static FUStateUsagesLogger |
create() |
void |
logApplicationStates() |
void |
logProjectStates(Project project,
ProgressIndicator indicator) |
static void |
logStateEvent(EventLogGroup group,
java.lang.String event,
FeatureUsageData data)
Low-level API to record IDE/project state.
|
static void |
logStateEvents(EventLogGroup group,
java.util.Collection<MetricEvent> events)
Low-level API to record IDE/project state.
|
static FeatureUsageData |
mergeWithEventData(FeatureUsageData groupData,
FeatureUsageData data) |
public static FUStateUsagesLogger create()
public void logProjectStates(Project project, ProgressIndicator indicator)
public void logApplicationStates()
public static FeatureUsageData mergeWithEventData(FeatureUsageData groupData, FeatureUsageData data)
public static void logStateEvent(EventLogGroup group, java.lang.String event, FeatureUsageData data)
Low-level API to record IDE/project state. Using it directly is error-prone because you'll need to think about metric baseline. Don't use it unless absolutely necessary.
Consider using counter events FUCounterUsageLogger
or
state events recorded by a scheduler ApplicationUsagesCollector
or ProjectUsagesCollector
public static void logStateEvents(EventLogGroup group, java.util.Collection<MetricEvent> events)
Low-level API to record IDE/project state. Using it directly is error-prone because you'll need to think about metric baseline. Don't use it unless absolutely necessary.
Consider using counter events FUCounterUsageLogger
or
state events recorded by a scheduler ApplicationUsagesCollector
or ProjectUsagesCollector