query.filterFields() function
query.filterFields()
is experimental and subject to change at any time.
query.filterFields()
filters input data by field.
Function type signature
(<-table: stream[{B with _field: A}], ?fields: [A]) => stream[{B with _field: A}] where A: Nullable
Parameters
fields
Fields to filter by. Default is []
.
table
Input data. Default is piped-forward data (<-
).
Examples
Query specific fields from InfluxDB
import "experimental/query"
query.fromRange(bucket: "telegraf", start: -1h)
|> query.filterFields(fields: ["used_percent", "available_percent"])
Was this page helpful?
Thank you for your feedback!
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, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.