Class ApiEventKt

  • All Implemented Interfaces:

    
    public final class ApiEventKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Boolean shouldSkipEvent(ApiEvent $self) Determine if this event should be skipped.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • shouldSkipEvent

         final static Boolean shouldSkipEvent(ApiEvent $self)

        Determine if this event should be skipped. If not, it should be sent to the API. To determine whether we should send API events for a given user ID, we will use the following rule: If the number represented in hexadecimal by the last two characters of the user ID, divided by 255, is lower than or equal to (<=) the sampling rate, then the user is a member of our sample and we should send the events to the API.