restructured flux docs

pull/51/head
Scott Anderson 2019-02-07 15:52:07 -07:00
parent 064032003c
commit d5e50b1dcf
86 changed files with 374 additions and 169 deletions

View File

@ -9,7 +9,8 @@ weight: 101
---
Flux's functional syntax allows you to retrieve, transform, process, and output data easily.
There is a large library of built-in functions, but you can also create your own
custom functions to perform operations that suit your needs.
There is a large library of built-in and importable functions.
You can also [create your own custom functions](/v2.0/query-data/guides/custom-functions)
to perform operations that suit your needs.
{{< children >}}

View File

@ -0,0 +1,11 @@
---
title: Built-in Flux functions
description: placeholder
menu:
v2_0_ref:
name: Built-in
parent: Flux functions
weight: 201
---
Placeholder

View File

@ -1,11 +1,14 @@
---
title: Flux input functions
description: Flux input functions define sources of data or or display information about data sources.
aliases:
- /v2.0/reference/flux/functions/inputs
menu:
v2_0_ref:
parent: Flux functions
parent: Built-in
name: Inputs
weight: 201
identifier: built-in-inputs
weight: 301
---
Flux input functions define sources of data or display information about data sources.

View File

@ -1,11 +1,13 @@
---
title: buckets() function
description: The buckets() function returns a list of buckets in the organization.
aliases:
- /v2.0/reference/flux/functions/inputs/buckets
menu:
v2_0_ref:
name: buckets
parent: Inputs
weight: 301
parent: built-in-inputs
weight: 401
---
The `buckets()` function returns a list of buckets in the organization.

View File

@ -1,11 +1,13 @@
---
title: from() function
description: The from() function retrieves data from an InfluxDB data source.
aliases:
- /v2.0/reference/flux/functions/inputs/from
menu:
v2_0_ref:
name: from
parent: Inputs
weight: 301
parent: built-in-inputs
weight: 401
---
The `from()` function retrieves data from an InfluxDB data source.

View File

@ -1,11 +1,13 @@
---
title: fromCSV() function
description: The fromCSV() function retrieves data from a CSV data source.
aliases:
- /v2.0/reference/flux/functions/inputs/fromcsv
menu:
v2_0_ref:
name: fromCSV
parent: Inputs
weight: 301
parent: built-in-inputs
weight: 401
---
The `fromCSV()` function retrieves data from a comma-separated value (CSV) data source.

View File

@ -1,11 +1,14 @@
---
title: Flux miscellaneous functions
description: Flux provides miscellaneous functions that serve purposes other than retrieving, transforming, or outputting data.
aliases:
- /v2.0/reference/flux/functions/misc
menu:
v2_0_ref:
parent: Flux functions
parent: Built-in
name: Miscellaneous
weight: 205
identifier: built-in-misc
weight: 305
---
Flux functions primarily retrieve, shape and transform, then output data, however

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: intervals
parent: Miscellaneous
weight: 301
parent: built-in-misc
weight: 401
---
The `intervals()` function generates a set of time intervals over a range of time.

View File

@ -1,11 +1,13 @@
---
title: linearBins() function
description: The linearBins() function generates a list of linearly separated floats.
aliases:
- /v2.0/reference/flux/functions/misc/linearbins
menu:
v2_0_ref:
name: linearBins
parent: Miscellaneous
weight: 301
parent: built-in-misc
weight: 401
---
The `linearBins()` function generates a list of linearly separated floats.

View File

@ -1,11 +1,13 @@
---
title: logarithmicBins() function
description: The logarithmicBins() function generates a list of exponentially separated floats.
aliases:
- /v2.0/reference/flux/functions/misc/logarithmicbins
menu:
v2_0_ref:
name: logarithmicBins
parent: Miscellaneous
weight: 301
parent: built-in-misc
weight: 401
---
The `logarithmicBins()` function generates a list of exponentially separated floats.

View File

