Fetching contributors…
Cannot retrieve contributors at this time
25 lines (17 sloc) 658 Bytes
head | Juttle Language Reference


Only emit the first limit points from each batch.

head limit [by groupfield1, [groupfield2, ...]]
Parameter Description Required?
limit The number of points to emit; may be an expression that evaluates to an integer No; defaults to 1
by One or more fields by which to group. See Grouping fields with by. No

Example: Generate batches containing ten points each but only log the first two points from each batch