renamed flux functions dir to stdlib, added aliases to all function docs
parent
38caca0aac
commit
a0d46bb7b1
|
@ -1,15 +0,0 @@
|
|||
---
|
||||
title: Flux packages and functions
|
||||
description: Flux packages and functions allows you to retrieve, transform, process, and output data easily.
|
||||
v2.0/tags: [flux, functions, package]
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: Flux packages and functions
|
||||
parent: Flux query language
|
||||
weight: 102
|
||||
---
|
||||
|
||||
Flux's functional syntax allows you to retrieve, transform, process, and output data easily.
|
||||
There is a large library of built-in functions and importable packages:
|
||||
|
||||
{{< children >}}
|
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
title: Flux standard library
|
||||
description: >
|
||||
The Flux standard library of packages and functions allows you to retrieve,
|
||||
transform, process, and output data easily.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/
|
||||
v2.0/tags: [flux, functions, package]
|
||||
menu:
|
||||
v2_0_ref:
|
||||
parent: Flux query language
|
||||
weight: 102
|
||||
---
|
||||
|
||||
The Flux standard library of packages and functions allows you to retrieve,
|
||||
transform, process, and output data easily.
|
||||
There the standard library includes built-in functions and importable packages:
|
||||
|
||||
{{< children >}}
|
|
@ -1,10 +1,12 @@
|
|||
---
|
||||
title: Complete list of Flux functions
|
||||
description: View the full library of documented Flux functions.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/all-functions/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: View all functions
|
||||
parent: Flux packages and functions
|
||||
parent: Flux standard library
|
||||
weight: 299
|
||||
---
|
||||
|
|
@ -4,10 +4,12 @@ list_title: Built-in functions
|
|||
description: >
|
||||
Built-in functions provide a foundation for working with data using Flux.
|
||||
They do not require an import statement and are usable without any extra setup.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: Built-in
|
||||
parent: Flux packages and functions
|
||||
parent: Flux standard library
|
||||
weight: 201
|
||||
v2.0/tags: [built-in, functions, package]
|
||||
---
|
|
@ -3,7 +3,8 @@ title: Flux built-in input functions
|
|||
list_title: Built-in input functions
|
||||
description: Flux's built-in input functions define sources of data or or display information about data sources.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/inputs
|
||||
- /v2.0/reference/flux/functions/inputs
|
||||
- /v2.0/reference/flux/functions/built-in/inputs/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
parent: Built-in
|
|
@ -3,6 +3,7 @@ title: buckets() function
|
|||
description: The `buckets()` function returns a list of buckets in the organization.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/inputs/buckets
|
||||
- /v2.0/reference/flux/functions/built-in/inputs/buckets/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: buckets
|
|
@ -3,6 +3,7 @@ title: from() function
|
|||
description: The `from()` function retrieves data from an InfluxDB data source.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/inputs/from
|
||||
- /v2.0/reference/flux/functions/built-in/inputs/from/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: from
|
|
@ -6,6 +6,7 @@ description: >
|
|||
retrieving, transforming, or outputting data.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/misc
|
||||
- /v2.0/reference/flux/functions/built-in/misc/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
parent: Built-in
|
|
@ -3,6 +3,7 @@ title: intervals() function
|
|||
description: The `intervals()` function generates a set of time intervals over a range of time.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/misc/intervals
|
||||
- /v2.0/reference/flux/functions/built-in/misc/intervals/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: intervals
|
|
@ -3,6 +3,7 @@ title: linearBins() function
|
|||
description: The `linearBins()` function generates a list of linearly separated floats.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/misc/linearbins
|
||||
- /v2.0/reference/flux/functions/built-in/misc/linearbins/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: linearBins
|
|
@ -3,6 +3,7 @@ title: logarithmicBins() function
|
|||
description: The `logarithmicBins()` function generates a list of exponentially separated floats.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/misc/logarithmicbins
|
||||
- /v2.0/reference/flux/functions/built-in/misc/logarithmicbins/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: logarithmicBins
|
|
@ -1,6 +1,8 @@
|
|||
---
|
||||
title: now() function
|
||||
description: The `now()` function returns the current time (UTC).
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/misc/now/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: now
|
|
@ -1,6 +1,8 @@
|
|||
---
|
||||
title: sleep() function
|
||||
description: The `sleep()` function delays execution by a specified duration.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/misc/sleep/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: sleep
|
|
@ -4,6 +4,7 @@ list_title: Built-in output functions
|
|||
description: Flux's built-in output functions yield results or send data to a specified output destination.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/outputs
|
||||
- /v2.0/reference/flux/functions/built-in/outputs/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
parent: Built-in
|
|
@ -3,6 +3,7 @@ title: to() function
|
|||
description: The `to()` function writes data to an InfluxDB v2.0 bucket.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/outputs/to
|
||||
- /v2.0/reference/flux/functions/built-in/outputs/to/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: to
|
|
@ -3,6 +3,7 @@ title: yield() function
|
|||
description: The `yield()` function indicates the input tables received should be delivered as a result of the query.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/outputs/yield
|
||||
- /v2.0/reference/flux/functions/built-in/outputs/yield/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: yield
|
|
@ -2,6 +2,8 @@
|
|||
title: Flux built-in testing functions
|
||||
list_title: Built-in testing functions
|
||||
description: Flux's built-in testing functions test various aspects of piped-forward data.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/tests/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: Tests
|
|
@ -1,6 +1,8 @@
|
|||
---
|
||||
title: contains() function
|
||||
description: The `contains()` function tests whether a value is a member of a set.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/tests/contains/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: contains
|
|
@ -4,6 +4,7 @@ list_title: Built-in transformation functions
|
|||
description: Flux's built-in transformation functions transform and shape your data in specific ways.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
parent: Built-in
|
|
@ -4,6 +4,7 @@ list_title: Built-in aggregate functions
|
|||
description: Flux's built-in aggregate functions take values from an input table and aggregate them in some way.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/aggregates
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
parent: built-in-transformations
|
|
@ -3,6 +3,7 @@ title: aggregateWindow() function
|
|||
description: The `aggregateWindow()` function applies an aggregate function to fixed windows of time.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/aggregates/aggregatewindow
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/aggregatewindow/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: aggregateWindow
|
|
@ -3,6 +3,8 @@ title: chandeMomentumOscillator() function
|
|||
description: >
|
||||
The `chandeMomentumOscillator()` function applies the technical momentum indicator
|
||||
developed by Tushar Chande.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/chandemomentumoscillator/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: chandeMomentumOscillator
|
|
@ -3,6 +3,7 @@ title: count() function
|
|||
description: The `count()` function outputs the number of non-null records in a column.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/aggregates/count
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/count/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: count
|
|
@ -3,6 +3,7 @@ title: cov() function
|
|||
description: The `cov()` function computes the covariance between two streams by first joining the streams, then performing the covariance operation.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/aggregates/cov
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/cov/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: cov
|
|
@ -3,6 +3,7 @@ title: covariance() function
|
|||
description: The `covariance()` function computes the covariance between two columns.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/aggregates/covariance
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/covariance/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: covariance
|
|
@ -3,6 +3,7 @@ title: derivative() function
|
|||
description: The `derivative()` function computes the rate of change per unit of time between subsequent non-null records.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/aggregates/derivative
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/derivative/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: derivative
|
|
@ -3,6 +3,7 @@ title: difference() function
|
|||
description: The `difference()` function computes the difference between subsequent non-null records.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/aggregates/difference
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/difference/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: difference
|
|
@ -4,6 +4,8 @@ description: >
|
|||
The `doubleEMA()` function calculates the exponential moving average of values
|
||||
grouped into `n` number of points, giving more weight to recent data at double
|
||||
the rate of `exponentialMovingAverage()`.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/doubleema/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: doubleEMA
|
|
@ -3,6 +3,8 @@ title: exponentialMovingAverage() function
|
|||
description: >
|
||||
The `exponentialMovingAverage()` function calculates the exponential moving average of values
|
||||
in the `_value` column grouped into `n` number of points, giving more weight to recent data.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/exponentialmovingaverage/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: exponentialMovingAverage
|
|
@ -5,6 +5,7 @@ description: >
|
|||
that approximates the cumulative distribution of the dataset.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/aggregates/histogramquantile
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/histogramquantile/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: histogramQuantile
|
|
@ -4,6 +4,7 @@ description: >
|
|||
The `holtWinters()` function applies the Holt-Winters forecasting method to input tables.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/aggregates/holtwinters
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/holtwinters/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: holtWinters
|
|
@ -3,6 +3,7 @@ title: increase() function
|
|||
description: The `increase()` function calculates the total non-negative difference between values in a table.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/aggregates/increase
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/increase/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: increase
|
|
@ -3,6 +3,7 @@ title: integral() function
|
|||
description: The `integral()` function computes the area under the curve per unit of time of subsequent non-null records.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/aggregates/integral
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/integral/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: integral
|
|
@ -3,6 +3,8 @@ title: kaufmansAMA() function
|
|||
description: >
|
||||
The `kaufmansAMA()` function calculates the Kaufman's Adaptive Moving Average (KAMA)
|
||||
using values in an input table.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/kaufmansama/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: kaufmansAMA
|
|
@ -3,6 +3,8 @@ title: kaufmansER() function
|
|||
description: >
|
||||
The `kaufmansER()` function calculates the Kaufman's Efficiency Ratio (KER) using
|
||||
values in an input table.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/kaufmanser/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: kaufmansER
|
|
@ -3,6 +3,7 @@ title: mean() function
|
|||
description: The `mean()` function computes the mean or average of non-null records in the input table.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/aggregates/mean
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/mean/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: mean
|
|
@ -5,6 +5,7 @@ description: >
|
|||
in the input table with values that fall within the `0.5` quantile or 50th percentile.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/aggregates/median
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/median/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: median
|
|
@ -3,6 +3,8 @@ title: mode() function
|
|||
description: >
|
||||
The `mode()` function computes the mode or value that occurs most often in a
|
||||
specified column in the input table.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/mode/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: mode
|
||||
|
@ -57,4 +59,4 @@ from(bucket: "example-bucket")
|
|||
<hr style="margin-top:4rem"/>
|
||||
|
||||
##### Related InfluxQL functions and statements:
|
||||
[MODE()](https://docs.influxdata.com/influxdb/latest/query_language/functions/#mode)
|
||||
[MODE()](https://docs.influxdata.com/influxdb/latest/query_language/functions/#mode)
|
|
@ -2,6 +2,8 @@
|
|||
title: movingAverage() function
|
||||
description: >
|
||||
The `movingAverage()` function calculates the mean of values grouped into `n` number of points.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/movingaverage/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: movingAverage
|
|
@ -3,6 +3,7 @@ title: pearsonr() function
|
|||
description: The `pearsonr()` function computes the Pearson R correlation coefficient between two streams by first joining the streams, then performing the covariance operation normalized to compute R.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/aggregates/pearsonr
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/pearsonr/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: pearsonr
|
|
@ -4,6 +4,7 @@ description: The `quantile()` function outputs non-null records with values that
|
|||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/aggregates/percentile
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/percentile
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/quantile/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: quantile
|
|
@ -3,6 +3,8 @@ title: reduce() function
|
|||
description: >
|
||||
The `reduce()` function aggregates records in each table according to the reducer,
|
||||
`fn`, providing a way to create custom table aggregations.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/reduce/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: reduce
|
|
@ -3,6 +3,8 @@ title: relativeStrengthIndex() function
|
|||
description: >
|
||||
The `relativeStrengthIndex()` function measures the relative speed and change of
|
||||
values in an input table.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/relativestrengthindex/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: relativeStrengthIndex
|
|
@ -3,6 +3,7 @@ title: skew() function
|
|||
description: The `skew()` function outputs the skew of non-null records as a float.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/aggregates/skew
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/skew/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: skew
|
|
@ -3,6 +3,7 @@ title: spread() function
|
|||
description: The `spread()` function outputs the difference between the minimum and maximum values in a specified column.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/aggregates/spread
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/spread/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: spread
|
|
@ -3,6 +3,7 @@ title: stddev() function
|
|||
description: The `stddev()` function computes the standard deviation of non-null records in a specified column.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/aggregates/stddev
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/stddev/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: stddev
|
|
@ -3,6 +3,7 @@ title: sum() function
|
|||
description: The `sum()` function computes the sum of non-null records in a specified column.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/aggregates/sum
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/sum/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: sum
|
||||
|
@ -41,4 +42,4 @@ from(bucket: "example-bucket")
|
|||
<hr style="margin-top:4rem"/>
|
||||
|
||||
##### Related InfluxQL functions and statements:
|
||||
[SUM()](https://docs.influxdata.com/influxdb/latest/query_language/functions/#sum)
|
||||
[SUM()](https://docs.influxdata.com/influxdb/latest/query_language/functions/#sum)
|
|
@ -3,6 +3,8 @@ title: timedMovingAverage() function
|
|||
description: >
|
||||
The `timedMovingAverage()` function calculates the mean of values in a defined time
|
||||
range at a specified frequency.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/timedmovingaverage/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: timedMovingAverage
|
|
@ -4,6 +4,8 @@ description: >
|
|||
The `tripleEMA()` function calculates the exponential moving average of values
|
||||
grouped into `n` number of points, giving more weight to recent data with less lag
|
||||
than `exponentialMovingAverage()` and `doubleEMA()`.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/tripleema/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: tripleEMA
|
|
@ -3,6 +3,8 @@ title: tripleExponentialDerivative() function
|
|||
description: >
|
||||
The `tripleExponentialDerivative()` function calculates a triple exponential
|
||||
derivative (TRIX) of input tables using `n` points.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/tripleexponentialderivative/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: tripleExponentialDerivative
|
|
@ -6,6 +6,7 @@ description: >
|
|||
plus a new column containing the labels of the input table's columns.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/columns
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/columns/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: columns
|
|
@ -3,6 +3,7 @@ title: cumulativeSum() function
|
|||
description: The `cumulativeSum()` function computes a running sum for non-null records in the table.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/cumulativesum
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/cumulativesum/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: cumulativeSum
|
|
@ -3,6 +3,7 @@ title: drop() function
|
|||
description: The `drop()` function removes specified columns from a table.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/drop
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/drop/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: drop
|
|
@ -3,6 +3,7 @@ title: duplicate() function
|
|||
description: The `duplicate()` function duplicates a specified column in a table.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/duplicate
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/duplicate/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: duplicate
|
|
@ -1,6 +1,8 @@
|
|||
---
|
||||
title: elapsed() function
|
||||
description: The `elapsed()` function returns the time between subsequent records.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/elapsed/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: elapsed
|
|
@ -3,6 +3,7 @@ title: fill() function
|
|||
description: The `fill()` function replaces all null values in an input stream and replace them with a non-null value.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/fill
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/fill/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: fill
|
|
@ -3,6 +3,7 @@ title: filter() function
|
|||
description: The `filter()` function filters data based on conditions defined in a predicate function (fn).
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/filter
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/filter/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: filter
|
|
@ -3,6 +3,7 @@ title: group() function
|
|||
description: The `group()` function groups records based on their values for specific columns.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/group
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/group/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: group
|
|
@ -3,6 +3,7 @@ title: histogram() function
|
|||
description: The `histogram()` function approximates the cumulative distribution of a dataset by counting data frequencies for a list of bins.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/histogram
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/histogram/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: histogram
|
|
@ -4,7 +4,8 @@ description: >
|
|||
The `hourSelection()` function retains all rows with time values in a specified hour range.
|
||||
Hours are specified in military time.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/hourSelection
|
||||
- /v2.0/reference/flux/functions/transformations/hourselection
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/hourselection/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: hourSelection
|
|
@ -3,6 +3,7 @@ title: join() function
|
|||
description: The `join()` function merges two or more input streams whose values are equal on a set of common columns into a single output stream.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/join
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/join/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: join
|
|
@ -3,6 +3,7 @@ title: keep() function
|
|||
description: The `keep()` function returns a table containing only the specified columns.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/keep
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/keep/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: keep
|
|
@ -6,6 +6,7 @@ description: >
|
|||
_value column containing the labels of the input table's group key.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/keys
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/keys/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: keys
|
|
@ -3,6 +3,7 @@ title: keyValues() function
|
|||
description: The `keyValues()` function returns a table with the input table's group key plus two columns, _key and _value, that correspond to unique column + value pairs from the input table.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/keyvalues
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/keyvalues/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: keyValues
|
|
@ -3,6 +3,7 @@ title: limit() function
|
|||
description: The `limit()` function limits each output table to the first `n` records.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/limit
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/limit/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: limit
|
|
@ -3,6 +3,7 @@ title: map() function
|
|||
description: The `map()` function applies a function to each record in the input tables.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/map
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/map/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: map
|
|
@ -3,6 +3,7 @@ title: pivot() function
|
|||
description: The `pivot()` function collects values stored vertically (column-wise) in a table and aligns them horizontally (row-wise) into logical sets.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/pivot
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/pivot/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: pivot
|
|
@ -3,6 +3,7 @@ title: range() function
|
|||
description: The `range()` function filters records based on time bounds.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/range
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/range/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: range
|
|
@ -3,6 +3,7 @@ title: rename() function
|
|||
description: The `rename()` function renames specified columns in a table.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/rename
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/rename/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: rename
|
|
@ -4,6 +4,7 @@ list_title: Built-in selector functions
|
|||
description: Flux's built-in selector functions return one or more records based on function logic.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/selectors
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/selectors/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
parent: built-in-transformations
|
|
@ -3,6 +3,7 @@ title: bottom() function
|
|||
description: The `bottom()` function sorts a table by columns and keeps only the bottom n records.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/selectors/bottom
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/selectors/bottom/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: bottom
|
|
@ -3,6 +3,7 @@ title: distinct() function
|
|||
description: The `distinct()` function returns the unique values for a given column.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/selectors/distinct
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/selectors/distinct/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: distinct
|
|
@ -3,6 +3,7 @@ title: first() function
|
|||
description: The `first()` function selects the first non-null record from an input table.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/selectors/first
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/selectors/first/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: first
|
|
@ -3,6 +3,7 @@ title: highestAverage() function
|
|||
description: The `highestAverage()` function calculates the average of each table in the input stream returns the top `n` records.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/selectors/highestaverage
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/selectors/highestaverage/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: highestAverage
|
|
@ -3,6 +3,7 @@ title: highestCurrent() function
|
|||
description: The `highestCurrent()` function selects the last record of each table in the input stream and returns the top `n` records.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/selectors/highestcurrent
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/selectors/highestcurrent/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: highestCurrent
|
|
@ -3,6 +3,7 @@ title: highestMax() function
|
|||
description: The `highestMax()` function selects the maximum record from each table in the input stream and returns the top `n` records.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/selectors/highestmax
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/selectors/highestmax/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: highestMax
|
|
@ -3,6 +3,7 @@ title: last() function
|
|||
description: The `last()` function selects the last non-null record from an input table.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/selectors/last
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/selectors/last/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: last
|
|
@ -3,6 +3,7 @@ title: lowestAverage() function
|
|||
description: The `lowestAverage()` function calculates the average of each table in the input stream returns the lowest `n` records.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/selectors/lowestaverage
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/selectors/lowestaverage/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: lowestAverage
|
|
@ -3,6 +3,7 @@ title: lowestCurrent() function
|
|||
description: The `lowestCurrent()` function selects the last record of each table in the input stream and returns the lowest `n` records.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/selectors/lowestcurrent
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/selectors/lowestcurrent/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: lowestCurrent
|
|
@ -3,6 +3,7 @@ title: lowestMin() function
|
|||
description: The `lowestMin()` function selects the minimum record from each table in the input stream and returns the lowest `n` records.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/selectors/lowestmin
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/selectors/lowestmin/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: lowestMin
|
|
@ -2,7 +2,8 @@
|
|||
title: max() function
|
||||
description: The `max()` function selects record with the highest _value from the input table.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/selectors/max
|
||||
- /v2.0/reference/flux/functions/transformations/selectors/max
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/selectors/max/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: max
|
||||
|
@ -41,4 +42,4 @@ from(bucket:"example-bucket")
|
|||
<hr style="margin-top:4rem"/>
|
||||
|
||||
##### Related InfluxQL functions and statements:
|
||||
[MAX()](https://docs.influxdata.com/influxdb/latest/query_language/functions/#max)
|
||||
[MAX()](https://docs.influxdata.com/influxdb/latest/query_language/functions/#max)
|
|
@ -3,6 +3,7 @@ title: min() function
|
|||
description: The `min()` function selects record with the lowest _value from the input table.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/selectors/min
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/selectors/min/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: min
|
|
@ -3,6 +3,7 @@ title: sample() function
|
|||
description: The `sample()` function selects a subset of the records from the input table.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/selectors/sample
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/selectors/sample/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: sample
|
||||
|
@ -48,4 +49,4 @@ from(bucket:"example-bucket")
|
|||
<hr style="margin-top:4rem"/>
|
||||
|
||||
##### Related InfluxQL functions and statements:
|
||||
[SAMPLE()](https://docs.influxdata.com/influxdb/latest/query_language/functions/#sample)
|
||||
[SAMPLE()](https://docs.influxdata.com/influxdb/latest/query_language/functions/#sample)
|
|
@ -3,6 +3,7 @@ title: top() function
|
|||
description: The `top()` function sorts a table by columns and keeps only the top n records.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/selectors/top
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/selectors/top/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: top
|
|
@ -3,6 +3,7 @@ title: unique() function
|
|||
description: The `unique()` function returns all records containing unique values in a specified column.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/selectors/unique
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/selectors/unique/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: unique
|
|
@ -3,6 +3,7 @@ title: set() function
|
|||
description: The `set()` function assigns a static value to each record in the input table.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/set
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/set/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: set
|
|
@ -3,6 +3,7 @@ title: sort() function
|
|||
description: The `sort()` function orders the records within each table.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/sort
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/sort/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: sort
|
|
@ -3,6 +3,7 @@ title: stateCount() function
|
|||
description: The `stateCount()` function computes the number of consecutive records in a given state.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/statecount
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/statecount/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: stateCount
|
|
@ -3,6 +3,7 @@ title: stateDuration() function
|
|||
description: The `stateDuration()` function computes the duration of a given state.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/stateduration
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/stateduration/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: stateDuration
|
|
@ -5,6 +5,8 @@ seotitle: Flux built-in stream and table functions
|
|||
description: >
|
||||
Use stream and table functions to extract a table from a stream of tables and access its
|
||||
columns and records.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/stream-table/
|
||||
weight: 401
|
||||
menu:
|
||||
v2_0_ref:
|
|
@ -3,6 +3,8 @@ title: getColumn() function
|
|||
description: >
|
||||
The `getColumn()` function extracts a column from a table given its label.
|
||||
If the label is not present in the set of columns, the function errors.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/stream-table/getcolumn/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: getColumn
|
|
@ -3,6 +3,8 @@ title: getRecord() function
|
|||
description: >
|
||||
The `getRecord()` function extracts a record from a table given its index.
|
||||
If the index is out of bounds, the function errors.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/stream-table/getrecord/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: getRecord
|
|
@ -3,6 +3,8 @@ title: tableFind() function
|
|||
description: >
|
||||
The `tableFind()` function extracts the first table in a stream of tables whose
|
||||
group key values match a predicate. If no table is found, the function errors.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/stream-table/tablefind/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: tableFind
|
|
@ -1,6 +1,8 @@
|
|||
---
|
||||
title: tail() function
|
||||
description: The `tail()` function limits each output table to the last `n` records.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/tail/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: tail
|
|
@ -4,6 +4,7 @@ description: The `timeShift()` function adds a fixed duration to time columns.
|
|||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/shift
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/shift
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/timeshift/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: timeShift
|
|
@ -2,6 +2,8 @@
|
|||
title: truncateTimeColumn() function
|
||||
description: >
|
||||
The `truncateTimeColumn()` function truncates all input table `_time` values to a specified unit.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/truncatetimecolumn/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: truncateTimeColumn
|
|
@ -4,6 +4,7 @@ list_title: Built-in type conversion functions
|
|||
description: Flux's built-in built-in type conversion functions convert columns of the input table into a specific data type.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/transformations/type-conversions
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/type-conversions/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
parent: built-in-transformations
|
|
@ -1,6 +1,8 @@
|
|||
---
|
||||
title: bool() function
|
||||
description: The `bool()` function converts a single value to a boolean.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/type-conversions/bool/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: bool
|
|
@ -1,6 +1,8 @@
|
|||
---
|
||||
title: bytes() function
|
||||
description: The `bytes()` function converts a single value to bytes.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/type-conversions/bytes/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: bytes
|
|
@ -1,6 +1,8 @@
|
|||
---
|
||||
title: duration() function
|
||||
description: The `duration()` function converts a single value to a duration.
|
||||
aliases:
|
||||
- /v2.0/reference/flux/functions/built-in/transformations/type-conversions/duration/
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: duration
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue