fix bugs with docs

This commit is contained in:
fjy 2014-11-14 13:25:21 -08:00
parent d85c172285
commit afd419ea29
1 changed files with 3 additions and 3 deletions

View File

@ -17,18 +17,18 @@ Supported granularity strings are: `all`, `none`, `minute`, `fifteen_minute`, `t
### Duration Granularities ### Duration Granularities
Duration granularities are specified as an exact duration in milliseconds and timestamps are returned as UTC. Duration granularity values are Java longs. Duration granularities are specified as an exact duration in milliseconds and timestamps are returned as UTC. Duration granularity values are in millis.
They also support specifying an optional origin, which defines where to start counting time buckets from (defaults to 1970-01-01T00:00:00Z). They also support specifying an optional origin, which defines where to start counting time buckets from (defaults to 1970-01-01T00:00:00Z).
```javascript ```javascript
{"type": "duration", "duration": "7200000"} {"type": "duration", "duration": 7200000}
``` ```
This chunks up every 2 hours. This chunks up every 2 hours.
```javascript ```javascript
{"type": "duration", "duration": "3600000", "origin": "2012-01-01T00:30:00Z"} {"type": "duration", "duration": 3600000, "origin": "2012-01-01T00:30:00Z"}
``` ```
This chunks up every hour on the half-hour. This chunks up every hour on the half-hour.