Breakup

Jump to Section

The Breakup Stage is used to split an event value into multiple events.

Stage Breakup

Breakup Type

Break-up operation to perform on the event value. Array, Object, and All are supported.

Array

Split array values types into N events that contain a single scalar each. This operates on arrays of simple and complex types. Upon breakup the stage set event.metadata.breakupIndex to the array index of the value. An example Array Breakup operation is shown below.

Example Input Event Value

json
 [{
  "a": 1,
  "b": 2,
  "c": 3
 }, {
  "a": 10,
  "b": 20,
  "c": 30
 }, {
  "a": 200,
  "b": 200,
  "c": 300
 }]

Example Output Event Values

Value Metadata
json
{
 "a": 1,
 "b": 2,
 "c": 3
}
json
{
 "breakupIndex": 0
}
json
{
 "a": 10,
 "b": 20,
 "c": 30
}
json
{
 "breakupIndex": 1
}
json
{
 "a": 100,
 "b": 200,
 "c": 300
}
json
{
 "breakupIndex": 2
}

Object

Split a complex value into N event values containing the values from each of its attributes. Upon breakup the stage sets event.metadata.breakupName to the name of the attribute associated with the value. An example Array Breakup operation is shown below.

Example Input Event Value

json
{
 "a": 1,
 "b": 2,
 "c": 3
}

Example Output Event Values

Value Metadata
json
1
json
{
 "breakupName": "a"
}
json
2
json
{
 "breakupName": "b"
}
json
3
json
{
 "breakupName": "c"
}

All

In this mode if the event written is an array, it follows the above array breakup example. If the event is an object, it follows the object example.