content/flux/v0/stdlib/experimental/iox/from.md
iox.from() reads from the selected bucket and measurement in an IOx storage node.
This function creates a source that reads data from IOx. Output data is "pivoted" on the time column and includes columns for each returned tag and field per time value.
(bucket: string, measurement: string) => stream[{A with _time: time}] where A: Record
{{% caption %}} For more information, see Function type signatures. {{% /caption %}}
({{< req >}}) IOx bucket to read data from.
({{< req >}}) Measurement to read data from.
import "experimental/iox"
iox.from(bucket: "example-bucket", measurement: "example-measurement")
|> range(start: -1d)
|> filter(fn: (r) => r._field == "example-field")