# Functions
UnnestStream detects configs that come from fleet and transforms the config into something compatible with heartbeat, by mixing some fields (id, data_stream) with those from the first stream.
# Structs
OptionalStream represents a config that has a stream set, which in practice means agent/fleet.
StdMonitorFields represents the generic configuration options around a monitor plugin.