Object

com.snowplowanalytics.snowplow.enrich.common.enrichments

EventEnrichments

Related Doc: package enrichments

Permalink

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
Visibility
  1. Public
  2. All

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

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

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

    Permalink

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

    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

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

    Permalink

    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

  10. def finalize(): Unit

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

    Permalink

    Make a collector_tstamp Redshift-compatible

    Make a collector_tstamp Redshift-compatible

    returns

    Validation boxing the result of making the timestamp Redshift-compatible

  12. def fromTimestamp(timestamp: String): DateTime

    Permalink

    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

  13. def generateEventId(): String

    Permalink

    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

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

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

    Permalink

    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).

    returns

    derived timestamp

  16. def hashCode(): Int

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

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

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

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

    Permalink

    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

  24. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped