Object

com.snowplowanalytics.snowplow.enrich.common.adapters.registry

GoogleAnalyticsAdapter

Related Doc: package registry

Permalink

object GoogleAnalyticsAdapter extends Adapter

Transforms a collector payload which conforms to a known version of the Google Analytics protocol into raw events.

Linear Supertypes
Adapter, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GoogleAnalyticsAdapter
  2. Adapter
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final case class BooleanType(b: Boolean) extends FieldType with Product with Serializable

    Permalink
  2. final case class DoubleType(d: Double) extends FieldType with Product with Serializable

    Permalink
  3. sealed trait FieldType extends AnyRef

    Permalink
  4. type FormatterFunc = (RawEventParameters) ⇒ JObject

    Permalink
    Definition Classes
    Adapter
  5. final case class IntType(i: Int) extends FieldType with Product with Serializable

    Permalink
  6. final case class KVTranslation(fieldName: String, translation: Translation) extends Product with Serializable

    Permalink

    Case class holding the name of the field in the Iglu schemas as well as the necessary translation between the original MP string and the typed value

    Case class holding the name of the field in the Iglu schemas as well as the necessary translation between the original MP string and the typed value

    fieldName

    name of the field in the Iglu schemas

    translation

    going from the raw string in the MP payload to the typed data fit to be incorporated in a schema

  7. final case class MPData(schemaKey: SchemaKey, translationTable: Map[String, KVTranslation]) extends Product with Serializable

    Permalink

    Case class representing measurement protocol schema data

    Case class representing measurement protocol schema data

    schemaKey

    key of the Iglu schema

    translationTable

    mapping of measurement protocol field names to field names in Iglu schemas

  8. final case class StringType(s: String) extends FieldType with Product with Serializable

    Permalink
  9. type Translation = (String) ⇒ Validation[String, FieldType]

    Permalink

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. val EventEncType: String

    Permalink
    Definition Classes
    Adapter
  5. val JsonSchemaDateTimeFormat: DateTimeFormatter

    Permalink
    Definition Classes
    Adapter
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def buildFormatter(bools: List[String] = Nil, ints: List[String] = Nil, dateTimes: DateTimeFields = None): FormatterFunc

    Permalink

    Convenience function to build a simple formatter of RawEventParameters.

    Convenience function to build a simple formatter of RawEventParameters.

    bools

    A List of keys whose values should be processed as boolean-like Strings

    ints

    A List of keys whose values should be processed as integer-like Strings

    returns

    a formatter function which converts RawEventParameters into a cleaned JObject

    Attributes
    protected[com.snowplowanalytics.snowplow.enrich.common.adapters.registry]
    Definition Classes
    Adapter
  8. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. implicit val fieldTypeJson4s: (FieldType) ⇒ JValue

    Permalink
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. implicit val formats: DefaultFormats.type

    Permalink
    Definition Classes
    Adapter
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  17. def lookupSchema(eventOpt: Option[String], vendor: String, index: Int, eventSchemaMap: Map[String, String]): Validated[String]

    Permalink

    USAGE: Multiple event payloads

    USAGE: Multiple event payloads

    Gets the correct Schema URI for the event passed from the vendor payload

    eventOpt

    An Option[String] which will contain a String or None

    vendor

    The vendor we are doing a schema lookup for; i.e. MailChimp or PagerDuty

    index

    The index of the event we are trying to get a schema URI for

    eventSchemaMap

    A map of event types linked to their relevant schema URI's

    returns

    the schema for the event or a Failure-boxed String if we cannot recognize the event type

    Attributes
    protected[com.snowplowanalytics.snowplow.enrich.common.adapters.registry]
    Definition Classes
    Adapter
  18. def lookupSchema(eventOpt: Option[String], vendor: String, eventSchemaMap: Map[String, String]): Validated[String]

    Permalink

    USAGE: Single event payloads

    USAGE: Single event payloads

    Gets the correct Schema URI for the event passed from the vendor payload

    eventOpt

    An Option[String] which will contain a String or None

    vendor

    The vendor we are doing a schema lookup for; i.e. MailChimp or PagerDuty

    eventSchemaMap

    A map of event types linked to their relevant schema URI's

    returns

    the schema for the event or a Failure-boxed String if we cannot recognize the event type

    Attributes
    protected[com.snowplowanalytics.snowplow.enrich.common.adapters.registry]
    Definition Classes
    Adapter
  19. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  22. def rawEventsListProcessor(rawEventsList: List[Validated[RawEvent]]): ValidatedRawEvents

    Permalink

    USAGE: Multiple event payloads

    USAGE: Multiple event payloads

    Processes a list of Validated RawEvents into a ValidatedRawEvents object. If there were any Failures in the list we will only return these.

    rawEventsList

    The list of RawEvents that needs to be processed

    returns

    the ValidatedRawEvents which will be comprised of either Successful RawEvents or Failures

    Attributes
    protected[com.snowplowanalytics.snowplow.enrich.common.adapters.registry]
    Definition Classes
    Adapter
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toContext(contextJson: JValue): JValue

    Permalink

    Creates a Snowplow custom contexts entity by nesting the provided JValue in a self-describing envelope for the custom contexts.

    Creates a Snowplow custom contexts entity by nesting the provided JValue in a self-describing envelope for the custom contexts.

    contextJson

    The context which will be nested into the custom contexts envelope

    returns

    the self-describing custom contexts

    Attributes
    protected[com.snowplowanalytics.snowplow.enrich.common.adapters.registry]
    Definition Classes
    Adapter
  25. def toContexts(contextJsons: List[JValue]): JValue

    Permalink

    Creates a Snowplow custom contexts entity by nesting the provided JValues in a self-describing envelope for the custom contexts.

    Creates a Snowplow custom contexts entity by nesting the provided JValues in a self-describing envelope for the custom contexts.

    contextJsons

    The contexts which will be nested into the custom contexts envelope

    returns

    the self-describing custom contexts

    Attributes
    protected[com.snowplowanalytics.snowplow.enrich.common.adapters.registry]
    Definition Classes
    Adapter
  26. def toMap(parameters: List[NameValuePair]): Map[String, String]

    Permalink

    Converts a NonEmptyList of name:value pairs into a Map.

    Converts a NonEmptyList of name:value pairs into a Map.

    parameters

    A NonEmptyList of name:value pairs

    returns

    the name:value pairs in Map form

    Attributes
    protected[com.snowplowanalytics.snowplow.enrich.common.adapters.registry]
    Definition Classes
    Adapter
  27. def toRawEvents(payload: CollectorPayload)(implicit resolver: Resolver): ValidatedRawEvents

    Permalink

    Converts a CollectorPayload instance of (possibly multiple) Google Analytics payloads into raw events.

    Converts a CollectorPayload instance of (possibly multiple) Google Analytics payloads into raw events.

    payload

    The CollectorPaylod containing one or more raw Google Analytics payloads as collected by a Snowplow collector

    resolver

    (implicit) The Iglu resolver used for schema lookup and validation

    returns

    a Validation boxing either a NEL of RawEvents on Success, or a NEL of Failure Strings

    Definition Classes
    GoogleAnalyticsAdapterAdapter
  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. def toUnstructEvent(eventJson: JValue): JValue

    Permalink

    Creates a Snowplow unstructured event by nesting the provided JValue in a self-describing envelope for the unstructured event.

    Creates a Snowplow unstructured event by nesting the provided JValue in a self-describing envelope for the unstructured event.

    eventJson

    The event which we will nest into the unstructured event

    returns

    the self-describing unstructured event

    Attributes
    protected[com.snowplowanalytics.snowplow.enrich.common.adapters.registry]
    Definition Classes
    Adapter
  30. def toUnstructEventParams(tracker: String, qsParams: RawEventParameters, schema: String, eventJson: JValue, platform: String): RawEventParameters

    Permalink

    Fabricates a Snowplow unstructured event from the supplied parameters.

    Fabricates a Snowplow unstructured event from the supplied parameters. Note that to be a valid Snowplow unstructured event, the event must contain e, p and tv parameters, so we make sure to set those.

    tracker

    The name and version of this tracker

    qsParams

    The query-string parameters we will nest into the unstructured event

    schema

    The schema key which defines this unstructured event as a String

    eventJson

    The event which we will nest into the unstructured event

    platform

    The default platform to assign the event to

    returns

    the raw-event parameters for a valid Snowplow unstructured event

    Attributes
    protected[com.snowplowanalytics.snowplow.enrich.common.adapters.registry]
    Definition Classes
    Adapter
  31. def toUnstructEventParams(tracker: String, parameters: RawEventParameters, schema: String, formatter: FormatterFunc, platform: String): RawEventParameters

    Permalink

    Fabricates a Snowplow unstructured event from the supplied parameters.

    Fabricates a Snowplow unstructured event from the supplied parameters. Note that to be a valid Snowplow unstructured event, the event must contain e, p and tv parameters, so we make sure to set those.

    tracker

    The name and version of this tracker

    parameters

    The raw-event parameters we will nest into the unstructured event

    schema

    The schema key which defines this unstructured event as a String

    formatter

    A function to take the raw event parameters and turn them into a correctly formatted JObject that should pass JSON Schema validation

    platform

    The default platform to assign the event to

    returns

    the raw-event parameters for a valid Snowplow unstructured event

    Attributes
    protected[com.snowplowanalytics.snowplow.enrich.common.adapters.registry]
    Definition Classes
    Adapter
  32. final def wait(): Unit

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

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

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

Inherited from Adapter

Inherited from AnyRef

Inherited from Any

Ungrouped