Class Event.Custom

    • Constructor Detail

      • Custom

        public Custom​(long timestamp,
                      java.lang.String key,
                      LDUser user,
                      LDValue data,
                      java.lang.Double metricValue)
        Constructs a custom event.
        Parameters:
        timestamp - the timestamp in milliseconds
        key - the event key
        user - the user associated with the event
        data - custom data if any (null is the same as LDValue.ofNull())
        metricValue - custom metric value if any
        Since:
        4.8.0
    • Method Detail

      • getKey

        public java.lang.String getKey()
        The custom event key.
        Returns:
        the event key
      • getData

        public LDValue getData()
        The custom data associated with the event, if any.
        Returns:
        the event data (null is equivalent to LDValue.ofNull())
      • getMetricValue

        public java.lang.Double getMetricValue()
        The numeric metric value associated with the event, if any.
        Returns:
        the metric value or null
      • getContextKind

        public java.lang.String getContextKind()
        The context kind of the user that generated this event
        Returns:
        the context kind