public class RunConfigurationTypeUsagesCollector extends ProjectUsagesCollector
Modifier and Type | Class and Description |
---|---|
static class |
RunConfigurationTypeUsagesCollector.RunConfigurationUtilValidator |
Constructor and Description |
---|
RunConfigurationTypeUsagesCollector() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getGroupId() |
CancellablePromise<java.util.Set<MetricEvent>> |
getMetrics(Project project,
ProgressIndicator indicator)
Implement this method to calculate metrics.
|
int |
getVersion()
Increment collector version if any changes in collector logic were implemented.
|
static FeatureUsageData |
newFeatureUsageData(ConfigurationType configuration,
ConfigurationFactory factory) |
getData, getExtensions, getMetrics, getUsages, requiresReadAccess
getExtensions, isValid
public java.lang.String getGroupId()
getGroupId
in class FeatureUsagesCollector
public int getVersion()
FeatureUsagesCollector
getVersion
in class FeatureUsagesCollector
public CancellablePromise<java.util.Set<MetricEvent>> getMetrics(Project project, ProgressIndicator indicator)
ProjectUsagesCollector
MetricEvent#eventId
should indicate what we measure, e.g. "configured.vcs", "module.jdk".MetricEvent#data
should contain the value of the measurement, e.g. {"name":"Git"}, {"version":"1.8", "vendor":"OpenJdk"}getMetrics
in class ProjectUsagesCollector
public static FeatureUsageData newFeatureUsageData(ConfigurationType configuration, ConfigurationFactory factory)