com.snowplowanalytics.snowplow.enrich.common.adapters.registry
Convenience function to build a simple formatter of RawEventParameters.
Convenience function to build a simple formatter of RawEventParameters.
A List of keys whose values should be processed as boolean-like Strings
A List of keys whose values should be processed as integer-like Strings
a formatter function which converts RawEventParameters into a cleaned JObject
USAGE: Multiple event payloads
USAGE: Multiple event payloads
Gets the correct Schema URI for the event passed from the vendor payload
An Option[String] which will contain a String or None
The vendor we are doing a schema lookup for; i.e. MailChimp or PagerDuty
The index of the event we are trying to get a schema URI for
A map of event types linked to their relevant schema URI's
the schema for the event or a Failure-boxed String if we cannot recognize the event type
USAGE: Single event payloads
USAGE: Single event payloads
Gets the correct Schema URI for the event passed from the vendor payload
An Option[String] which will contain a String or None
The vendor we are doing a schema lookup for; i.e. MailChimp or PagerDuty
A map of event types linked to their relevant schema URI's
the schema for the event or a Failure-boxed String if we cannot recognize the event type
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.
The list of RawEvents that needs to be processed
the ValidatedRawEvents which will be comprised of either Successful RawEvents or Failures
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.
The context which will be nested into the custom contexts envelope
the self-describing custom contexts
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.
The contexts which will be nested into the custom contexts envelope
the self-describing custom contexts
Converts a NonEmptyList of name:value pairs into a Map.
Converts a NonEmptyList of name:value pairs into a Map.
A NonEmptyList of name:value pairs
the name:value pairs in Map form
Converts a CollectorPayload instance into raw events.
Converts a CollectorPayload instance into raw events.
A StatusGator Tracking payload contains one single event in the body of the payload, stored within a HTTP encoded string.
The CollectorPayload containing one or more raw events as collected by a Snowplow collector
(implicit) The Iglu resolver used for schema lookup and validation. Not used
a Validation boxing either a NEL of RawEvents on Success, or a NEL of Failure Strings
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.
The event which we will nest into the unstructured event
the self-describing unstructured event
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.
The name and version of this tracker
The query-string parameters we will nest into the unstructured event
The schema key which defines this unstructured event as a String
The event which we will nest into the unstructured event
The default platform to assign the event to
the raw-event parameters for a valid Snowplow unstructured event
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.
The name and version of this tracker
The raw-event parameters we will nest into the unstructured event
The schema key which defines this unstructured event as a String
A function to take the raw event parameters and turn them into a correctly formatted JObject that should pass JSON Schema validation
The default platform to assign the event to
the raw-event parameters for a valid Snowplow unstructured event
Transforms a collector payload which conforms to a known version of the StatusGator Tracking webhook into raw events.