docs-v2/content/v2.0/reference/flux/functions/built-in/inputs/from.md

1.1 KiB

title description aliases menu weight
from() function The `from()` function retrieves data from an InfluxDB data source.
/v2.0/reference/flux/functions/inputs/from
v2_0_ref
name parent
from built-in-inputs
401

The from() function retrieves data from an InfluxDB data source. It returns a stream of tables from the specified bucket. Each unique series is contained within its own table. Each record in the table represents a single point in the series.

Function type: Input
Output data type: Object

from(bucket: "example-bucket")

// OR

from(bucketID: "0261d8287f4d6000")

Parameters

bucket

The name of the bucket to query.

Data type: String

bucketID

The string-encoded ID of the bucket to query.

Data type: String

Examples

from(bucket: "example-bucket")
from(bucketID: "0261d8287f4d6000")

FROM