com.snowplowanalytics.snowplow.enrich.common.enrichments

EventEnrichments

object EventEnrichments

Holds the enrichments related to events.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EventEnrichments
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. val extractEventType: (String, String) ⇒ ValidatedString

    Turns an event code into a valid event type, e.

    Turns an event code into a valid event type, e.g. "pv" -> "page_view". See the Tracker Protocol for details:

    https://github.com/snowplow/snowplow/wiki/snowplow-tracker-protocol#wiki-event2

    returns

    the event type, or an error message if not recognised, boxed in a Scalaz Validation

  11. val extractTimestamp: (String, String) ⇒ ValidatedString

    Extracts the timestamp from the format as laid out in the Tracker Protocol:

    Extracts the timestamp from the format as laid out in the Tracker Protocol:

    https://github.com/snowplow/snowplow/wiki/snowplow-tracker-protocol#wiki-common-params

    returns

    a Tuple of two Strings (date and time), or an error message if the format was invalid

  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def formatCollectorTstamp(collectorTstamp: Option[DateTime]): Validation[String, String]

    Make a collector_tstamp Redshift-compatible

    Make a collector_tstamp Redshift-compatible

    returns

    Validation boxing the result of making the timestamp Redshift-compatible

  14. def fromTimestamp(timestamp: String): DateTime

    Converts a Redshift-compatible timestamp String back into a Joda DateTime.

    Converts a Redshift-compatible timestamp String back into a Joda DateTime.

    timestamp

    The timestamp String to convert

    returns

    the Joda DateTime

  15. def generateEventId(): String

    Returns a unique event ID.

    Returns a unique event ID. The event ID is generated as a type 4 UUID, then converted to a String.

    () on the function signature because it's not pure

    returns

    the unique event ID

  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. def getDerivedTimestamp(dvceSentTstamp: Option[String], dvceCreatedTstamp: Option[String], collectorTstamp: Option[String], trueTstamp: Option[String]): Validation[String, Option[String]]

    Calculate the derived timestamp

    Calculate the derived timestamp

    If dvce_sent_tstamp and dvce_created_tstamp are not null and the former is after the latter, add the difference between the two to the collector_tstamp. Otherwise just return the collector_tstamp.

    TODO: given missing collectorTstamp is invalid, consider updating this signature to ..., collectorTstamp: String): Validation[String, String] and making the call to this function in the EnrichmentManager dependent on a Success(collectorTstamp).

    dvceSentTstamp
    dvceCreatedTstamp
    collectorTstamp
    returns

    derived timestamp

  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  24. def toString(): String

    Definition Classes
    AnyRef → Any
  25. def toTimestamp(datetime: DateTime): String

    Converts a Joda DateTime into a Redshift-compatible timestamp String.

    Converts a Joda DateTime into a Redshift-compatible timestamp String.

    datetime

    The Joda DateTime to convert to a timestamp String

    returns

    the timestamp String

  26. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped