Last active
July 18, 2016 21:39
-
-
Save tlrobinson/20b964938f24d7a66ea621a978dfc63d to your computer and use it in GitHub Desktop.
This file contains 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
{ | |
"type" : "query", | |
"database" : 1, | |
"query" : { | |
"source_table" : 1, | |
"filter" : [], | |
"aggregation" : ["count"], | |
"breakout" : [] | |
}, | |
"parameters" : [ | |
{ | |
"value" : "2016-07-11~2016-07-16", | |
"target" : ["dimension", ["field-id", 1]], | |
"type" : "date/range" | |
} | |
] | |
} |
This file contains 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
{ | |
"type" : "native", | |
"database" : 1, | |
"native" : { | |
"query" : "select count(*) from ORDERS WHERE {{created_at}};", | |
"collection" : "ORDERS" | |
}, | |
"template_tags" : { | |
"created_at" : { | |
"display_name" : "Created At", | |
"dimension" : ["field-id", 1], | |
"name" : "created_at", | |
"type" : "dimension" | |
} | |
}, | |
"parameters" : [ | |
{ | |
"type" : "date/range", | |
"value" : "2016-07-11~2016-07-16", | |
"target" : ["dimension", ["template-tag", "created_at"]] | |
} | |
] | |
} |
This file contains 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
{ | |
"type" : "native", | |
"database" : 1, | |
"native" : { | |
"query" : "select count(*) from ORDERS WHERE created_at = {{created_at}};", | |
"collection" : "ORDERS" | |
}, | |
"template_tags" : { | |
"created_at" : { | |
"display_name" : "Created At", | |
"type" : "date", | |
"name" : "created_at" | |
} | |
}, | |
"parameters" : [ | |
{ | |
"target" : ["variable", ["template-tag", "created_at"]], | |
"type" : "date/single", | |
"value" : "2016-07-13" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment