Object

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

CallrailAdapter

Related Doc: package registry

Permalink

object CallrailAdapter extends Adapter

Transforms a collector payload which conforms to a known version of the AD-X Tracking webhook into raw events.

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

Type Members

  1. type FormatterFunc = (RawEventParameters) ⇒ JObject

    Permalink
    Definition Classes
    Adapter

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. def finalize(): Unit

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

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

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

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

    Permalink
    Definition Classes
    Any
  16. 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
  17. 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
  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. 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
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. 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
  24. 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
  25. 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
  26. def toRawEvents(payload: CollectorPayload)(implicit resolver: Resolver): ValidatedRawEvents

    Permalink

    Converts a CollectorPayload instance into raw events.

    Converts a CollectorPayload instance into raw events. A CallRail payload only contains a single event.

    payload

    The CollectorPaylod containing one or more raw events as collected by a Snowplow collector

    resolver

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

    returns

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

    Definition Classes
    CallrailAdapterAdapter
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. 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
  29. 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
  30. 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
  31. final def wait(): Unit

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

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

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

Inherited from Adapter

Inherited from AnyRef

Inherited from Any

Ungrouped