Class EventGroupRules


  • public final class EventGroupRules
    extends java.lang.Object
    • Method Detail

      • getEventIdRules

        public FUSRule[] getEventIdRules()
      • getEventDataRules

        public java.util.Map<java.lang.String,​FUSRule[]> getEventDataRules()
      • areEventIdRulesDefined

        public boolean areEventIdRulesDefined()
      • areEventDataRulesDefined

        public boolean areEventDataRulesDefined()
      • validateEventData

        public com.intellij.internal.statistic.eventLog.validator.rules.impl.beans.EventDataField validateEventData​(@NotNull
                                                                                                                    @NotNull java.lang.String key,
                                                                                                                    @Nullable
                                                                                                                    @Nullable java.lang.Object data,
                                                                                                                    @NotNull
                                                                                                                    @NotNull EventContext context)
        Returns:
        validated data, incorrect values are replaced with ValidationResultType.getDescription()
      • create

        @NotNull
        public static @NotNull EventGroupRules create​(@NotNull
                                                      @NotNull com.jetbrains.fus.reporting.model.metadata.EventGroupRemoteDescriptors.EventGroupRemoteDescriptor group,
                                                      @NotNull
                                                      @NotNull com.intellij.internal.statistic.eventLog.validator.storage.GlobalRulesHolder globalRulesHolder,
                                                      @NotNull
                                                      @NotNull ValidationSimpleRuleFactory factory,
                                                      @NotNull
                                                      @NotNull java.util.List<java.lang.String> excludedFields)