Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Processor: Union

Release: Juniper Apstra 4.2
{}
Change Release
date_range 07-Feb-24

The Union processor merges all input items into one set of items. For each input item the processor leaves only signification keys, drops the others and puts the result.

Parameter Description
Input Types Table (number or text or discrete state)
Output Types Table (number or text or discrete state)
Significant Keys (significant_keys) List of keys to map items from the inputs for applying the specified operation. It is typically used by processors that take multiple inputs and perform operations on them. When inputs have the same sets of keys it does not need to be specified. When inputs have different sets of keys, it must be specified and it must allow only 1:1 items mapping from the given inputs, otherwise the probe will go into error state.
Enable Streaming (enable_streaming) Makes samples of output stages streamed if enabled. An optional boolean that defaults to False. If set to True, all output stages of this processor are streamed in the generic protobuf schema.

Example: Union

Config is set to:

content_copy zoom_out_map
significant_keys: ["system_id"]

Consider we have inputs with device temperature information.

Input "in_1":

content_copy zoom_out_map
[system_id=leaf1,interface=eth1]: 45
[system_id=leaf2,interface=eth0]: 52
[system_id=leaf3,interface=eth0]: 61

Input "in_2":

content_copy zoom_out_map
[system_id=leaf4,interface=eth2]: 52
[system_id=leaf5,interface=eth3]: 64

Input "in_3":

content_copy zoom_out_map
[system_id=leaf6,interface=eth3]: 41

Output will be the following.

Output "out":

content_copy zoom_out_map
[system_id=leaf1]: 45
[system_id=leaf2]: 52
[system_id=leaf3]: 61
[system_id=leaf4]: 52
[system_id=leaf5]: 64
[system_id=leaf6]: 41
footer-navigation