Last active
September 30, 2015 18:20
-
-
Save raine/6da5778c5d7d749b1430 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require! ramda: {pipe, map} | |
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")' | |
ssp-traffic-name-regex = /ssp_traffic.([^,]+),/ | |
# :: [Object] -> [String] | |
ssps-target-names = map pipe do | |
(.target) | |
(.match ssp-traffic-name-regex) | |
(.1) | |
stats = | |
names: ssps-target-names ssps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment