Add limit to timeseries docs (#7750)

This commit is contained in:
Jonathan Wei 2019-05-23 19:41:52 -07:00 committed by Fangjin Yang
parent f2e34a76bd
commit eb0e1a056c
1 changed files with 1 additions and 0 deletions

View File

@ -76,6 +76,7 @@ There are 7 main parts to a timeseries query:
|filter|See [Filters](../querying/filters.html)|no|
|aggregations|See [Aggregations](../querying/aggregations.html)|no|
|postAggregations|See [Post Aggregations](../querying/post-aggregations.html)|no|
|limit|An integer that limits the number of results. The default is unlimited.|no|
|context|Can be used to modify query behavior, including [grand totals](#grand-totals) and [zero-filling](#zero-filling). See also [Context](../querying/query-context.html) for parameters that apply to all query types.|no|
To pull it all together, the above query would return 2 data points, one for each day between 2012-01-01 and 2012-01-03, from the "sample\_datasource" table. Each data point would be the (long) sum of sample\_fieldName1, the (double) sum of sample\_fieldName2 and the (double) result of sample\_fieldName1 divided by sample\_fieldName2 for the filter set. The output looks like this: