Created
November 16, 2017 11:03
-
-
Save erikdubbelboer/07c88de309c356e6933f773e61f1cf31 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
{ | |
"aggregations": [ | |
{ | |
"fieldName": "metric_with_total_count_of_events", | |
"name": "total", | |
"type": "longSum" | |
}, | |
{ | |
"name": "rolledup", | |
"type": "count" | |
} | |
], | |
"dataSource": "your_datasource", | |
"dimensions": [ | |
], | |
"granularity": "DAY", | |
"having": null, | |
"intervals": "2017-11-16:00:00+00:00/2017-11-17T00:00:00+00:00", | |
"queryType": "groupBy", | |
"postAggregations": [ | |
{ | |
"fields": [ | |
{ | |
"fields": [ | |
{ | |
"fieldName": "rolledup", | |
"type": "fieldAccess" | |
}, | |
{ | |
"fieldName": "total", | |
"type": "fieldAccess" | |
} | |
], | |
"fn": "/", | |
"type": "arithmetic" | |
}, | |
{ | |
"type": "constant", | |
"value": 100 | |
} | |
], | |
"fn": "*", | |
"name": "rollup_perc", | |
"type": "arithmetic" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment