tickscript.groupBy() function
The tickscript.groupBy()
function is a user-contributed function maintained by
the package author and can
be updated or removed at any time.
The tickscript.groupBy()
function groups results by the _measurement
column and
other specified columns.
This function is comparable to Kapacitor QueryNode .groupBy.
To group by intervals of time, use window()
or tickscript.selectWindow()
.
import "contrib/bonitoo-io/tickscript"
tickscript.groupBy(columns: ["exampleColumn"])
Parameters
columns
(Required) List of columns to group by.
tables
Input data.
Default is piped-forward data (<-
).
Examples
Group by host and region
import "contrib/bonitoo-io/tickscript"
data
|> tickscript.groupBy(columns: ["host", "region"])
Package author and maintainer
Github: @bonitoo-io, @alespour
InfluxDB Slack: @Ales Pour
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, the following resources are available:
InfluxDB Cloud customers can contact InfluxData Support.