// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.internal.statistic.service.fus.collectors;

import com.intellij.openapi.extensions.AbstractExtensionPointBean;
import com.intellij.openapi.extensions.ExtensionPointName;
import com.intellij.util.xmlb.annotations.Attribute;
import org.jetbrains.annotations.Nullable;

public class CounterUsageCollectorEP extends AbstractExtensionPointBean {
  public static final ExtensionPointName<CounterUsageCollectorEP> EP_NAME =
    ExtensionPointName.create("com.intellij.statistics.counterUsagesCollector");

  @Attribute("groupId")
  public String groupID;

  @Attribute("version")
  public int version;

  @Attribute("implementationClass")
  public String implementationClass;

  @Nullable
  public String getGroupId() {
    return groupID;
  }
}

// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.internal.statistic.service.fus.collectors;

import com.intellij.openapi.extensions.AbstractExtensionPointBean;
import com.intellij.openapi.extensions.ExtensionPointName;
import com.intellij.util.xmlb.annotations.Attribute;
import org.jetbrains.annotations.Nullable;

public class CounterUsageCollectorEP extends AbstractExtensionPointBean {
  public static final ExtensionPointName<CounterUsageCollectorEP> EP_NAME =
    ExtensionPointName.create("com.intellij.statistics.counterUsagesCollector");

  @Attribute("groupId")
  public String groupID;

  @Attribute("version")
  public int version = 1;

  @Attribute("implementationClass")
  public String implementationClass;

  @Nullable
  public String getGroupId() {
    return groupID;
  }
}

set default counter group version to 1