BTS Snippets
Splitting Aggregates
One block per day (using Block Aggregate)
Dimensions:
- Name: date
Type: string
Value: str(time.date())One block per session_id (using Block Aggregate)
Dimensions:
- Name: session_id
Type: string
Value: source.session_idInactivity based split (using Activity Aggregate)
SeparateByInactiveSeconds: 1800
# Calculates the distance in minutes between event time and the end time (time last event was received) of the current block. Split happens when the difference is greater than 30 minutes.Advanced BTS functions
Parsing UNIX timestamp
Parsing ISO datetime string
Create a map
Merge 2 strings with comma separated values in source data to create a list of tuples
Data cleansing
Create a boolean value from a condition on a text field in raw data
Convert strings in raw data to a float
Flatten a list of list of tuples
Data validation
Determine correctness of a Block Aggregate
Per event validation
Last updated