@ -1,11 +1,13 @@
---
title: systemTime() function
description: The systemTime() function returns the current system time.
aliases:
- /v2.0/reference/flux/functions/misc/systemtime
menu:
v2_0_ref:
name: systemTime
parent: Miscellaneous
weight: 301
parent: built-in-misc
weight: 401
---
The `systemTime()` function returns the current system time.

View File

@ -1,11 +1,14 @@
---
title: Flux output functions
description: Flux output functions yield results or send data to a specified output destination.
aliases:
- /v2.0/reference/flux/functions/outputs
menu:
v2_0_ref:
parent: Flux functions
parent: Built-in
name: Outputs
weight: 202
identifier: built-in-outputs
weight: 302
---
Flux output functions yield results or send data to a specified output destination.

View File

@ -1,11 +1,13 @@
---
title: to() function
description: The to() function writes data to an InfluxDB v2.0 bucket.
aliases:
- /v2.0/reference/flux/functions/outputs/to
menu:
v2_0_ref:
name: to
parent: Outputs
weight: 301
parent: built-in-outputs
weight: 401
---
The `to()` function writes data to an **InfluxDB v2.0** bucket.

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: yield
parent: Outputs
weight: 301
parent: built-in-outputs
weight: 401
---
The `yield()` function indicates the input tables received should be delivered as a result of the query.

View File

@ -1,11 +1,14 @@
---
title: Flux testing functions
description: Flux testing functions test piped-forward data in specific ways and return errors if the tests fail.
aliases:
- /v2.0/reference/flux/functions/tests
menu:
v2_0_ref:
name: Tests
parent: Flux functions
weight: 205
parent: Built-in
identifier: built-in-tests
weight: 305
---
Flux testing functions test piped-forward data in specific ways and return errors if the tests fail.

View File

@ -1,11 +1,13 @@
---
title: assertEquals() function
description: The assertEquals() function tests whether two streams have identical data.
aliases:
- /v2.0/reference/flux/functions/tests/assertequals
menu:
v2_0_ref:
name: assertEquals
parent: Tests
weight: 301
parent: built-in-tests
weight: 401
---
The `assertEquals()` function tests whether two streams have identical data.

View File

@ -1,11 +1,14 @@
---
title: Flux transformation functions
description: Flux transformation functions transform and shape your data in specific ways.
aliases:
- /v2.0/reference/flux/functions/transformations
menu:
v2_0_ref:
parent: Flux functions
parent: Built-in
name: Transformations
weight: 203
identifier: built-in-transformations
weight: 303
---
Flux transformation functions transform or shape your data in specific ways.

View File

@ -1,11 +1,14 @@
---
title: Flux aggregate functions
description: Flux aggregate functions take values from an input table and aggregate them in some way.
aliases:
- /v2.0/reference/flux/functions/transformations/aggregates
menu:
v2_0_ref:
parent: Transformations
parent: built-in-transformations
name: Aggregates
weight: 301
identifier: built-in-aggregates
weight: 401
---
Flux aggregate functions take values from an input table and aggregate them in some way.

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: aggregateWindow
parent: Aggregates
weight: 401
parent: built-in-aggregates
weight: 501
---
The `aggregateWindow()` function applies an aggregate function to fixed windows of time.

View File

@ -1,11 +1,13 @@
---
title: count() function
description: The count() function outputs the number of non-null records in each aggregated column.
aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/count
menu:
v2_0_ref:
name: count
parent: Aggregates
weight: 401
parent: built-in-aggregates
weight: 501
---
The `count()` function outputs the number of records in each aggregated column.

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: cov
parent: Aggregates
weight: 401
parent: built-in-aggregates
weight: 501
---
The `cov()` function computes the covariance between two streams by first joining the streams,

View File

@ -1,11 +1,13 @@
---
title: covariance() function
description: The covariance() function computes the covariance between two columns.
aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/covariance
menu:
v2_0_ref:
name: covariance
parent: Aggregates
weight: 401
parent: built-in-aggregates
weight: 501
---
The `covariance()` function computes the covariance between two columns.

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: derivative
parent: Aggregates
weight: 401
parent: built-in-aggregates
weight: 501
---
The `derivative()` function computes the rate of change per [`unit`](#unit) of time between subsequent non-null records.

View File

@ -1,11 +1,13 @@
---
title: difference() function
description: The difference() function computes the difference between subsequent non-null records.
aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/difference
menu:
v2_0_ref:
name: difference
parent: Aggregates
weight: 401
parent: built-in-aggregates
weight: 501
---
The `difference()` function computes the difference between subsequent records.

View File

@ -1,11 +1,13 @@
---
title: histogramQuantile() function
description: The `histogramQuantile()` function approximates a quantile given a histogram that approximates the cumulative distribution of the dataset.
aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/histogramquantile
menu:
v2_0_ref:
name: histogramQuantile
parent: Aggregates
weight: 401
parent: built-in-aggregates
weight: 501
---
The `histogramQuantile()` function approximates a quantile given a histogram that

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: increase
parent: Aggregates
weight: 401
parent: built-in-aggregates
weight: 501
---
The `increase()` function calculates the total non-negative difference between values in a table.

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: integral
parent: Aggregates
weight: 401
parent: built-in-aggregates
weight: 501
---
The `integral()` function computes the area under the curve per [`unit`](#unit) of time of subsequent non-null records.

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: mean
parent: Aggregates
weight: 401
parent: built-in-aggregates
weight: 501
---
The `mean()` function computes the mean or average of non-null records in the input table.

View File

@ -1,11 +1,13 @@
---
title: median() function
description: The `median()` function returns the median `_value` of an input table or all non-null records in the input table with values that fall within the 50th percentile.
description: The `median()` function returns the median `_value` of an input table or all non-null records in the input table with values that fall within the 50th percentile
aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/median
menu:
v2_0_ref:
name: median
parent: Aggregates
weight: 401
parent: built-in-aggregates
weight: 501
---
The `median()` function is a special application of the [`percentile()` function](/v2.0/reference/flux/functions/transformations/aggregates/percentile)

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: pearsonr
parent: Aggregates
weight: 401
parent: built-in-aggregates
weight: 501
---
The `pearsonr()` function computes the Pearson R correlation coefficient between two streams

View File

@ -1,11 +1,13 @@
---
title: percentile() function
description: The percentile() function outputs non-null records with values that fall within the specified percentile or the non-null record with the value that represents the specified percentile.
aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/percentile
menu:
v2_0_ref:
name: percentile
parent: Aggregates
weight: 401
parent: built-in-aggregates
weight: 501
---
The `percentile()` function returns records from an input table with `_value`s that fall within

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: skew
parent: Aggregates
weight: 401
parent: built-in-aggregates
weight: 501
---
The `skew()` function outputs the skew of non-null records as a float.

View File

@ -1,11 +1,13 @@
---
title: spread() function
description: The spread() function outputs the difference between the minimum and maximum values in each specified column.
aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/spread
menu:
v2_0_ref:
name: spread
parent: Aggregates
weight: 401
parent: built-in-aggregates
weight: 501
---
The `spread()` function outputs the difference between the minimum and maximum values in each specified column.

View File

@ -1,11 +1,13 @@
---
title: stddev() function
description: The stddev() function computes the standard deviation of non-null records in specified columns.
aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/stddev
menu:
v2_0_ref:
name: stddev
parent: Aggregates
weight: 401
parent: built-in-aggregates
weight: 501
---
The `stddev()` function computes the standard deviation of non-null records in specified columns.

View File

@ -1,11 +1,13 @@
---
title: sum() function
description: The sum() function computes the sum of non-null records in specified columns.
aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/sum
menu:
v2_0_ref:
name: sum
parent: Aggregates
weight: 401
parent: built-in-aggregates
weight: 501
---
The `sum()` function computes the sum of non-null records in specified columns.

View File

@ -3,12 +3,14 @@ title: columns() function
description: >
The columns() function lists the column labels of input tables.
For each input table, it outputs a table with the same group key columns,
plus a new column containing the labels of the input table's columns.
plus a new column containing the labels of the input table's columns.
aliases:
- /v2.0/reference/flux/functions/transformations/columns
menu:
v2_0_ref:
name: columns
parent: Transformations
weight: 301
parent: built-in-transformations
weight: 401
---
The `columns()` function lists the column labels of input tables.

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: cumulativeSum
parent: Transformations
weight: 301
parent: built-in-transformations
weight: 401
---
The `cumulativeSum()` function computes a running sum for non-null records in the table.

View File

@ -1,11 +1,13 @@
---
title: drop() function
description: The drop() function removes specified columns from a table.
aliases:
- /v2.0/reference/flux/functions/transformations/drop
menu:
v2_0_ref:
name: drop
parent: Transformations
weight: 301
parent: built-in-transformations
weight: 401
---
The `drop()` function removes specified columns from a table.

View File

@ -1,11 +1,13 @@
---
title: duplicate() function
description: The duplicate() function duplicates a specified column in a table.
aliases:
- /v2.0/reference/flux/functions/transformations/duplicate
menu:
v2_0_ref:
name: duplicate
parent: Transformations
weight: 301
parent: built-in-transformations
weight: 401
---
The `duplicate()` function duplicates a specified column in a table.

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: fill
parent: Transformations
weight: 301
parent: built-in-transformations
weight: 401
---
The `fill()` function replaces all null values in an input stream with a non-null value.

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: filter
parent: Transformations
weight: 301
parent: built-in-transformations
weight: 401
---
The `filter()` function filters data based on conditions defined in a predicate function ([`fn`](#fn)).

View File

@ -1,11 +1,13 @@
---
title: group() function
description: The group() function groups records based on their values for specific columns.
aliases:
- /v2.0/reference/flux/functions/transformations/group
menu:
v2_0_ref:
name: group
parent: Transformations
weight: 301
parent: built-in-transformations
weight: 401
---
The `group()` function groups records based on their values for specific columns.

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: histogram
parent: Transformations
weight: 301
parent: built-in-transformations
weight: 401
---
The `histogram()` function approximates the cumulative distribution of a dataset by counting data frequencies for a list of bins.

View File

@ -3,11 +3,12 @@ title: influxFieldsAsCols() function
description: The influxFieldsAsCols() function is pivots a table and automatically aligns fields within each input table that have the same timestamp.
aliases:
- /v2.0/reference/flux/functions/inputs/fromrows
- /v2.0/reference/flux/functions/transformations/influxfieldsascols
menu:
v2_0_ref:
name: influxFieldsAsCols
parent: Transformations
weight: 301
parent: built-in-transformations
weight: 401
---
The `influxFieldsAsCols()` function is a special application of the `pivot()` function that

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: join
parent: Transformations
weight: 301
parent: built-in-transformations
weight: 401
---
The `join()` function merges two or more input streams whose values are equal on

View File

@ -1,11 +1,13 @@
---
title: keep() function
description: The keep() function returns a table containing only the specified columns.
aliases:
- /v2.0/reference/flux/functions/transformations/keep
menu:
v2_0_ref:
name: keep
parent: Transformations
weight: 301
parent: built-in-transformations
weight: 401
---
The `keep()` function returns a table containing only the specified columns, ignoring all others.

View File

@ -3,12 +3,14 @@ title: keys() function
description: >
The keys() function outputs the group key of input tables.
For each input table, it outputs a table with the same group key columns, plus a
_value column containing the labels of the input table's group key.
_value column containing the labels of the input table's group key.
aliases:
- /v2.0/reference/flux/functions/transformations/keys
menu:
v2_0_ref:
name: keys
parent: Transformations
weight: 301
parent: built-in-transformations
weight: 401
---
The `keys()` function outputs the group key of input tables.

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: keyValues
parent: Transformations
weight: 301
parent: built-in-transformations
weight: 401
---
The `keyValues()` function returns a table with the input table's group key plus two columns,

View File

@ -1,11 +1,13 @@
---
title: limit() function
description: The limit() function limits the number of records in output tables to a fixed number (n).
aliases:
- /v2.0/reference/flux/functions/transformations/limit
menu:
v2_0_ref:
name: limit
parent: Transformations
weight: 301
parent: built-in-transformations
weight: 401
---
The `limit()` function limits the number of records in output tables to a fixed number ([`n`](#n)).

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: map
parent: Transformations
weight: 301
parent: built-in-transformations
weight: 401
---
The `map()` function applies a function to each record in the input tables.

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: pivot
parent: Transformations
weight: 301
parent: built-in-transformations
weight: 401
---
The `pivot()` function collects values stored vertically (column-wise) in a table

View File

@ -1,11 +1,13 @@
---
title: range() function
description: The range() function filters records based on time bounds.
aliases:
- /v2.0/reference/flux/functions/transformations/range
menu:
v2_0_ref:
name: range
parent: Transformations
weight: 301
parent: built-in-transformations
weight: 401
---
The `range()` function filters records based on time bounds.

View File

@ -1,11 +1,13 @@
---
title: rename() function
description: The rename() function renames specified columns in a table.
aliases:
- /v2.0/reference/flux/functions/transformations/rename
menu:
v2_0_ref:
name: rename
parent: Transformations
weight: 301
parent: built-in-transformations
weight: 401
---
The `rename()` function renames specified columns in a table.

View File

@ -1,11 +1,14 @@
---
title: Flux selector functions
description: Flux selector functions return one or more records based on function logic.
aliases:
- /v2.0/reference/flux/functions/transformations/selectors
menu:
v2_0_ref:
parent: Transformations
parent: built-in-transformations
name: Selectors
weight: 301
identifier: built-in-selectors
weight: 401
---
Flux selector functions return one or more records based on function logic.

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: bottom
parent: Selectors
weight: 401
parent: built-in-selectors
weight: 501
---
The `bottom()` function sorts a table by columns and keeps only the bottom `n` records.

View File

@ -1,11 +1,13 @@
---
title: distinct() function
description: The distinct() function returns the unique values for a given column.
aliases:
- /v2.0/reference/flux/functions/transformations/selectors/distinct
menu:
v2_0_ref:
name: distinct
parent: Selectors
weight: 401
parent: built-in-selectors
weight: 501
---
The `distinct()` function returns the unique values for a given column.

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: first
parent: Selectors
weight: 401
parent: built-in-selectors
weight: 501
---
The `first()` function selects the first non-null record from an input table.

View File

@ -1,11 +1,13 @@
---
title: highestAverage() function
description: The highestAverage() function returns the top 'n' records from all groups using the average of each group.
aliases:
- /v2.0/reference/flux/functions/transformations/selectors/highestaverage
menu:
v2_0_ref:
name: highestAverage
parent: Selectors
weight: 401
parent: built-in-selectors
weight: 501
---
The `highestAverage()` function returns the top `n` records from all groups using the average of each group.

View File

@ -1,11 +1,13 @@
---
title: highestCurrent() function
description: The highestCurrent() function returns the top 'n' records from all groups using the last value of each group.
aliases:
- /v2.0/reference/flux/functions/transformations/selectors/highestcurrent
menu:
v2_0_ref:
name: highestCurrent
parent: Selectors
weight: 401
parent: built-in-selectors
weight: 501
---
The `highestCurrent()` function returns the top `n` records from all groups using the last value of each group.

View File

@ -1,11 +1,13 @@
---
title: highestMax() function
description: The highestMax() function returns the top 'n' records from all groups using the maximum of each group.
aliases:
- /v2.0/reference/flux/functions/transformations/selectors/highestmax
menu:
v2_0_ref:
name: highestMax
parent: Selectors
weight: 401
parent: built-in-selectors
weight: 501
---
The `highestMax()` function returns the top `n` records from all groups using the maximum of each group.

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: last
parent: Selectors
weight: 401
parent: built-in-selectors
weight: 501
---
The `last()` function selects the last non-null record from an input table.

View File

@ -1,11 +1,13 @@
---
title: lowestAverage() function
description: The lowestAverage() function returns the bottom 'n' records from all groups using the average of each group.
aliases:
- /v2.0/reference/flux/functions/transformations/selectors/lowestaverage
menu:
v2_0_ref:
name: lowestAverage
parent: Selectors
weight: 401
parent: built-in-selectors
weight: 501
---
The `lowestAverage()` function returns the bottom `n` records from all groups using the average of each group.

View File

@ -1,11 +1,13 @@
---
title: lowestCurrent() function
description: The lowestCurrent() function returns the bottom 'n' records from all groups using the last value of each group.
aliases:
- /v2.0/reference/flux/functions/transformations/selectors/lowestcurrent
menu:
v2_0_ref:
name: lowestCurrent
parent: Selectors
weight: 401
parent: built-in-selectors
weight: 501
---
The `lowestCurrent()` function returns the bottom `n` records from all groups using the last value of each group.

View File

@ -1,11 +1,13 @@
---
title: lowestMin() function
description: The lowestMin() function returns the bottom 'n' records from all groups using the minimum of each group.
aliases:
- /v2.0/reference/flux/functions/transformations/selectors/lowestmin
menu:
v2_0_ref:
name: lowestMin
parent: Selectors
weight: 401
parent: built-in-selectors
weight: 501
---
The `lowestMin()` function returns the bottom `n` records from all groups using the minimum of each group.

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: max
parent: Selectors
weight: 401
parent: built-in-selectors
weight: 501
---
The `max()` function selects record with the highest `_value` from the input table.

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: min
parent: Selectors
weight: 401
parent: built-in-selectors
weight: 501
---
The `min()` function selects record with the lowest `_value` from the input table.

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: sample
parent: Selectors
weight: 401
parent: built-in-selectors
weight: 501
---
The `sample()` function selects a subset of the records from the input table.

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: top
parent: Selectors
weight: 401
parent: built-in-selectors
weight: 501
---
The `top()` function sorts a table by columns and keeps only the top `n` records.

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: unique
parent: Selectors
weight: 401
parent: built-in-selectors
weight: 501
---
The `unique()` function returns all records containing unique values in a specified column.

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: set
parent: Transformations
weight: 301
parent: built-in-transformations
weight: 401
---
The `set()` function assigns a static value to each record in the input table.

View File

@ -1,11 +1,13 @@
---
title: shift() function
description: The shift() function adds a fixed duration to time columns.
aliases:
- /v2.0/reference/flux/functions/transformations/shift
menu:
v2_0_ref:
name: shift
parent: Transformations
weight: 301
parent: built-in-transformations
weight: 401
---
The `shift()` function adds a fixed duration to time columns.

View File

@ -1,11 +1,13 @@
---
title: sort() function
description: The sort() function orders the records within each table.
aliases:
- /v2.0/reference/flux/functions/transformations/sort
menu:
v2_0_ref:
name: sort
parent: Transformations
weight: 301
parent: built-in-transformations
weight: 401
---
The `sort()` function orders the records within each table.

View File

@ -1,11 +1,13 @@
---
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
menu:
v2_0_ref:
name: stateCount
parent: Transformations
weight: 301
parent: built-in-transformations
weight: 401
---
The `stateCount()` function computes the number of consecutive records in a given state.

View File

@ -1,11 +1,13 @@
---
title: stateDuration() function
description: The stateDuration() function computes the duration of a given state.
aliases:
- /v2.0/reference/flux/functions/transformations/stateduration
menu:
v2_0_ref:
name: stateDuration
parent: Transformations
weight: 301
parent: built-in-transformations
weight: 401
---
The `stateDuration()` function computes the duration of a given state.

View File

@ -1,11 +1,14 @@
---
title: Flux type conversion functions
description: Flux type conversion functions convert columns of the input table into a specific data type.
aliases:
- /v2.0/reference/flux/functions/transformations/type-conversions
menu:
v2_0_ref:
parent: Transformations
parent: built-in-transformations
name: Type conversions
weight: 301
identifier: built-in-type-conversions
weight: 401
---
Flux type conversion functions convert columns of the input table into a specific data type.

View File

@ -1,11 +1,13 @@
---
title: toBool() function
description: The toBool() function converts a value to a boolean.
aliases:
- /v2.0/reference/flux/functions/transformations/type-conversions/tobool
menu:
v2_0_ref:
name: toBool
parent: Type conversions
weight: 401
parent: built-in-type-conversions
weight: 501
---
The `toBool()` function converts a value to a boolean.

View File

@ -1,11 +1,13 @@
---
title: toDuration() function
description: The toDuration() function converts a value to a duration.
aliases:
- /v2.0/reference/flux/functions/transformations/type-conversions/toduration
menu:
v2_0_ref:
name: toDuration
parent: Type conversions
weight: 401
parent: built-in-type-conversions
weight: 501
---
The `toDuration()` function converts a value to a duration.

View File

@ -1,11 +1,13 @@
---
title: toFloat() function
description: The toFloat() function converts a value to a float.
aliases:
- /v2.0/reference/flux/functions/transformations/type-conversions/tofloat
menu:
v2_0_ref:
name: toFloat
parent: Type conversions
weight: 401
parent: built-in-type-conversions
weight: 501
---
The `toFloat()` function converts a value to a float.

View File

@ -1,11 +1,13 @@
---
title: toInt() function
description: The toInt() function converts a value to an integer.
aliases:
- /v2.0/reference/flux/functions/transformations/type-conversions/toint
menu:
v2_0_ref:
name: toInt
parent: Type conversions
weight: 401
parent: built-in-type-conversions
weight: 501
---
The `toInt()` function converts a value to an integer.

View File

@ -1,11 +1,13 @@
---
title: toString() function
description: The toString() function converts a value to a string.
aliases:
- /v2.0/reference/flux/functions/transformations/type-conversions/tostring
menu:
v2_0_ref:
name: toString
parent: Type conversions
weight: 401
parent: built-in-type-conversions
weight: 501
---
The `toString()` function converts a value to a string.

View File

@ -1,11 +1,13 @@
---
title: toTime() function
description: The toTime() function converts a value to a time.
aliases:
- /v2.0/reference/flux/functions/transformations/type-conversions/totime
menu:
v2_0_ref:
name: toTime
parent: Type conversions
weight: 401
parent: built-in-type-conversions
weight: 501
---
The `toTime()` function converts a value to a time.

View File

@ -1,11 +1,13 @@
---
title: toUInt() function
description: The toUInt() function converts a value to an uinteger.
aliases:
- /v2.0/reference/flux/functions/transformations/type-conversions/touint
menu:
v2_0_ref:
name: toUInt
parent: Type conversions
weight: 401
parent: built-in-type-conversions
weight: 501
---
The `toUInt()` function converts a value to an UInteger.

View File

@ -1,11 +1,13 @@
---
title: union() function
description: The union() function concatenates two or more input streams into a single output stream.
aliases:
- /v2.0/reference/flux/functions/transformations/union
menu:
v2_0_ref:
name: union
parent: Transformations
weight: 301
parent: built-in-transformations
weight: 401
---
The `union()` function concatenates two or more input streams into a single output stream.

View File

@ -1,11 +1,13 @@
---
title: window() function
description: The window() function groups records based on a time value.
aliases:
- /v2.0/reference/flux/functions/transformations/window
menu:
v2_0_ref:
name: window
parent: Transformations
weight: 301
parent: built-in-transformations
weight: 401
---
The `window()` function groups records based on a time value.

View File

@ -0,0 +1,11 @@
---
title: InfluxDB v1 Flux functions
description: placeholder
menu:
v2_0_ref:
name: InfluxDB v1
parent: Flux functions
weight: 202
---
Placeholder

View File

@ -0,0 +1,11 @@
---
title: String Flux functions
description: placeholder
menu:
v2_0_ref:
name: Strings
parent: Flux functions
weight: 203
---
Placeholder