Merge pull request #454 from influxdata/flux/directory-restructure

Flux documentation directory restructure
pull/460/head
Scott Anderson 2019-09-11 14:43:01 -06:00 committed by GitHub
commit 102c6bf1ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
308 changed files with 802 additions and 327 deletions

View File

@ -117,7 +117,7 @@ The primary differences between InfluxDB OSS 2.0 and InfluxDB Cloud 2.0 are:
targets are not available in {{< cloud-name "short" >}}. targets are not available in {{< cloud-name "short" >}}.
- {{< cloud-name "short" >}} instances are currently limited to a single organization with a single user. - {{< cloud-name "short" >}} instances are currently limited to a single organization with a single user.
- Retrieving data from a file based CSV source using the `file` parameter of the - Retrieving data from a file based CSV source using the `file` parameter of the
[`csv.from()`](/v2/reference/flux/functions/csv/from) function is not supported; [`csv.from()`](/v2.0/reference/flux/functions/csv/from) function is not supported;
however you can use raw CSV data with the `csv` parameter. however you can use raw CSV data with the `csv` parameter.
- Multi-organization accounts and multi-user organizations are currently not - Multi-organization accounts and multi-user organizations are currently not
available in {{< cloud-name >}}. available in {{< cloud-name >}}.

View File

@ -82,7 +82,7 @@ A check consists of two parts a query and check configuration.
{{% note %}} {{% note %}}
#### Flux only interpolates string values #### Flux only interpolates string values
Flux currently interpolates only string values. Flux currently interpolates only string values.
Use the [string() function](/v2.0/reference/flux/functions/built-in/transformations/type-conversions/string/) Use the [string() function](/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/string/)
to convert non-string values to strings. to convert non-string values to strings.
```js ```js

View File

@ -32,7 +32,7 @@ A separate bucket where aggregated, downsampled data is stored.
To downsample data, it must be aggregated in some way. To downsample data, it must be aggregated in some way.
What specific method of aggregation you use depends on your specific use case, What specific method of aggregation you use depends on your specific use case,
but examples include mean, median, top, bottom, etc. but examples include mean, median, top, bottom, etc.
View [Flux's aggregate functions](/v2.0/reference/flux/functions/built-in/transformations/aggregates/) View [Flux's aggregate functions](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/)
for more information and ideas. for more information and ideas.
## Create a destination bucket ## Create a destination bucket
@ -47,7 +47,7 @@ The example task script below is a very basic form of data downsampling that doe
1. Defines a task named "cq-mem-data-1w" that runs once a week. 1. Defines a task named "cq-mem-data-1w" that runs once a week.
2. Defines a `data` variable that represents all data from the last 2 weeks in the 2. Defines a `data` variable that represents all data from the last 2 weeks in the
`mem` measurement of the `system-data` bucket. `mem` measurement of the `system-data` bucket.
3. Uses the [`aggregateWindow()` function](/v2.0/reference/flux/functions/built-in/transformations/aggregates/aggregatewindow/) 3. Uses the [`aggregateWindow()` function](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/aggregatewindow/)
to window the data into 1 hour intervals and calculate the average of each interval. to window the data into 1 hour intervals and calculate the average of each interval.
4. Stores the aggregated data in the `system-data-downsampled` bucket under the 4. Stores the aggregated data in the `system-data-downsampled` bucket under the
`my-org` organization. `my-org` organization.

View File

@ -54,8 +54,8 @@ in form fields when creating the task.
{{% /note %}} {{% /note %}}
## Define a data source ## Define a data source
Define a data source using Flux's [`from()` function](/v2.0/reference/flux/functions/built-in/inputs/from/) Define a data source using Flux's [`from()` function](/v2.0/reference/flux/stdlib/built-in/inputs/from/)
or any other [Flux input functions](/v2.0/reference/flux/functions/built-in/inputs/). or any other [Flux input functions](/v2.0/reference/flux/stdlib/built-in/inputs/).
For convenience, consider creating a variable that includes the sourced data with For convenience, consider creating a variable that includes the sourced data with
the required time range and any relevant filters. the required time range and any relevant filters.
@ -88,7 +88,7 @@ specific use case.
The example below illustrates a task that downsamples data by calculating the average of set intervals. The example below illustrates a task that downsamples data by calculating the average of set intervals.
It uses the `data` variable defined [above](#define-a-data-source) as the data source. It uses the `data` variable defined [above](#define-a-data-source) as the data source.
It then windows the data into 5 minute intervals and calculates the average of each It then windows the data into 5 minute intervals and calculates the average of each
window using the [`aggregateWindow()` function](/v2.0/reference/flux/functions/built-in/transformations/aggregates/aggregatewindow/). window using the [`aggregateWindow()` function](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/aggregatewindow/).
```js ```js
data data
@ -104,7 +104,7 @@ _See [Common tasks](/v2.0/process-data/common-tasks) for examples of tasks commo
In the vast majority of task use cases, once data is transformed, it needs to sent and stored somewhere. In the vast majority of task use cases, once data is transformed, it needs to sent and stored somewhere.
This could be a separate bucket with a different retention policy, another measurement, or even an alert endpoint _(Coming)_. This could be a separate bucket with a different retention policy, another measurement, or even an alert endpoint _(Coming)_.
The example below uses Flux's [`to()` function](/v2.0/reference/flux/functions/built-in/outputs/to) The example below uses Flux's [`to()` function](/v2.0/reference/flux/stdlib/built-in/outputs/to)
to send the transformed data to another bucket: to send the transformed data to another bucket:
```js ```js

View File

@ -11,7 +11,7 @@ menu:
parent: Query data parent: Query data
related: related:
- /v2.0/reference/flux/ - /v2.0/reference/flux/
- /v2.0/reference/flux/functions/ - /v2.0/reference/flux/stdlib/
--- ---
Flux is InfluxData's functional data scripting language designed for querying, Flux is InfluxData's functional data scripting language designed for querying,

View File

@ -9,9 +9,9 @@ menu:
weight: 201 weight: 201
related: related:
- /v2.0/query-data/guides/ - /v2.0/query-data/guides/
- /v2.0/reference/flux/functions/built-in/inputs/from - /v2.0/reference/flux/stdlib/built-in/inputs/from
- /v2.0/reference/flux/functions/built-in/transformations/range - /v2.0/reference/flux/stdlib/built-in/transformations/range
- /v2.0/reference/flux/functions/built-in/transformations/filter - /v2.0/reference/flux/stdlib/built-in/transformations/filter
--- ---
This guide walks through the basics of using Flux to query data from InfluxDB. This guide walks through the basics of using Flux to query data from InfluxDB.
@ -23,8 +23,8 @@ Every Flux query needs the following:
## 1. Define your data source ## 1. Define your data source
Flux's [`from()`](/v2.0/reference/flux/functions/built-in/inputs/from) function defines an InfluxDB data source. Flux's [`from()`](/v2.0/reference/flux/stdlib/built-in/inputs/from) function defines an InfluxDB data source.
It requires a [`bucket`](/v2.0/reference/flux/functions/built-in/inputs/from#bucket) parameter. It requires a [`bucket`](/v2.0/reference/flux/stdlib/built-in/inputs/from#bucket) parameter.
The following examples use `example-bucket` as the bucket name. The following examples use `example-bucket` as the bucket name.
```js ```js
@ -36,7 +36,7 @@ Flux requires a time range when querying time series data.
"Unbounded" queries are very resource-intensive and as a protective measure, "Unbounded" queries are very resource-intensive and as a protective measure,
Flux will not query the database without a specified range. Flux will not query the database without a specified range.
Use the pipe-forward operator (`|>`) to pipe data from your data source into the [`range()`](/v2.0/reference/flux/functions/built-in/transformations/range) Use the pipe-forward operator (`|>`) to pipe data from your data source into the [`range()`](/v2.0/reference/flux/stdlib/built-in/transformations/range)
function, which specifies a time range for your query. function, which specifies a time range for your query.
It accepts two properties: `start` and `stop`. It accepts two properties: `start` and `stop`.
Ranges can be **relative** using negative [durations](/v2.0/reference/flux/language/lexical-elements#duration-literals) Ranges can be **relative** using negative [durations](/v2.0/reference/flux/language/lexical-elements#duration-literals)

View File

@ -8,15 +8,15 @@ menu:
parent: Get started with Flux parent: Get started with Flux
weight: 202 weight: 202
related: related:
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/aggregatewindow - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/aggregatewindow
- /v2.0/reference/flux/functions/built-in/transformations/window - /v2.0/reference/flux/stdlib/built-in/transformations/window
--- ---
When [querying data from InfluxDB](/v2.0/query-data/get-started/query-influxdb), When [querying data from InfluxDB](/v2.0/query-data/get-started/query-influxdb),
you often need to transform that data in some way. you often need to transform that data in some way.
Common examples are aggregating data into averages, downsampling data, etc. Common examples are aggregating data into averages, downsampling data, etc.
This guide demonstrates using [Flux functions](/v2.0/reference/flux/functions) to transform your data. This guide demonstrates using [Flux functions](/v2.0/reference/flux/stdlib) to transform your data.
It walks through creating a Flux script that partitions data into windows of time, It walks through creating a Flux script that partitions data into windows of time,
averages the `_value`s in each window, and outputs the averages as a new table. averages the `_value`s in each window, and outputs the averages as a new table.
@ -39,13 +39,13 @@ from(bucket:"example-bucket")
## Flux functions ## Flux functions
Flux provides a number of functions that perform specific operations, transformations, and tasks. Flux provides a number of functions that perform specific operations, transformations, and tasks.
You can also [create custom functions](/v2.0/query-data/guides/custom-functions) in your Flux queries. You can also [create custom functions](/v2.0/query-data/guides/custom-functions) in your Flux queries.
_Functions are covered in detail in the [Flux functions](/v2.0/reference/flux/functions) documentation._ _Functions are covered in detail in the [Flux functions](/v2.0/reference/flux/stdlib) documentation._
A common type of function used when transforming data queried from InfluxDB is an aggregate function. A common type of function used when transforming data queried from InfluxDB is an aggregate function.
Aggregate functions take a set of `_value`s in a table, aggregate them, and transform Aggregate functions take a set of `_value`s in a table, aggregate them, and transform
them into a new value. them into a new value.
This example uses the [`mean()` function](/v2.0/reference/flux/functions/built-in/transformations/aggregates/mean) This example uses the [`mean()` function](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/mean)
to average values within each time window. to average values within each time window.
{{% note %}} {{% note %}}
@ -55,7 +55,7 @@ It's just good to understand the steps in the process.
{{% /note %}} {{% /note %}}
## Window your data ## Window your data
Flux's [`window()` function](/v2.0/reference/flux/functions/built-in/transformations/window) partitions records based on a time value. Flux's [`window()` function](/v2.0/reference/flux/stdlib/built-in/transformations/window) partitions records based on a time value.
Use the `every` parameter to define a duration of each window. Use the `every` parameter to define a duration of each window.
For this example, window data in five minute intervals (`5m`). For this example, window data in five minute intervals (`5m`).
@ -78,7 +78,7 @@ When visualized, each table is assigned a unique color.
## Aggregate windowed data ## Aggregate windowed data
Flux aggregate functions take the `_value`s in each table and aggregate them in some way. Flux aggregate functions take the `_value`s in each table and aggregate them in some way.
Use the [`mean()` function](/v2.0/reference/flux/functions/built-in/transformations/aggregates/mean) to average the `_value`s of each table. Use the [`mean()` function](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/mean) to average the `_value`s of each table.
```js ```js
from(bucket:"example-bucket") from(bucket:"example-bucket")
@ -104,7 +104,7 @@ Aggregate functions don't infer what time should be used for the aggregate value
Therefore the `_time` column is dropped. Therefore the `_time` column is dropped.
A `_time` column is required in the [next operation](#unwindow-aggregate-tables). A `_time` column is required in the [next operation](#unwindow-aggregate-tables).
To add one, use the [`duplicate()` function](/v2.0/reference/flux/functions/built-in/transformations/duplicate) To add one, use the [`duplicate()` function](/v2.0/reference/flux/stdlib/built-in/transformations/duplicate)
to duplicate the `_stop` column as the `_time` column for each windowed table. to duplicate the `_stop` column as the `_time` column for each windowed table.
```js ```js
@ -149,7 +149,7 @@ process helps to understand how data changes "shape" as it is passed through eac
Flux provides (and allows you to create) "helper" functions that abstract many of these steps. Flux provides (and allows you to create) "helper" functions that abstract many of these steps.
The same operation performed in this guide can be accomplished using the The same operation performed in this guide can be accomplished using the
[`aggregateWindow()` function](/v2.0/reference/flux/functions/built-in/transformations/aggregates/aggregatewindow). [`aggregateWindow()` function](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/aggregatewindow).
```js ```js
from(bucket:"example-bucket") from(bucket:"example-bucket")

View File

@ -27,9 +27,9 @@ Conditional expressions are most useful in the following contexts:
- When defining variables. - When defining variables.
- When using functions that operate on a single row at a time ( - When using functions that operate on a single row at a time (
[`filter()`](/v2.0/reference/flux/functions/built-in/transformations/filter/), [`filter()`](/v2.0/reference/flux/stdlib/built-in/transformations/filter/),
[`map()`](/v2.0/reference/flux/functions/built-in/transformations/map/), [`map()`](/v2.0/reference/flux/stdlib/built-in/transformations/map/),
[`reduce()`](/v2.0/reference/flux/functions/built-in/transformations/aggregates/reduce) ). [`reduce()`](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/reduce) ).
## Examples ## Examples
@ -72,7 +72,7 @@ from(bucket: "example-bucket")
### Conditionally transform column values with map() ### Conditionally transform column values with map()
The following example uses the [`map()` function](/v2.0/reference/flux/functions/built-in/transformations/map/) The following example uses the [`map()` function](/v2.0/reference/flux/stdlib/built-in/transformations/map/)
to conditionally transform column values. to conditionally transform column values.
It sets the `level` column to a specific string based on `_value` column. It sets the `level` column to a specific string based on `_value` column.
@ -119,8 +119,8 @@ from(bucket: "example-bucket")
{{< /code-tabs-wrapper >}} {{< /code-tabs-wrapper >}}
### Conditionally increment a count with reduce() ### Conditionally increment a count with reduce()
The following example uses the [`aggregateWindow()`](/v2.0/reference/flux/functions/built-in/transformations/aggregates/aggregatewindow/) The following example uses the [`aggregateWindow()`](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/aggregatewindow/)
and [`reduce()`](/v2.0/reference/flux/functions/built-in/transformations/aggregates/reduce/) and [`reduce()`](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/reduce/)
functions to count the number of records in every five minute window that exceed a defined threshold. functions to count the number of records in every five minute window that exceed a defined threshold.
{{< code-tabs-wrapper >}} {{< code-tabs-wrapper >}}

View File

@ -70,7 +70,7 @@ functionName = (tables=<-) => tables |> functionOperations
###### Multiply row values by x ###### Multiply row values by x
The example below defines a `multByX` function that multiplies the `_value` column The example below defines a `multByX` function that multiplies the `_value` column
of each row in the input table by the `x` parameter. of each row in the input table by the `x` parameter.
It uses the [`map()` function](/v2.0/reference/flux/functions/built-in/transformations/map) It uses the [`map()` function](/v2.0/reference/flux/stdlib/built-in/transformations/map)
to modify each `_value`. to modify each `_value`.
```js ```js
@ -104,9 +104,9 @@ Defaults are overridden by explicitly defining the parameter in the function cal
###### Get the winner or the "winner" ###### Get the winner or the "winner"
The example below defines a `getWinner` function that returns the record with the highest The example below defines a `getWinner` function that returns the record with the highest
or lowest `_value` (winner versus "winner") depending on the `noSarcasm` parameter which defaults to `true`. or lowest `_value` (winner versus "winner") depending on the `noSarcasm` parameter which defaults to `true`.
It uses the [`sort()` function](/v2.0/reference/flux/functions/built-in/transformations/sort) It uses the [`sort()` function](/v2.0/reference/flux/stdlib/built-in/transformations/sort)
to sort records in either descending or ascending order. to sort records in either descending or ascending order.
It then uses the [`limit()` function](/v2.0/reference/flux/functions/built-in/transformations/limit) It then uses the [`limit()` function](/v2.0/reference/flux/stdlib/built-in/transformations/limit)
to return the first record from the sorted table. to return the first record from the sorted table.
```js ```js

View File

@ -10,9 +10,9 @@ weight: 301
--- ---
To aggregate your data, use the Flux To aggregate your data, use the Flux
[built-in aggregate functions](/v2.0/reference/flux/functions/built-in/transformations/aggregates/) [built-in aggregate functions](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/)
or create custom aggregate functions using the or create custom aggregate functions using the
[`reduce()`function](/v2.0/reference/flux/functions/built-in/transformations/aggregates/reduce/). [`reduce()`function](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/reduce/).
## Aggregate function characteristics ## Aggregate function characteristics
Aggregate functions all have the same basic characteristics: Aggregate functions all have the same basic characteristics:
@ -22,7 +22,7 @@ Aggregate functions all have the same basic characteristics:
## How reduce() works ## How reduce() works
The `reduce()` function operates on one row at a time using the function defined in The `reduce()` function operates on one row at a time using the function defined in
the [`fn` parameter](/v2.0/reference/flux/functions/built-in/transformations/aggregates/reduce/#fn). the [`fn` parameter](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/reduce/#fn).
The `fn` function maps keys to specific values using two [objects](/v2.0/query-data/get-started/syntax-basics/#objects) The `fn` function maps keys to specific values using two [objects](/v2.0/query-data/get-started/syntax-basics/#objects)
specified by the following parameters: specified by the following parameters:
@ -32,7 +32,7 @@ specified by the following parameters:
| `accumulator` | An object that contains values used in each row's aggregate calculation. | | `accumulator` | An object that contains values used in each row's aggregate calculation. |
{{% note %}} {{% note %}}
The `reduce()` function's [`identity` parameter](/v2.0/reference/flux/functions/built-in/transformations/aggregates/reduce/#identity) The `reduce()` function's [`identity` parameter](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/reduce/#identity)
defines the initial `accumulator` object. defines the initial `accumulator` object.
{{% /note %}} {{% /note %}}
@ -50,7 +50,7 @@ in an input table.
``` ```
{{% note %}} {{% note %}}
To preserve existing columns, [use the `with` operator](/v2.0/reference/flux/functions/built-in/transformations/aggregates/reduce/#preserve-columns) To preserve existing columns, [use the `with` operator](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/reduce/#preserve-columns)
when mapping values in the `r` object. when mapping values in the `r` object.
{{% /note %}} {{% /note %}}
@ -150,7 +150,7 @@ and the `reduce()` function to aggregate rows in each input table.
### Create a custom average function ### Create a custom average function
This example illustrates how to create a function that averages values in a table. This example illustrates how to create a function that averages values in a table.
_This is meant for demonstration purposes only. _This is meant for demonstration purposes only.
The built-in [`mean()` function](/v2.0/reference/flux/functions/built-in/transformations/aggregates/mean/) The built-in [`mean()` function](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/mean/)
does the same thing and is much more performant._ does the same thing and is much more performant._
{{< code-tabs-wrapper >}} {{< code-tabs-wrapper >}}

View File

@ -28,7 +28,7 @@ Understanding how modifying group keys shapes output data is key to successfully
grouping and transforming data into your desired output. grouping and transforming data into your desired output.
## group() Function ## group() Function
Flux's [`group()` function](/v2.0/reference/flux/functions/built-in/transformations/group) defines the Flux's [`group()` function](/v2.0/reference/flux/stdlib/built-in/transformations/group) defines the
group key for output tables, i.e. grouping records based on values for specific columns. group key for output tables, i.e. grouping records based on values for specific columns.
###### group() example ###### group() example

View File

@ -14,7 +14,7 @@ Histograms provide valuable insight into the distribution of your data.
This guide walks through using Flux's `histogram()` function to transform your data into a **cumulative histogram**. This guide walks through using Flux's `histogram()` function to transform your data into a **cumulative histogram**.
## histogram() function ## histogram() function
The [`histogram()` function](/v2.0/reference/flux/functions/built-in/transformations/histogram) approximates the The [`histogram()` function](/v2.0/reference/flux/stdlib/built-in/transformations/histogram) approximates the
cumulative distribution of a dataset by counting data frequencies for a list of "bins." cumulative distribution of a dataset by counting data frequencies for a list of "bins."
A **bin** is simply a range in which a data point falls. A **bin** is simply a range in which a data point falls.
All data points that are less than or equal to the bound are counted in the bin. All data points that are less than or equal to the bound are counted in the bin.
@ -41,7 +41,7 @@ Flux provides two helper functions for generating histogram bins.
Each generates an array of floats designed to be used in the `histogram()` function's `bins` parameter. Each generates an array of floats designed to be used in the `histogram()` function's `bins` parameter.
### linearBins() ### linearBins()
The [`linearBins()` function](/v2.0/reference/flux/functions/built-in/misc/linearbins) generates a list of linearly separated floats. The [`linearBins()` function](/v2.0/reference/flux/stdlib/built-in/misc/linearbins) generates a list of linearly separated floats.
```js ```js
linearBins(start: 0.0, width: 10.0, count: 10) linearBins(start: 0.0, width: 10.0, count: 10)
@ -50,7 +50,7 @@ linearBins(start: 0.0, width: 10.0, count: 10)
``` ```
### logarithmicBins() ### logarithmicBins()
The [`logarithmicBins()` function](/v2.0/reference/flux/functions/built-in/misc/logarithmicbins) generates a list of exponentially separated floats. The [`logarithmicBins()` function](/v2.0/reference/flux/stdlib/built-in/misc/logarithmicbins) generates a list of exponentially separated floats.
```js ```js
logarithmicBins(start: 1.0, factor: 2.0, count: 10, infinity: true) logarithmicBins(start: 1.0, factor: 2.0, count: 10, infinity: true)

View File

@ -10,7 +10,7 @@ menu:
weight: 205 weight: 205
--- ---
The [`join()` function](/v2.0/reference/flux/functions/built-in/transformations/join) merges two or more The [`join()` function](/v2.0/reference/flux/stdlib/built-in/transformations/join) merges two or more
input streams, whose values are equal on a set of common columns, into a single output stream. input streams, whose values are equal on a set of common columns, into a single output stream.
Flux allows you to join on any columns common between two data streams and opens the door Flux allows you to join on any columns common between two data streams and opens the door
for operations such as cross-measurement joins and math across measurements. for operations such as cross-measurement joins and math across measurements.
@ -205,7 +205,7 @@ These represent the columns with values unique to the two input tables.
## Calculate and create a new table ## Calculate and create a new table
With the two streams of data joined into a single table, use the With the two streams of data joined into a single table, use the
[`map()` function](/v2.0/reference/flux/functions/built-in/transformations/map) [`map()` function](/v2.0/reference/flux/stdlib/built-in/transformations/map)
to build a new table by mapping the existing `_time` column to a new `_time` to build a new table by mapping the existing `_time` column to a new `_time`
column and dividing `_value_mem` by `_value_proc` and mapping it to a column and dividing `_value_mem` by `_value_proc` and mapping it to a
new `_value` column. new `_value` column.

View File

@ -40,7 +40,7 @@ Otherwise, you will get an error similar to:
Error: type error: float != int Error: type error: float != int
``` ```
To convert operands to the same type, use [type-conversion functions](/v2.0/reference/flux/functions/built-in/transformations/type-conversions/) To convert operands to the same type, use [type-conversion functions](/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/)
or manually format operands. or manually format operands.
The operand data type determines the output data type. The operand data type determines the output data type.
For example: For example:
@ -82,7 +82,7 @@ percent(sample: 20.0, total: 80.0)
To transform multiple values in an input stream, your function needs to: To transform multiple values in an input stream, your function needs to:
- [Handle piped-forward data](/v2.0/query-data/guides/custom-functions/#functions-that-manipulate-piped-forward-data). - [Handle piped-forward data](/v2.0/query-data/guides/custom-functions/#functions-that-manipulate-piped-forward-data).
- Use the [`map()` function](/v2.0/reference/flux/functions/built-in/transformations/map) to iterate over each row. - Use the [`map()` function](/v2.0/reference/flux/stdlib/built-in/transformations/map) to iterate over each row.
The example `multiplyByX()` function below includes: The example `multiplyByX()` function below includes:
@ -146,7 +146,7 @@ data
#### Include partial gigabytes #### Include partial gigabytes
Because the original metric (bytes) is an integer, the output of the operation is an integer and does not include partial GBs. Because the original metric (bytes) is an integer, the output of the operation is an integer and does not include partial GBs.
To calculate partial GBs, convert the `_value` column and its values to floats using the To calculate partial GBs, convert the `_value` column and its values to floats using the
[`float()` function](/v2.0/reference/flux/functions/built-in/transformations/type-conversions/float) [`float()` function](/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/float)
and format the denominator in the division operation as a float. and format the denominator in the division operation as a float.
```js ```js

View File

@ -12,7 +12,7 @@ menu:
weight: 206 weight: 206
--- ---
The [`sort()`function](/v2.0/reference/flux/functions/built-in/transformations/sort) The [`sort()`function](/v2.0/reference/flux/stdlib/built-in/transformations/sort)
orders the records within each table. orders the records within each table.
The following example orders system uptime first by region, then host, then value. The following example orders system uptime first by region, then host, then value.
@ -26,7 +26,7 @@ from(bucket:"example-bucket")
|> sort(columns:["region", "host", "_value"]) |> sort(columns:["region", "host", "_value"])
``` ```
The [`limit()` function](/v2.0/reference/flux/functions/built-in/transformations/limit) The [`limit()` function](/v2.0/reference/flux/stdlib/built-in/transformations/limit)
limits the number of records in output tables to a fixed number, `n`. limits the number of records in output tables to a fixed number, `n`.
The following example shows up to 10 records from the past hour. The following example shows up to 10 records from the past hour.
@ -52,6 +52,6 @@ from(bucket:"example-bucket")
``` ```
You now have created a Flux query that sorts and limits data. You now have created a Flux query that sorts and limits data.
Flux also provides the [`top()`](/v2.0/reference/flux/functions/built-in/transformations/selectors/top) Flux also provides the [`top()`](/v2.0/reference/flux/stdlib/built-in/transformations/selectors/top)
and [`bottom()`](/v2.0/reference/flux/functions/built-in/transformations/selectors/bottom) and [`bottom()`](/v2.0/reference/flux/stdlib/built-in/transformations/selectors/bottom)
functions to perform both of these functions at the same time. functions to perform both of these functions at the same time.

View File

@ -12,7 +12,7 @@ weight: 207
--- ---
The [Flux](/v2.0/reference/flux) `sql` package provides functions for working with SQL data sources. The [Flux](/v2.0/reference/flux) `sql` package provides functions for working with SQL data sources.
[`sql.from()`](/v2.0/reference/flux/functions/sql/from/) lets you query SQL data sources [`sql.from()`](/v2.0/reference/flux/stdlib/sql/from/) lets you query SQL data sources
like [PostgreSQL](https://www.postgresql.org/) and [MySQL](https://www.mysql.com/) like [PostgreSQL](https://www.postgresql.org/) and [MySQL](https://www.mysql.com/)
and use the results with InfluxDB dashboards, tasks, and other operations. and use the results with InfluxDB dashboards, tasks, and other operations.
@ -59,7 +59,7 @@ sql.from(
{{% /code-tab-content %}} {{% /code-tab-content %}}
{{< /code-tabs-wrapper >}} {{< /code-tabs-wrapper >}}
_See the [`sql.from()` documentation](/v2.0/reference/flux/functions/sql/from/) for _See the [`sql.from()` documentation](/v2.0/reference/flux/stdlib/sql/from/) for
information about required function parameters._ information about required function parameters._
## Join SQL data with data in InfluxDB ## Join SQL data with data in InfluxDB

View File

@ -86,7 +86,7 @@ Table: keys: [_start, _stop, _field, _measurement]
{{% /truncate %}} {{% /truncate %}}
## Windowing data ## Windowing data
Use the [`window()` function](/v2.0/reference/flux/functions/built-in/transformations/window) Use the [`window()` function](/v2.0/reference/flux/stdlib/built-in/transformations/window)
to group your data based on time bounds. to group your data based on time bounds.
The most common parameter passed with the `window()` is `every` which The most common parameter passed with the `window()` is `every` which
defines the duration of time between windows. defines the duration of time between windows.
@ -170,14 +170,14 @@ When visualized in the InfluxDB UI, each window table is displayed in a differen
![Windowed data](/img/simple-windowed-data.png) ![Windowed data](/img/simple-windowed-data.png)
## Aggregate data ## Aggregate data
[Aggregate functions](/v2.0/reference/flux/functions/built-in/transformations/aggregates) take the values [Aggregate functions](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates) take the values
of all rows in a table and use them to perform an aggregate operation. of all rows in a table and use them to perform an aggregate operation.
The result is output as a new value in a single-row table. The result is output as a new value in a single-row table.
Since windowed data is split into separate tables, aggregate operations run against Since windowed data is split into separate tables, aggregate operations run against
each table separately and output new tables containing only the aggregated value. each table separately and output new tables containing only the aggregated value.
For this example, use the [`mean()` function](/v2.0/reference/flux/functions/built-in/transformations/aggregates/mean) For this example, use the [`mean()` function](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/mean)
to output the average of each window: to output the average of each window:
```js ```js
@ -241,7 +241,7 @@ These represent the lower and upper bounds of the time window.
Many Flux functions rely on the `_time` column. Many Flux functions rely on the `_time` column.
To further process your data after an aggregate function, you need to re-add `_time`. To further process your data after an aggregate function, you need to re-add `_time`.
Use the [`duplicate()` function](/v2.0/reference/flux/functions/built-in/transformations/duplicate) to Use the [`duplicate()` function](/v2.0/reference/flux/stdlib/built-in/transformations/duplicate) to
duplicate either the `_start` or `_stop` column as a new `_time` column. duplicate either the `_start` or `_stop` column as a new `_time` column.
```js ```js
@ -329,7 +329,7 @@ With the aggregate values in a single table, data points in the visualization ar
You have now created a Flux query that windows and aggregates data. You have now created a Flux query that windows and aggregates data.
The data transformation process outlined in this guide should be used for all aggregation operations. The data transformation process outlined in this guide should be used for all aggregation operations.
Flux also provides the [`aggregateWindow()` function](/v2.0/reference/flux/functions/built-in/transformations/aggregates/aggregatewindow) Flux also provides the [`aggregateWindow()` function](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/aggregatewindow)
which performs all these separate functions for you. which performs all these separate functions for you.
The following Flux query will return the same results: The following Flux query will return the same results:

View File

@ -8,7 +8,7 @@ menu:
name: Annotated CSV name: Annotated CSV
--- ---
Annotated CSV (comma-separated values) format is used to encode HTTP responses and results returned to the Flux [`csv.from()` function](https://v2.docs.influxdata.com/v2.0/reference/flux/functions/csv/from/). Annotated CSV (comma-separated values) format is used to encode HTTP responses and results returned to the Flux [`csv.from()` function](https://v2.docs.influxdata.com/v2.0/reference/flux/stdlib/csv/from/).
CSV tables must be encoded in UTF-8 and Unicode Normal Form C as defined in [UAX15](http://www.unicode.org/reports/tr15/). Line endings must be CRLF (Carriage Return Line Feed) as defined by the `text/csv` MIME type in [RFC 4180](https://tools.ietf.org/html/rfc4180). CSV tables must be encoded in UTF-8 and Unicode Normal Form C as defined in [UAX15](http://www.unicode.org/reports/tr15/). Line endings must be CRLF (Carriage Return Line Feed) as defined by the `text/csv` MIME type in [RFC 4180](https://tools.ietf.org/html/rfc4180).

View File

@ -8,7 +8,7 @@ menu:
weight: 4 weight: 4
--- ---
The following articles are meant as a reference for Flux functions and the The following articles are meant as a reference for the Flux standard library and
Flux language specification. the Flux language specification.
{{< children >}} {{< children >}}

View File

@ -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 >}}

View File

@ -30,7 +30,7 @@ name = "John"
{{% note %}} {{% note %}}
#### Flux only interpolates string values #### Flux only interpolates string values
Flux currently interpolates only string values ([IMP#1775](https://github.com/influxdata/flux/issues/1775)). Flux currently interpolates only string values ([IMP#1775](https://github.com/influxdata/flux/issues/1775)).
Use the [string() function](/v2.0/reference/flux/functions/built-in/transformations/type-conversions/string/) Use the [string() function](/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/string/)
to convert non-string values to strings. to convert non-string values to strings.
```js ```js

View File

@ -0,0 +1,18 @@
---
title: Flux standard library
description: >
The Flux standard library includes built-in functions and importable packages
that retrieve, transform, process, and output data.
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 includes built-in functions and importable packages
that retrieve, transform,rocess, and output data.
{{< children >}}

View File

@ -1,10 +1,12 @@
--- ---
title: Complete list of Flux functions title: Complete list of Flux functions
description: View the full library of documented Flux functions. description: View the full library of documented Flux functions.
aliases:
- /v2.0/reference/flux/functions/all-functions/
menu: menu:
v2_0_ref: v2_0_ref:
name: View all functions name: View all functions
parent: Flux packages and functions parent: Flux standard library
weight: 299 weight: 299
--- ---

View File

@ -4,10 +4,12 @@ list_title: Built-in functions
description: > description: >
Built-in functions provide a foundation for working with data using Flux. 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. They do not require an import statement and are usable without any extra setup.
aliases:
- /v2.0/reference/flux/functions/built-in/
menu: menu:
v2_0_ref: v2_0_ref:
name: Built-in name: Built-in
parent: Flux packages and functions parent: Flux standard library
weight: 201 weight: 201
v2.0/tags: [built-in, functions, package] v2.0/tags: [built-in, functions, package]
--- ---

View File

@ -3,7 +3,8 @@ title: Flux built-in input functions
list_title: 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. description: Flux's built-in input functions define sources of data or or display information about data sources.
aliases: aliases:
- /v2.0/reference/flux/functions/inputs - /v2.0/reference/flux/functions/inputs
- /v2.0/reference/flux/functions/built-in/inputs/
menu: menu:
v2_0_ref: v2_0_ref:
parent: Built-in parent: Built-in

View File

@ -3,6 +3,7 @@ title: buckets() function
description: The `buckets()` function returns a list of buckets in the organization. description: The `buckets()` function returns a list of buckets in the organization.
aliases: aliases:
- /v2.0/reference/flux/functions/inputs/buckets - /v2.0/reference/flux/functions/inputs/buckets
- /v2.0/reference/flux/functions/built-in/inputs/buckets/
menu: menu:
v2_0_ref: v2_0_ref:
name: buckets name: buckets

View File

@ -3,6 +3,7 @@ title: from() function
description: The `from()` function retrieves data from an InfluxDB data source. description: The `from()` function retrieves data from an InfluxDB data source.
aliases: aliases:
- /v2.0/reference/flux/functions/inputs/from - /v2.0/reference/flux/functions/inputs/from
- /v2.0/reference/flux/functions/built-in/inputs/from/
menu: menu:
v2_0_ref: v2_0_ref:
name: from name: from

View File

@ -6,6 +6,7 @@ description: >
retrieving, transforming, or outputting data. retrieving, transforming, or outputting data.
aliases: aliases:
- /v2.0/reference/flux/functions/misc - /v2.0/reference/flux/functions/misc
- /v2.0/reference/flux/functions/built-in/misc/
menu: menu:
v2_0_ref: v2_0_ref:
parent: Built-in parent: Built-in

View File

@ -3,6 +3,7 @@ title: intervals() function
description: The `intervals()` function generates a set of time intervals over a range of time. description: The `intervals()` function generates a set of time intervals over a range of time.
aliases: aliases:
- /v2.0/reference/flux/functions/misc/intervals - /v2.0/reference/flux/functions/misc/intervals
- /v2.0/reference/flux/functions/built-in/misc/intervals/
menu: menu:
v2_0_ref: v2_0_ref:
name: intervals name: intervals
@ -20,7 +21,7 @@ The set of intervals includes all intervals that intersect with the initial rang
{{% note %}} {{% note %}}
The `intervals()` function is designed to be used with the intervals parameter The `intervals()` function is designed to be used with the intervals parameter
of the [`window()` function](/v2.0/reference/flux/functions/built-in/transformations/window). of the [`window()` function](/v2.0/reference/flux/stdlib/built-in/transformations/window).
{{% /note %}} {{% /note %}}
By default the end boundary of an interval will align with the Unix epoch (zero time) By default the end boundary of an interval will align with the Unix epoch (zero time)

View File

@ -3,6 +3,7 @@ title: linearBins() function
description: The `linearBins()` function generates a list of linearly separated floats. description: The `linearBins()` function generates a list of linearly separated floats.
aliases: aliases:
- /v2.0/reference/flux/functions/misc/linearbins - /v2.0/reference/flux/functions/misc/linearbins
- /v2.0/reference/flux/functions/built-in/misc/linearbins/
menu: menu:
v2_0_ref: v2_0_ref:
name: linearBins name: linearBins
@ -12,7 +13,7 @@ weight: 401
The `linearBins()` function generates a list of linearly separated floats. The `linearBins()` function generates a list of linearly separated floats.
It is a helper function meant to generate bin bounds for the It is a helper function meant to generate bin bounds for the
[`histogram()` function](/v2.0/reference/flux/functions/built-in/transformations/histogram). [`histogram()` function](/v2.0/reference/flux/stdlib/built-in/transformations/histogram).
_**Function type:** Miscellaneous_ _**Function type:** Miscellaneous_
_**Output data type:** Array of floats_ _**Output data type:** Array of floats_

View File

@ -3,6 +3,7 @@ title: logarithmicBins() function
description: The `logarithmicBins()` function generates a list of exponentially separated floats. description: The `logarithmicBins()` function generates a list of exponentially separated floats.
aliases: aliases:
- /v2.0/reference/flux/functions/misc/logarithmicbins - /v2.0/reference/flux/functions/misc/logarithmicbins
- /v2.0/reference/flux/functions/built-in/misc/logarithmicbins/
menu: menu:
v2_0_ref: v2_0_ref:
name: logarithmicBins name: logarithmicBins
@ -12,7 +13,7 @@ weight: 401
The `logarithmicBins()` function generates a list of exponentially separated floats. The `logarithmicBins()` function generates a list of exponentially separated floats.
It is a helper function meant to generate bin bounds for the It is a helper function meant to generate bin bounds for the
[`histogram()` function](/v2.0/reference/flux/functions/built-in/transformations/histogram). [`histogram()` function](/v2.0/reference/flux/stdlib/built-in/transformations/histogram).
_**Function type:** Miscellaneous_ _**Function type:** Miscellaneous_
_**Output data type:** Array of floats_ _**Output data type:** Array of floats_

View File

@ -1,6 +1,8 @@
--- ---
title: now() function title: now() function
description: The `now()` function returns the current time (UTC). description: The `now()` function returns the current time (UTC).
aliases:
- /v2.0/reference/flux/functions/built-in/misc/now/
menu: menu:
v2_0_ref: v2_0_ref:
name: now name: now

View File

@ -1,6 +1,8 @@
--- ---
title: sleep() function title: sleep() function
description: The `sleep()` function delays execution by a specified duration. description: The `sleep()` function delays execution by a specified duration.
aliases:
- /v2.0/reference/flux/functions/built-in/misc/sleep/
menu: menu:
v2_0_ref: v2_0_ref:
name: sleep name: sleep

View File

@ -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. description: Flux's built-in output functions yield results or send data to a specified output destination.
aliases: aliases:
- /v2.0/reference/flux/functions/outputs - /v2.0/reference/flux/functions/outputs
- /v2.0/reference/flux/functions/built-in/outputs/
menu: menu:
v2_0_ref: v2_0_ref:
parent: Built-in parent: Built-in

View File

@ -3,6 +3,7 @@ title: to() function
description: The `to()` function writes data to an InfluxDB v2.0 bucket. description: The `to()` function writes data to an InfluxDB v2.0 bucket.
aliases: aliases:
- /v2.0/reference/flux/functions/outputs/to - /v2.0/reference/flux/functions/outputs/to
- /v2.0/reference/flux/functions/built-in/outputs/to/
menu: menu:
v2_0_ref: v2_0_ref:
name: to name: to

View File

@ -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. description: The `yield()` function indicates the input tables received should be delivered as a result of the query.
aliases: aliases:
- /v2.0/reference/flux/functions/outputs/yield - /v2.0/reference/flux/functions/outputs/yield
- /v2.0/reference/flux/functions/built-in/outputs/yield/
menu: menu:
v2_0_ref: v2_0_ref:
name: yield name: yield

View File

@ -2,6 +2,8 @@
title: Flux built-in testing functions title: Flux built-in testing functions
list_title: Built-in testing functions list_title: Built-in testing functions
description: Flux's built-in testing functions test various aspects of piped-forward data. description: Flux's built-in testing functions test various aspects of piped-forward data.
aliases:
- /v2.0/reference/flux/functions/built-in/tests/
menu: menu:
v2_0_ref: v2_0_ref:
name: Tests name: Tests

View File

@ -1,6 +1,8 @@
--- ---
title: contains() function title: contains() function
description: The `contains()` function tests whether a value is a member of a set. 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: menu:
v2_0_ref: v2_0_ref:
name: contains name: contains

View File

@ -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. description: Flux's built-in transformation functions transform and shape your data in specific ways.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations - /v2.0/reference/flux/functions/transformations
- /v2.0/reference/flux/functions/built-in/transformations/
menu: menu:
v2_0_ref: v2_0_ref:
parent: Built-in parent: Built-in

View File

@ -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. description: Flux's built-in aggregate functions take values from an input table and aggregate them in some way.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/aggregates - /v2.0/reference/flux/functions/transformations/aggregates
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/
menu: menu:
v2_0_ref: v2_0_ref:
parent: built-in-transformations parent: built-in-transformations
@ -29,7 +30,7 @@ Any output table will have the following properties:
- It will not have a `_time` column. - It will not have a `_time` column.
### aggregateWindow helper function ### aggregateWindow helper function
The [`aggregateWindow()` function](/v2.0/reference/flux/functions/built-in/transformations/aggregates/aggregatewindow) The [`aggregateWindow()` function](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/aggregatewindow)
does most of the work needed when aggregating data. does most of the work needed when aggregating data.
It windows and aggregates the data, then combines windowed tables into a single output table. It windows and aggregates the data, then combines windowed tables into a single output table.
@ -43,9 +44,9 @@ The following functions are both aggregates and selectors.
Each returns `n` values after performing an aggregate operation. Each returns `n` values after performing an aggregate operation.
They are categorized as selector functions in this documentation: They are categorized as selector functions in this documentation:
- [highestAverage](/v2.0/reference/flux/functions/transformations/selectors/highestaverage) - [highestAverage](/v2.0/reference/flux/stdlib/built-in/transformations/selectors/highestaverage)
- [highestCurrent](/v2.0/reference/flux/functions/transformations/selectors/highestcurrent) - [highestCurrent](/v2.0/reference/flux/stdlib/built-in/transformations/selectors/highestcurrent)
- [highestMax](/v2.0/reference/flux/functions/transformations/selectors/highestmax) - [highestMax](/v2.0/reference/flux/stdlib/built-in/transformations/selectors/highestmax)
- [lowestAverage](/v2.0/reference/flux/functions/transformations/selectors/lowestaverage) - [lowestAverage](/v2.0/reference/flux/stdlib/built-in/transformations/selectors/lowestaverage)
- [lowestCurrent](/v2.0/reference/flux/functions/transformations/selectors/lowestcurrent) - [lowestCurrent](/v2.0/reference/flux/stdlib/built-in/transformations/selectors/lowestcurrent)
- [lowestMin](/v2.0/reference/flux/functions/transformations/selectors/lowestmin) - [lowestMin](/v2.0/reference/flux/stdlib/built-in/transformations/selectors/lowestmin)

View File

@ -3,6 +3,7 @@ title: aggregateWindow() function
description: The `aggregateWindow()` function applies an aggregate function to fixed windows of time. description: The `aggregateWindow()` function applies an aggregate function to fixed windows of time.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/aggregatewindow - /v2.0/reference/flux/functions/transformations/aggregates/aggregatewindow
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/aggregatewindow/
menu: menu:
v2_0_ref: v2_0_ref:
name: aggregateWindow name: aggregateWindow
@ -48,7 +49,7 @@ _**Data type:** Duration_
### fn ### fn
The [aggregate function](/v2.0/reference/flux/functions/built-in/transformations/aggregates) used in the operation. The [aggregate function](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates) used in the operation.
_**Data type:** Function_ _**Data type:** Function_

View File

@ -3,13 +3,15 @@ title: chandeMomentumOscillator() function
description: > description: >
The `chandeMomentumOscillator()` function applies the technical momentum indicator The `chandeMomentumOscillator()` function applies the technical momentum indicator
developed by Tushar Chande. developed by Tushar Chande.
aliases:
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/chandemomentumoscillator/
menu: menu:
v2_0_ref: v2_0_ref:
name: chandeMomentumOscillator name: chandeMomentumOscillator
parent: built-in-aggregates parent: built-in-aggregates
weight: 501 weight: 501
related: related:
- https://docs.influxdata.com/influxdb/v1.7/query_language/functions/#triple-exponential-moving-average, InfluxQL CHANDE_MOMENTUM_OSCILLATOR() - https://docs.influxdata.com/influxdb/latest/query_language/functions/#triple-exponential-moving-average, InfluxQL CHANDE_MOMENTUM_OSCILLATOR()
--- ---
The `chandeMomentumOscillator()` function applies the technical momentum indicator The `chandeMomentumOscillator()` function applies the technical momentum indicator

View File

@ -3,6 +3,7 @@ title: count() function
description: The `count()` function outputs the number of non-null records in a column. description: The `count()` function outputs the number of non-null records in a column.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/count - /v2.0/reference/flux/functions/transformations/aggregates/count
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/count/
menu: menu:
v2_0_ref: v2_0_ref:
name: count name: count

View File

@ -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. description: The `cov()` function computes the covariance between two streams by first joining the streams, then performing the covariance operation.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/cov - /v2.0/reference/flux/functions/transformations/aggregates/cov
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/cov/
menu: menu:
v2_0_ref: v2_0_ref:
name: cov name: cov

View File

@ -3,6 +3,7 @@ title: covariance() function
description: The `covariance()` function computes the covariance between two columns. description: The `covariance()` function computes the covariance between two columns.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/covariance - /v2.0/reference/flux/functions/transformations/aggregates/covariance
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/covariance/
menu: menu:
v2_0_ref: v2_0_ref:
name: covariance name: covariance

View File

@ -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. description: The `derivative()` function computes the rate of change per unit of time between subsequent non-null records.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/derivative - /v2.0/reference/flux/functions/transformations/aggregates/derivative
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/derivative/
menu: menu:
v2_0_ref: v2_0_ref:
name: derivative name: derivative

View File

@ -3,6 +3,7 @@ title: difference() function
description: The `difference()` function computes the difference between subsequent non-null records. description: The `difference()` function computes the difference between subsequent non-null records.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/difference - /v2.0/reference/flux/functions/transformations/aggregates/difference
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/difference/
menu: menu:
v2_0_ref: v2_0_ref:
name: difference name: difference

View File

@ -4,22 +4,24 @@ description: >
The `doubleEMA()` function calculates the exponential moving average of values The `doubleEMA()` function calculates the exponential moving average of values
grouped into `n` number of points, giving more weight to recent data at double grouped into `n` number of points, giving more weight to recent data at double
the rate of `exponentialMovingAverage()`. the rate of `exponentialMovingAverage()`.
aliases:
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/doubleema/
menu: menu:
v2_0_ref: v2_0_ref:
name: doubleEMA name: doubleEMA
parent: built-in-aggregates parent: built-in-aggregates
weight: 501 weight: 501
related: related:
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/movingaverage/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/movingaverage/
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/tripleema/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/tripleema/
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/timedmovingaverage/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/timedmovingaverage/
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/exponentialmovingaverage/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/exponentialmovingaverage/
- https://docs.influxdata.com/influxdb/v1.7/query_language/functions/#double-exponential-moving-average, InfluxQL DOUBLE_EXPONENTIAL_MOVING_AVERAGE() - https://docs.influxdata.com/influxdb/latest/query_language/functions/#double-exponential-moving-average, InfluxQL DOUBLE_EXPONENTIAL_MOVING_AVERAGE()
--- ---
The `doubleEMA()` function calculates the exponential moving average of values in The `doubleEMA()` function calculates the exponential moving average of values in
the `_value` column grouped into `n` number of points, giving more weight to recent the `_value` column grouped into `n` number of points, giving more weight to recent
data at double the rate of [`exponentialMovingAverage()`](/v2.0/reference/flux/functions/built-in/transformations/aggregates/exponentialmovingaverage/). data at double the rate of [`exponentialMovingAverage()`](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/exponentialmovingaverage/).
_**Function type:** Aggregate_ _**Function type:** Aggregate_
@ -33,7 +35,7 @@ doubleEMA(n: 5)
- `N = n` is the period used to calculate the EMA. - `N = n` is the period used to calculate the EMA.
- A true double exponential moving average requires at least `2 * n - 1` values. - A true double exponential moving average requires at least `2 * n - 1` values.
If not enough values exist to calculate the double EMA, it returns a `NaN` value. If not enough values exist to calculate the double EMA, it returns a `NaN` value.
- `doubleEMA()` inherits all [exponential moving average rules](/v2.0/reference/flux/functions/built-in/transformations/aggregates/exponentialmovingaverage/#exponential-moving-average-rules). - `doubleEMA()` inherits all [exponential moving average rules](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/exponentialmovingaverage/#exponential-moving-average-rules).
## Parameters ## Parameters

View File

@ -3,17 +3,19 @@ title: exponentialMovingAverage() function
description: > description: >
The `exponentialMovingAverage()` function calculates the exponential moving average of values 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. 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: menu:
v2_0_ref: v2_0_ref:
name: exponentialMovingAverage name: exponentialMovingAverage
parent: built-in-aggregates parent: built-in-aggregates
weight: 501 weight: 501
related: related:
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/movingaverage/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/movingaverage/
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/timedmovingaverage/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/timedmovingaverage/
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/doubleema/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/doubleema/
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/tripleema/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/tripleema/
- https://docs.influxdata.com/influxdb/v1.7/query_language/functions/#exponential-moving-average, InfluxQL EXPONENTIAL_MOVING_AVERAGE() - https://docs.influxdata.com/influxdb/latest/query_language/functions/#exponential-moving-average, InfluxQL EXPONENTIAL_MOVING_AVERAGE()
--- ---
The `exponentialMovingAverage()` function calculates the exponential moving average of values The `exponentialMovingAverage()` function calculates the exponential moving average of values

View File

@ -5,6 +5,7 @@ description: >
that approximates the cumulative distribution of the dataset. that approximates the cumulative distribution of the dataset.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/histogramquantile - /v2.0/reference/flux/functions/transformations/aggregates/histogramquantile
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/histogramquantile/
menu: menu:
v2_0_ref: v2_0_ref:
name: histogramQuantile name: histogramQuantile

View File

@ -4,6 +4,7 @@ description: >
The `holtWinters()` function applies the Holt-Winters forecasting method to input tables. The `holtWinters()` function applies the Holt-Winters forecasting method to input tables.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/holtwinters - /v2.0/reference/flux/functions/transformations/aggregates/holtwinters
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/holtwinters/
menu: menu:
v2_0_ref: v2_0_ref:
name: holtWinters name: holtWinters
@ -51,10 +52,10 @@ To ensure `holtWinters()` values are spaced evenly in time, the following rules
By default, `holtWinters()` uses the first value in each time bucket to run the Holt-Winters calculation. By default, `holtWinters()` uses the first value in each time bucket to run the Holt-Winters calculation.
To specify other values to use in the calculation, use: To specify other values to use in the calculation, use:
- [`window()`](/v2.0/reference/flux/functions/built-in/transformations/window/) - [`window()`](/v2.0/reference/flux/stdlib/built-in/transformations/window/)
with [selectors](/v2.0/reference/flux/functions/built-in/transformations/selectors/) with [selectors](/v2.0/reference/flux/stdlib/built-in/transformations/selectors/)
or [aggregates](/v2.0/reference/flux/functions/built-in/transformations/aggregates/) or [aggregates](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/)
- [`aggregateWindow()`](/v2.0/reference/flux/functions/built-in/transformations/aggregates/aggregatewindow) - [`aggregateWindow()`](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/aggregatewindow)
#### Fitted model #### Fitted model
The `holtWinters()` function applies the [Nelder-Mead optimization](https://en.wikipedia.org/wiki/Nelder%E2%80%93Mead_method) The `holtWinters()` function applies the [Nelder-Mead optimization](https://en.wikipedia.org/wiki/Nelder%E2%80%93Mead_method)

View File

@ -3,6 +3,7 @@ title: increase() function
description: The `increase()` function calculates the total non-negative difference between values in a table. description: The `increase()` function calculates the total non-negative difference between values in a table.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/increase - /v2.0/reference/flux/functions/transformations/aggregates/increase
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/increase/
menu: menu:
v2_0_ref: v2_0_ref:
name: increase name: increase

View File

@ -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. description: The `integral()` function computes the area under the curve per unit of time of subsequent non-null records.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/integral - /v2.0/reference/flux/functions/transformations/aggregates/integral
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/integral/
menu: menu:
v2_0_ref: v2_0_ref:
name: integral name: integral

View File

@ -3,14 +3,16 @@ title: kaufmansAMA() function
description: > description: >
The `kaufmansAMA()` function calculates the Kaufman's Adaptive Moving Average (KAMA) The `kaufmansAMA()` function calculates the Kaufman's Adaptive Moving Average (KAMA)
using values in an input table. using values in an input table.
aliases:
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/kaufmansama/
menu: menu:
v2_0_ref: v2_0_ref:
name: kaufmansAMA name: kaufmansAMA
parent: built-in-aggregates parent: built-in-aggregates
weight: 501 weight: 501
related: related:
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/kaufmanser/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/kaufmanser/
- https://docs.influxdata.com/influxdb/v1.7/query_language/functions/#kaufmans-adaptive-moving-average, InfluxQL KAUFMANS_ADAPTIVE_MOVING_AVERAGE() - https://docs.influxdata.com/influxdb/latest/query_language/functions/#kaufmans-adaptive-moving-average, InfluxQL KAUFMANS_ADAPTIVE_MOVING_AVERAGE()
--- ---
The `kaufmansAMA()` function calculates the Kaufman's Adaptive Moving Average (KAMA) The `kaufmansAMA()` function calculates the Kaufman's Adaptive Moving Average (KAMA)

View File

@ -3,14 +3,16 @@ title: kaufmansER() function
description: > description: >
The `kaufmansER()` function calculates the Kaufman's Efficiency Ratio (KER) using The `kaufmansER()` function calculates the Kaufman's Efficiency Ratio (KER) using
values in an input table. values in an input table.
aliases:
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/kaufmanser/
menu: menu:
v2_0_ref: v2_0_ref:
name: kaufmansER name: kaufmansER
parent: built-in-aggregates parent: built-in-aggregates
weight: 501 weight: 501
related: related:
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/kaufmansama/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/kaufmansama/
- https://docs.influxdata.com/influxdb/v1.7/query_language/functions/#kaufmans-efficiency-ratio, InfluxQL KAUFMANS_EFFICIENCY_RATIO() - https://docs.influxdata.com/influxdb/latest/query_language/functions/#kaufmans-efficiency-ratio, InfluxQL KAUFMANS_EFFICIENCY_RATIO()
--- ---
The `kaufmansER()` function calculates the Kaufman's Efficiency Ratio (KER) using The `kaufmansER()` function calculates the Kaufman's Efficiency Ratio (KER) using

View File

@ -3,6 +3,7 @@ title: mean() function
description: The `mean()` function computes the mean or average of non-null records in the input table. description: The `mean()` function computes the mean or average of non-null records in the input table.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/mean - /v2.0/reference/flux/functions/transformations/aggregates/mean
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/mean/
menu: menu:
v2_0_ref: v2_0_ref:
name: mean name: mean

View File

@ -5,6 +5,7 @@ description: >
in the input table with values that fall within the `0.5` quantile or 50th percentile. in the input table with values that fall within the `0.5` quantile or 50th percentile.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/median - /v2.0/reference/flux/functions/transformations/aggregates/median
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/median/
menu: menu:
v2_0_ref: v2_0_ref:
name: median name: median
@ -12,7 +13,7 @@ menu:
weight: 501 weight: 501
--- ---
The `median()` function is a special application of the [`quantile()` function](/v2.0/reference/flux/functions/built-in/transformations/aggregates/quantile) The `median()` function is a special application of the [`quantile()` function](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/quantile)
that returns the median `_value` of an input table or all non-null records in the input table that returns the median `_value` of an input table or all non-null records in the input table
with values that fall within the `0.5` quantile (50th percentile) depending on the [method](#method) used. with values that fall within the `0.5` quantile (50th percentile) depending on the [method](#method) used.
@ -36,9 +37,9 @@ value that represents the `0.5` quantile.
{{% note %}} {{% note %}}
The `median()` function can only be used with float value types. The `median()` function can only be used with float value types.
It is a special application of the [`quantile()` function](/v2.0/reference/flux/functions/built-in/transformations/aggregates/quantile) It is a special application of the [`quantile()` function](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/quantile)
which uses an approximation implementation that requires floats. which uses an approximation implementation that requires floats.
You can convert your value column to a float column using the [`toFloat()` function](/v2.0/reference/flux/functions/built-in/transformations/type-conversions/tofloat). You can convert your value column to a float column using the [`toFloat()` function](/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/tofloat).
{{% /note %}} {{% /note %}}
## Parameters ## Parameters

View File

@ -3,6 +3,8 @@ title: mode() function
description: > description: >
The `mode()` function computes the mode or value that occurs most often in a The `mode()` function computes the mode or value that occurs most often in a
specified column in the input table. specified column in the input table.
aliases:
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/mode/
menu: menu:
v2_0_ref: v2_0_ref:
name: mode name: mode
@ -57,4 +59,4 @@ from(bucket: "example-bucket")
<hr style="margin-top:4rem"/> <hr style="margin-top:4rem"/>
##### Related InfluxQL functions and statements: ##### 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)

View File

@ -2,16 +2,18 @@
title: movingAverage() function title: movingAverage() function
description: > description: >
The `movingAverage()` function calculates the mean of values grouped into `n` number of points. 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: menu:
v2_0_ref: v2_0_ref:
name: movingAverage name: movingAverage
parent: built-in-aggregates parent: built-in-aggregates
weight: 501 weight: 501
related: related:
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/timedmovingaverage/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/timedmovingaverage/
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/exponentialmovingaverage/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/exponentialmovingaverage/
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/doubleema/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/doubleema/
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/tripleema/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/tripleema/
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#moving-average, InfluxQL MOVING_AVERAGE() - https://docs.influxdata.com/influxdb/latest/query_language/functions/#moving-average, InfluxQL MOVING_AVERAGE()
--- ---

View File

@ -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. 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: aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/pearsonr - /v2.0/reference/flux/functions/transformations/aggregates/pearsonr
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/pearsonr/
menu: menu:
v2_0_ref: v2_0_ref:
name: pearsonr name: pearsonr

View File

@ -4,6 +4,7 @@ description: The `quantile()` function outputs non-null records with values that
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/percentile - /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/percentile
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/quantile/
menu: menu:
v2_0_ref: v2_0_ref:
name: quantile name: quantile

View File

@ -3,6 +3,8 @@ title: reduce() function
description: > description: >
The `reduce()` function aggregates records in each table according to the reducer, The `reduce()` function aggregates records in each table according to the reducer,
`fn`, providing a way to create custom table aggregations. `fn`, providing a way to create custom table aggregations.
aliases:
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/reduce/
menu: menu:
v2_0_ref: v2_0_ref:
name: reduce name: reduce

View File

@ -3,16 +3,18 @@ title: relativeStrengthIndex() function
description: > description: >
The `relativeStrengthIndex()` function measures the relative speed and change of The `relativeStrengthIndex()` function measures the relative speed and change of
values in an input table. values in an input table.
aliases:
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/relativestrengthindex/
menu: menu:
v2_0_ref: v2_0_ref:
name: relativeStrengthIndex name: relativeStrengthIndex
parent: built-in-aggregates parent: built-in-aggregates
weight: 501 weight: 501
related: related:
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/movingaverage/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/movingaverage/
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/timedmovingaverage/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/timedmovingaverage/
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/exponentialmovingaverage/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/exponentialmovingaverage/
- https://docs.influxdata.com/influxdb/v1.7/query_language/functions/#relative-strength-index, InfluxQL RELATIVE_STRENGTH_INDEX() - https://docs.influxdata.com/influxdb/latest/query_language/functions/#relative-strength-index, InfluxQL RELATIVE_STRENGTH_INDEX()
--- ---
The `relativeStrengthIndex()` function measures the relative speed and change of The `relativeStrengthIndex()` function measures the relative speed and change of

View File

@ -3,6 +3,7 @@ title: skew() function
description: The `skew()` function outputs the skew of non-null records as a float. description: The `skew()` function outputs the skew of non-null records as a float.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/skew - /v2.0/reference/flux/functions/transformations/aggregates/skew
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/skew/
menu: menu:
v2_0_ref: v2_0_ref:
name: skew name: skew

View File

@ -3,6 +3,7 @@ title: spread() function
description: The `spread()` function outputs the difference between the minimum and maximum values in a specified column. description: The `spread()` function outputs the difference between the minimum and maximum values in a specified column.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/spread - /v2.0/reference/flux/functions/transformations/aggregates/spread
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/spread/
menu: menu:
v2_0_ref: v2_0_ref:
name: spread name: spread

View File

@ -3,6 +3,7 @@ title: stddev() function
description: The `stddev()` function computes the standard deviation of non-null records in a specified column. description: The `stddev()` function computes the standard deviation of non-null records in a specified column.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/stddev - /v2.0/reference/flux/functions/transformations/aggregates/stddev
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/stddev/
menu: menu:
v2_0_ref: v2_0_ref:
name: stddev name: stddev

View File

@ -3,6 +3,7 @@ title: sum() function
description: The `sum()` function computes the sum of non-null records in a specified column. description: The `sum()` function computes the sum of non-null records in a specified column.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/aggregates/sum - /v2.0/reference/flux/functions/transformations/aggregates/sum
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/sum/
menu: menu:
v2_0_ref: v2_0_ref:
name: sum name: sum
@ -41,4 +42,4 @@ from(bucket: "example-bucket")
<hr style="margin-top:4rem"/> <hr style="margin-top:4rem"/>
##### Related InfluxQL functions and statements: ##### 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)

View File

@ -3,16 +3,18 @@ title: timedMovingAverage() function
description: > description: >
The `timedMovingAverage()` function calculates the mean of values in a defined time The `timedMovingAverage()` function calculates the mean of values in a defined time
range at a specified frequency. range at a specified frequency.
aliases:
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/timedmovingaverage/
menu: menu:
v2_0_ref: v2_0_ref:
name: timedMovingAverage name: timedMovingAverage
parent: built-in-aggregates parent: built-in-aggregates
weight: 501 weight: 501
related: related:
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/movingaverage/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/movingaverage/
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/exponentialmovingaverage/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/exponentialmovingaverage/
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/doubleema/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/doubleema/
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/tripleema/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/tripleema/
- https://docs.influxdata.com/influxdb/latest/query_language/functions/#moving-average, InfluxQL MOVING_AVERAGE() - https://docs.influxdata.com/influxdb/latest/query_language/functions/#moving-average, InfluxQL MOVING_AVERAGE()
--- ---

View File

@ -4,24 +4,26 @@ description: >
The `tripleEMA()` function calculates the exponential moving average of values 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 grouped into `n` number of points, giving more weight to recent data with less lag
than `exponentialMovingAverage()` and `doubleEMA()`. than `exponentialMovingAverage()` and `doubleEMA()`.
aliases:
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/tripleema/
menu: menu:
v2_0_ref: v2_0_ref:
name: tripleEMA name: tripleEMA
parent: built-in-aggregates parent: built-in-aggregates
weight: 501 weight: 501
related: related:
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/movingaverage/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/movingaverage/
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/doubleema/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/doubleema/
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/timedmovingaverage/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/timedmovingaverage/
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/exponentialmovingaverage/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/exponentialmovingaverage/
- https://docs.influxdata.com/influxdb/v1.7/query_language/functions/#triple-exponential-moving-average, InfluxQL TRIPLE_EXPONENTIAL_MOVING_AVERAGE() - https://docs.influxdata.com/influxdb/latest/query_language/functions/#triple-exponential-moving-average, InfluxQL TRIPLE_EXPONENTIAL_MOVING_AVERAGE()
--- ---
The `tripleEMA()` function calculates the exponential moving average of values in The `tripleEMA()` function calculates the exponential moving average of values in
the `_value` column grouped into `n` number of points, giving more weight to recent the `_value` column grouped into `n` number of points, giving more weight to recent
data with less lag than data with less lag than
[`exponentialMovingAverage()`](/v2.0/reference/flux/functions/built-in/transformations/aggregates/exponentialmovingaverage/) [`exponentialMovingAverage()`](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/exponentialmovingaverage/)
and [`doubleEMA()`](/v2.0/reference/flux/functions/built-in/transformations/aggregates/doubleema/). and [`doubleEMA()`](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/doubleema/).
_**Function type:** Aggregate_ _**Function type:** Aggregate_
@ -36,7 +38,7 @@ tripleEMA(n: 5)
- `EMA_3` is the exponential moving average of `EMA_2`. - `EMA_3` is the exponential moving average of `EMA_2`.
- A true triple exponential moving average requires at least requires at least `3 * n - 2` values. - A true triple exponential moving average requires at least requires at least `3 * n - 2` values.
If not enough values exist to calculate the triple EMA, it returns a `NaN` value. If not enough values exist to calculate the triple EMA, it returns a `NaN` value.
- `tripleEMA()` inherits all [exponential moving average rules](/v2.0/reference/flux/functions/built-in/transformations/aggregates/exponentialmovingaverage/#exponential-moving-average-rules). - `tripleEMA()` inherits all [exponential moving average rules](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/exponentialmovingaverage/#exponential-moving-average-rules).
## Parameters ## Parameters

View File

@ -3,6 +3,8 @@ title: tripleExponentialDerivative() function
description: > description: >
The `tripleExponentialDerivative()` function calculates a triple exponential The `tripleExponentialDerivative()` function calculates a triple exponential
derivative (TRIX) of input tables using `n` points. derivative (TRIX) of input tables using `n` points.
aliases:
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/tripleexponentialderivative/
menu: menu:
v2_0_ref: v2_0_ref:
name: tripleExponentialDerivative name: tripleExponentialDerivative
@ -10,12 +12,12 @@ menu:
weight: 501 weight: 501
v2.0/tags: [technical analysis] v2.0/tags: [technical analysis]
related: related:
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/movingaverage/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/movingaverage/
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/doubleema/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/doubleema/
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/tripleema/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/tripleema/
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/timedmovingaverage/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/timedmovingaverage/
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/exponentialmovingaverage/ - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/exponentialmovingaverage/
- https://docs.influxdata.com/influxdb/v1.7/query_language/functions/#triple-exponential-derivative, InfluxQL TRIPLE_EXPONENTIAL_DERIVATIVE() - https://docs.influxdata.com/influxdb/latest/query_language/functions/#triple-exponential-derivative, InfluxQL TRIPLE_EXPONENTIAL_DERIVATIVE()
--- ---
The `tripleExponentialDerivative()` function calculates a triple exponential The `tripleExponentialDerivative()` function calculates a triple exponential
@ -46,7 +48,7 @@ a negative value indicates decreasing momentum.
- `EMA_3 = EMA(EMA(EMA(data)))` - `EMA_3 = EMA(EMA(EMA(data)))`
- If there are not enough values to calculate a triple exponential derivative, - If there are not enough values to calculate a triple exponential derivative,
the output `_value` is `NaN`; all other columns are the same as the _last_ record of the input table. the output `_value` is `NaN`; all other columns are the same as the _last_ record of the input table.
- The function behaves the same way as the [`exponentialMovingAverage()`](/v2.0/reference/flux/functions/built-in/transformations/aggregates/exponentialmovingaverage/) function: - The function behaves the same way as the [`exponentialMovingAverage()`](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/exponentialmovingaverage/) function:
- The function does not include `null` values in the calculation. - The function does not include `null` values in the calculation.
- The function acts only on the `_value` column. - The function acts only on the `_value` column.

View File

@ -6,6 +6,7 @@ description: >
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: aliases:
- /v2.0/reference/flux/functions/transformations/columns - /v2.0/reference/flux/functions/transformations/columns
- /v2.0/reference/flux/functions/built-in/transformations/columns/
menu: menu:
v2_0_ref: v2_0_ref:
name: columns name: columns

View File

@ -3,6 +3,7 @@ title: cumulativeSum() function
description: The `cumulativeSum()` function computes a running sum for non-null records in the table. description: The `cumulativeSum()` function computes a running sum for non-null records in the table.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/cumulativesum - /v2.0/reference/flux/functions/transformations/cumulativesum
- /v2.0/reference/flux/functions/built-in/transformations/cumulativesum/
menu: menu:
v2_0_ref: v2_0_ref:
name: cumulativeSum name: cumulativeSum

View File

@ -3,6 +3,7 @@ title: drop() function
description: The `drop()` function removes specified columns from a table. description: The `drop()` function removes specified columns from a table.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/drop - /v2.0/reference/flux/functions/transformations/drop
- /v2.0/reference/flux/functions/built-in/transformations/drop/
menu: menu:
v2_0_ref: v2_0_ref:
name: drop name: drop

View File

@ -3,6 +3,7 @@ title: duplicate() function
description: The `duplicate()` function duplicates a specified column in a table. description: The `duplicate()` function duplicates a specified column in a table.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/duplicate - /v2.0/reference/flux/functions/transformations/duplicate
- /v2.0/reference/flux/functions/built-in/transformations/duplicate/
menu: menu:
v2_0_ref: v2_0_ref:
name: duplicate name: duplicate

View File

@ -1,6 +1,8 @@
--- ---
title: elapsed() function title: elapsed() function
description: The `elapsed()` function returns the time between subsequent records. description: The `elapsed()` function returns the time between subsequent records.
aliases:
- /v2.0/reference/flux/functions/built-in/transformations/elapsed/
menu: menu:
v2_0_ref: v2_0_ref:
name: elapsed name: elapsed

View File

@ -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. description: The `fill()` function replaces all null values in an input stream and replace them with a non-null value.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/fill - /v2.0/reference/flux/functions/transformations/fill
- /v2.0/reference/flux/functions/built-in/transformations/fill/
menu: menu:
v2_0_ref: v2_0_ref:
name: fill name: fill

View File

@ -3,6 +3,7 @@ title: filter() function
description: The `filter()` function filters data based on conditions defined in a predicate function (fn). description: The `filter()` function filters data based on conditions defined in a predicate function (fn).
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/filter - /v2.0/reference/flux/functions/transformations/filter
- /v2.0/reference/flux/functions/built-in/transformations/filter/
menu: menu:
v2_0_ref: v2_0_ref:
name: filter name: filter

View File

@ -3,6 +3,7 @@ title: group() function
description: The `group()` function groups records based on their values for specific columns. description: The `group()` function groups records based on their values for specific columns.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/group - /v2.0/reference/flux/functions/transformations/group
- /v2.0/reference/flux/functions/built-in/transformations/group/
menu: menu:
v2_0_ref: v2_0_ref:
name: group name: group

View File

@ -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. description: The `histogram()` function approximates the cumulative distribution of a dataset by counting data frequencies for a list of bins.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/histogram - /v2.0/reference/flux/functions/transformations/histogram
- /v2.0/reference/flux/functions/built-in/transformations/histogram/
menu: menu:
v2_0_ref: v2_0_ref:
name: histogram name: histogram
@ -56,8 +57,8 @@ _**Data type:** Array of floats_
#### Bin helper functions #### Bin helper functions
The following helper functions can be used to generated bins. The following helper functions can be used to generated bins.
[linearBins()](/v2.0/reference/flux/functions/built-in/misc/linearbins) [linearBins()](/v2.0/reference/flux/stdlib/built-in/misc/linearbins)
[logarithmicBins()](/v2.0/reference/flux/functions/built-in/misc/logarithmicbins) [logarithmicBins()](/v2.0/reference/flux/stdlib/built-in/misc/logarithmicbins)
### normalize ### normalize
When `true`, will convert the counts into frequency values between 0 and 1. When `true`, will convert the counts into frequency values between 0 and 1.

View File

@ -4,7 +4,8 @@ description: >
The `hourSelection()` function retains all rows with time values in a specified hour range. The `hourSelection()` function retains all rows with time values in a specified hour range.
Hours are specified in military time. Hours are specified in military time.
aliases: 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: menu:
v2_0_ref: v2_0_ref:
name: hourSelection name: hourSelection

View File

@ -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. 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: aliases:
- /v2.0/reference/flux/functions/transformations/join - /v2.0/reference/flux/functions/transformations/join
- /v2.0/reference/flux/functions/built-in/transformations/join/
menu: menu:
v2_0_ref: v2_0_ref:
name: join name: join

View File

@ -3,6 +3,7 @@ title: keep() function
description: The `keep()` function returns a table containing only the specified columns. description: The `keep()` function returns a table containing only the specified columns.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/keep - /v2.0/reference/flux/functions/transformations/keep
- /v2.0/reference/flux/functions/built-in/transformations/keep/
menu: menu:
v2_0_ref: v2_0_ref:
name: keep name: keep
@ -12,7 +13,7 @@ weight: 401
The `keep()` function returns a table containing only the specified columns, ignoring all others. The `keep()` function returns a table containing only the specified columns, ignoring all others.
Only columns in the group key that are also specified in the `keep()` function will be kept in the resulting group key. Only columns in the group key that are also specified in the `keep()` function will be kept in the resulting group key.
_It is the inverse of [`drop`](/v2.0/reference/flux/functions/built-in/transformations/drop)._ _It is the inverse of [`drop`](/v2.0/reference/flux/stdlib/built-in/transformations/drop)._
_**Function type:** Transformation_ _**Function type:** Transformation_
_**Output data type:** Object_ _**Output data type:** Object_

View File

@ -6,6 +6,7 @@ description: >
_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: aliases:
- /v2.0/reference/flux/functions/transformations/keys - /v2.0/reference/flux/functions/transformations/keys
- /v2.0/reference/flux/functions/built-in/transformations/keys/
menu: menu:
v2_0_ref: v2_0_ref:
name: keys name: keys

View File

@ -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. 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: aliases:
- /v2.0/reference/flux/functions/transformations/keyvalues - /v2.0/reference/flux/functions/transformations/keyvalues
- /v2.0/reference/flux/functions/built-in/transformations/keyvalues/
menu: menu:
v2_0_ref: v2_0_ref:
name: keyValues name: keyValues

View File

@ -3,13 +3,14 @@ title: limit() function
description: The `limit()` function limits each output table to the first `n` records. description: The `limit()` function limits each output table to the first `n` records.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/limit - /v2.0/reference/flux/functions/transformations/limit
- /v2.0/reference/flux/functions/built-in/transformations/limit/
menu: menu:
v2_0_ref: v2_0_ref:
name: limit name: limit
parent: built-in-transformations parent: built-in-transformations
weight: 401 weight: 401
related: related:
- /v2.0/reference/flux/functions/built-in/transformations/tail/ - /v2.0/reference/flux/stdlib/built-in/transformations/tail/
- https://docs.influxdata.com/influxdb/latest/query_language/data_exploration/#the-limit-and-slimit-clauses, InfluxQL LIMIT - https://docs.influxdata.com/influxdb/latest/query_language/data_exploration/#the-limit-and-slimit-clauses, InfluxQL LIMIT
--- ---

View File

@ -3,6 +3,7 @@ title: map() function
description: The `map()` function applies a function to each record in the input tables. description: The `map()` function applies a function to each record in the input tables.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/map - /v2.0/reference/flux/functions/transformations/map
- /v2.0/reference/flux/functions/built-in/transformations/map/
menu: menu:
v2_0_ref: v2_0_ref:
name: map name: map

View File

@ -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. description: The `pivot()` function collects values stored vertically (column-wise) in a table and aligns them horizontally (row-wise) into logical sets.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/pivot - /v2.0/reference/flux/functions/transformations/pivot
- /v2.0/reference/flux/functions/built-in/transformations/pivot/
menu: menu:
v2_0_ref: v2_0_ref:
name: pivot name: pivot

View File

@ -3,6 +3,7 @@ title: range() function
description: The `range()` function filters records based on time bounds. description: The `range()` function filters records based on time bounds.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/range - /v2.0/reference/flux/functions/transformations/range
- /v2.0/reference/flux/functions/built-in/transformations/range/
menu: menu:
v2_0_ref: v2_0_ref:
name: range name: range

View File

@ -3,6 +3,7 @@ title: rename() function
description: The `rename()` function renames specified columns in a table. description: The `rename()` function renames specified columns in a table.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/rename - /v2.0/reference/flux/functions/transformations/rename
- /v2.0/reference/flux/functions/built-in/transformations/rename/
menu: menu:
v2_0_ref: v2_0_ref:
name: rename name: rename

View File

@ -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. description: Flux's built-in selector functions return one or more records based on function logic.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/selectors - /v2.0/reference/flux/functions/transformations/selectors
- /v2.0/reference/flux/functions/built-in/transformations/selectors/
menu: menu:
v2_0_ref: v2_0_ref:
parent: built-in-transformations parent: built-in-transformations
@ -25,5 +26,5 @@ The following selector functions are available:
The following functions can be used as both selectors or aggregates, but they are The following functions can be used as both selectors or aggregates, but they are
categorized as aggregate functions in this documentation: categorized as aggregate functions in this documentation:
- [median](/v2.0/reference/flux/functions/built-in/transformations/aggregates/median) - [median](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/median)
- [quantile](/v2.0/reference/flux/functions/built-in/transformations/aggregates/quantile) - [quantile](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/quantile)

View File

@ -3,6 +3,7 @@ title: bottom() function
description: The `bottom()` function sorts a table by columns and keeps only the bottom n records. description: The `bottom()` function sorts a table by columns and keeps only the bottom n records.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/selectors/bottom - /v2.0/reference/flux/functions/transformations/selectors/bottom
- /v2.0/reference/flux/functions/built-in/transformations/selectors/bottom/
menu: menu:
v2_0_ref: v2_0_ref:
name: bottom name: bottom

View File

@ -3,6 +3,7 @@ title: distinct() function
description: The `distinct()` function returns the unique values for a given column. description: The `distinct()` function returns the unique values for a given column.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/selectors/distinct - /v2.0/reference/flux/functions/transformations/selectors/distinct
- /v2.0/reference/flux/functions/built-in/transformations/selectors/distinct/
menu: menu:
v2_0_ref: v2_0_ref:
name: distinct name: distinct

View File

@ -3,6 +3,7 @@ title: first() function
description: The `first()` function selects the first non-null record from an input table. description: The `first()` function selects the first non-null record from an input table.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/selectors/first - /v2.0/reference/flux/functions/transformations/selectors/first
- /v2.0/reference/flux/functions/built-in/transformations/selectors/first/
menu: menu:
v2_0_ref: v2_0_ref:
name: first name: first

View File

@ -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. description: The `highestAverage()` function calculates the average of each table in the input stream returns the top `n` records.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/selectors/highestaverage - /v2.0/reference/flux/functions/transformations/selectors/highestaverage
- /v2.0/reference/flux/functions/built-in/transformations/selectors/highestaverage/
menu: menu:
v2_0_ref: v2_0_ref:
name: highestAverage name: highestAverage

View File

@ -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. description: The `highestCurrent()` function selects the last record of each table in the input stream and returns the top `n` records.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/selectors/highestcurrent - /v2.0/reference/flux/functions/transformations/selectors/highestcurrent
- /v2.0/reference/flux/functions/built-in/transformations/selectors/highestcurrent/
menu: menu:
v2_0_ref: v2_0_ref:
name: highestCurrent name: highestCurrent

View File

@ -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. description: The `highestMax()` function selects the maximum record from each table in the input stream and returns the top `n` records.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/selectors/highestmax - /v2.0/reference/flux/functions/transformations/selectors/highestmax
- /v2.0/reference/flux/functions/built-in/transformations/selectors/highestmax/
menu: menu:
v2_0_ref: v2_0_ref:
name: highestMax name: highestMax

View File

@ -3,6 +3,7 @@ title: last() function
description: The `last()` function selects the last non-null record from an input table. description: The `last()` function selects the last non-null record from an input table.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/selectors/last - /v2.0/reference/flux/functions/transformations/selectors/last
- /v2.0/reference/flux/functions/built-in/transformations/selectors/last/
menu: menu:
v2_0_ref: v2_0_ref:
name: last name: last

View File

@ -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. description: The `lowestAverage()` function calculates the average of each table in the input stream returns the lowest `n` records.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/selectors/lowestaverage - /v2.0/reference/flux/functions/transformations/selectors/lowestaverage
- /v2.0/reference/flux/functions/built-in/transformations/selectors/lowestaverage/
menu: menu:
v2_0_ref: v2_0_ref:
name: lowestAverage name: lowestAverage

View File

@ -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. description: The `lowestCurrent()` function selects the last record of each table in the input stream and returns the lowest `n` records.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/selectors/lowestcurrent - /v2.0/reference/flux/functions/transformations/selectors/lowestcurrent
- /v2.0/reference/flux/functions/built-in/transformations/selectors/lowestcurrent/
menu: menu:
v2_0_ref: v2_0_ref:
name: lowestCurrent name: lowestCurrent

View File

@ -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. description: The `lowestMin()` function selects the minimum record from each table in the input stream and returns the lowest `n` records.
aliases: aliases:
- /v2.0/reference/flux/functions/transformations/selectors/lowestmin - /v2.0/reference/flux/functions/transformations/selectors/lowestmin
- /v2.0/reference/flux/functions/built-in/transformations/selectors/lowestmin/
menu: menu:
v2_0_ref: v2_0_ref:
name: lowestMin name: lowestMin

Some files were not shown because too many files have changed in this diff Show More