Skip to content

Instantly share code, notes, and snippets.

@abramsm
Created January 29, 2016 22:57
Show Gist options
  • Save abramsm/cc33bb81dc45ad4cd8b4 to your computer and use it in GitHub Desktop.
Save abramsm/cc33bb81dc45ad4cd8b4 to your computer and use it in GitHub Desktop.
Hydra Field Day Filter Out
map.filterOut:[
{time-to-date-ymd {}}
// only the most wellformed of UIDs are counted.
{from:"UID", require.match:["[0-9a-f]{16}"]}
// filter segment data
{safely:[
{is-not-empty:"RED"}
// filter segments based on the provided list
{from:"SEGMENTIDS", list-apply.elementFilter.require:[%[segment-ids]%]}
{is-not-empty:"SEGMENTIDS"}
{from:"SRC", set:"SEG"}
]}
// flag usync data
{safely:[
{is-not-empty:"USYNC"}
{from:"SRC", set:"USYNC"}
]}
// throw away unflagged bundles
{is-not-empty:"SRC"}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment