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, requiresReadAccessgetExtensions, isValidpublic java.lang.String getGroupId()
getGroupId in class FeatureUsagesCollectorpublic int getVersion()
FeatureUsagesCollectorgetVersion in class FeatureUsagesCollectorpublic CancellablePromise<java.util.Set<MetricEvent>> getMetrics(Project project, ProgressIndicator indicator)
ProjectUsagesCollectorMetricEvent#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 ProjectUsagesCollectorpublic static FeatureUsageData newFeatureUsageData(ConfigurationType configuration, ConfigurationFactory factory)