Skip to content

Instantly share code, notes, and snippets.

@dougluce
Created September 30, 2015 18:05
Show Gist options
  • Save dougluce/aad886b95ec4479becbe to your computer and use it in GitHub Desktop.
Save dougluce/aad886b95ec4479becbe to your computer and use it in GitHub Desktop.
stats = {}
ssps =
* target: 'summarize(stats.incoming.ssp_traffic.aaa, "1hr", "sum")'
* target: 'summarize(stats.incoming.ssp_traffic.bbb, "1hr", "sum")'
* target: 'summarize(stats.incoming.ssp_traffic.ccc, "1hr", "sum")'
for ssp in ssps
sspname = (ssp.target.match /ssp_traffic.([^,]+),/)[1]
stats.names ?= []
stats.names.push sspname
console.log stats.names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment