1.1 KiB
1.1 KiB
title | description | aliases | menu | weight | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
from() function | The `from()` function retrieves data from an InfluxDB data source. |
|
|
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")