query.filterMeasurement() function
query.filterMeasurement()
is experimental and subject to change at any time.
query.filterMeasurement()
filters input data by measurement.
Function type signature
(<-table: stream[{B with _measurement: C}], measurement: A) => stream[{B with _measurement: C}] where A: Equatable, C: Equatable
Parameters
measurement
(Required) InfluxDB measurement name to filter by.
table
Input data. Default is piped-forward data (<-
).
Examples
Query data from InfluxDB in a specific measurement
import "experimental/query"
query.fromRange(bucket: "example-bucket", start: -1h)
|> query.filterMeasurement(measurement: "example-measurement")
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.