Skip to content

Instantly share code, notes, and snippets.

@abramsm
Created January 31, 2016 16:06
Show Gist options
  • Save abramsm/e2ba43b4dd0ef2f27348 to your computer and use it in GitHub Desktop.
Save abramsm/e2ba43b4dd0ef2f27348 to your computer and use it in GitHub Desktop.
Field Day Tree Template
output.std-tree:{
root:[
{const:"root"}
{branch:[
[
// record segment hits in case we want to do a quick sanity check
{const:"seg_stats", filter:{from:"SRC", require:"SEG"}}
{field:"DATE_YMD"}
// TODO: create a field for 'SEGMENTIDS and keep track of the unique count of UIDs
// and the top 20 UIDs for each SEGMENTIDS
]
[
// record segment hits in case we want to do a quick sanity check
{const:"usync_stats", filter:{from:"SRC", require:"USYNC"}}
{field:"DATE_YMD"}
// TODO: keep track of the top UIDs for the %[pid]% constant value
{const:"%[pid]%", data.uids.count:{ver:"hllp", key:"UID"}}
]
[
// TODO: keep a list of the top 100 UIDs
{const:"uids"}
{branch:[
// this branch adds uid nodes to the tree when processing segment data
[
// TODO: keep a track of the top SEG
{field:"UID", filter:{from:"SRC", require:"SEG"}}
]
// this branch adds puid to existing uid nodes (create=false) when processing usync data
[
{field:"UID", create:false, filter:{from:"SRC", require:"USYNC"}}
{field:"PUID"}
]
]}
]
]}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment