Event

com.snowplowanalytics.snowplow.analytics.scalasdk.Event$
See theEvent companion class
object Event

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Event.type

Members list

Concise view

Type members

Deprecated classlikes

object unsafe

Attributes

Deprecated
true
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
unsafe.type

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def minimal(id: UUID, collectorTstamp: Instant, vCollector: String, vEtl: String): Event

Creates an event with only required fields. All optional fields are set to None.

Creates an event with only required fields. All optional fields are set to None.

Attributes

def parse(line: String): DecodeResult[Event]

Converts a string with an enriched event TSV to an Event instance, or a ValidatedNel containing information about errors

Converts a string with an enriched event TSV to an Event instance, or a ValidatedNel containing information about errors

Attributes

line

Enriched event TSV line

def parseBytes(bytes: ByteBuffer): DecodeResult[Event]
def parser(truncateAtomicFields: Map[String, Int]): TSVParser[Event]

Derive a TSV parser for the Event class

Derive a TSV parser for the Event class

Attributes

truncateAtomicFields

A map from field names, e.g. "app_id", to maximum string lengths. If supplied, the event fields are truncated to not exceed these maximum values.

Note:

Enrich already performs atomic field length validation since version 3.0.0. Only supply a non-empty map if atomic field lengths are important to you, and either you are parsing events generated by an older version of enrich, or if you run enrich with the featureFlags.acceptInvalid config option on.

Implicits

Implicits

implicit def eventDecoder: Decoder[Event]
implicit val jsonEncoder: AsObject[Event]

Automatically derived Circe encoder

Automatically derived Circe encoder

Attributes