Documentation

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
For more information, see Function type signatures.

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!


Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.