diff --git a/content/v2.0/cloud/get-started.md b/content/v2.0/cloud/get-started.md index c25b538ad..3147cdd5c 100644 --- a/content/v2.0/cloud/get-started.md +++ b/content/v2.0/cloud/get-started.md @@ -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" >}}. - {{< 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 - [`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. - Multi-organization accounts and multi-user organizations are currently not available in {{< cloud-name >}}. diff --git a/content/v2.0/monitor-alert/checks/create.md b/content/v2.0/monitor-alert/checks/create.md index 469ac6949..03e113c6c 100644 --- a/content/v2.0/monitor-alert/checks/create.md +++ b/content/v2.0/monitor-alert/checks/create.md @@ -82,7 +82,7 @@ A check consists of two parts – a query and check configuration. {{% note %}} #### Flux only interpolates 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. ```js diff --git a/content/v2.0/process-data/common-tasks/downsample-data.md b/content/v2.0/process-data/common-tasks/downsample-data.md index 1b84563c2..1c4d83148 100644 --- a/content/v2.0/process-data/common-tasks/downsample-data.md +++ b/content/v2.0/process-data/common-tasks/downsample-data.md @@ -32,7 +32,7 @@ A separate bucket where aggregated, downsampled data is stored. To downsample data, it must be aggregated in some way. What specific method of aggregation you use depends on your specific use case, 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. ## 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. 2. Defines a `data` variable that represents all data from the last 2 weeks in the `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. 4. Stores the aggregated data in the `system-data-downsampled` bucket under the `my-org` organization. diff --git a/content/v2.0/process-data/get-started.md b/content/v2.0/process-data/get-started.md index 45bb10c7e..ef146a4ad 100644 --- a/content/v2.0/process-data/get-started.md +++ b/content/v2.0/process-data/get-started.md @@ -54,8 +54,8 @@ in form fields when creating the task. {{% /note %}} ## Define a data source -Define a data source using Flux's [`from()` function](/v2.0/reference/flux/functions/built-in/inputs/from/) -or any other [Flux input functions](/v2.0/reference/flux/functions/built-in/inputs/). +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/stdlib/built-in/inputs/). For convenience, consider creating a variable that includes the sourced data with 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. 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 -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 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. 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: ```js diff --git a/content/v2.0/query-data/get-started/_index.md b/content/v2.0/query-data/get-started/_index.md index 56162f606..54834da2e 100644 --- a/content/v2.0/query-data/get-started/_index.md +++ b/content/v2.0/query-data/get-started/_index.md @@ -11,7 +11,7 @@ menu: parent: Query data related: - /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, diff --git a/content/v2.0/query-data/get-started/query-influxdb.md b/content/v2.0/query-data/get-started/query-influxdb.md index f454e2d93..f2a024736 100644 --- a/content/v2.0/query-data/get-started/query-influxdb.md +++ b/content/v2.0/query-data/get-started/query-influxdb.md @@ -9,9 +9,9 @@ menu: weight: 201 related: - /v2.0/query-data/guides/ - - /v2.0/reference/flux/functions/built-in/inputs/from - - /v2.0/reference/flux/functions/built-in/transformations/range - - /v2.0/reference/flux/functions/built-in/transformations/filter + - /v2.0/reference/flux/stdlib/built-in/inputs/from + - /v2.0/reference/flux/stdlib/built-in/transformations/range + - /v2.0/reference/flux/stdlib/built-in/transformations/filter --- 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 -Flux's [`from()`](/v2.0/reference/flux/functions/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. +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/stdlib/built-in/inputs/from#bucket) parameter. The following examples use `example-bucket` as the bucket name. ```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, 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. It accepts two properties: `start` and `stop`. Ranges can be **relative** using negative [durations](/v2.0/reference/flux/language/lexical-elements#duration-literals) diff --git a/content/v2.0/query-data/get-started/transform-data.md b/content/v2.0/query-data/get-started/transform-data.md index 534544858..b65335a54 100644 --- a/content/v2.0/query-data/get-started/transform-data.md +++ b/content/v2.0/query-data/get-started/transform-data.md @@ -8,15 +8,15 @@ menu: parent: Get started with Flux weight: 202 related: - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/aggregatewindow - - /v2.0/reference/flux/functions/built-in/transformations/window + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/aggregatewindow + - /v2.0/reference/flux/stdlib/built-in/transformations/window --- When [querying data from InfluxDB](/v2.0/query-data/get-started/query-influxdb), you often need to transform that data in some way. 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, 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 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. -_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. Aggregate functions take a set of `_value`s in a table, aggregate them, and transform 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. {{% note %}} @@ -55,7 +55,7 @@ It's just good to understand the steps in the process. {{% /note %}} ## 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. 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 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 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. 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. ```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. 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 from(bucket:"example-bucket") diff --git a/content/v2.0/query-data/guides/conditional-logic.md b/content/v2.0/query-data/guides/conditional-logic.md index 63ac17ee6..22c7494c0 100644 --- a/content/v2.0/query-data/guides/conditional-logic.md +++ b/content/v2.0/query-data/guides/conditional-logic.md @@ -27,9 +27,9 @@ Conditional expressions are most useful in the following contexts: - When defining variables. - When using functions that operate on a single row at a time ( - [`filter()`](/v2.0/reference/flux/functions/built-in/transformations/filter/), - [`map()`](/v2.0/reference/flux/functions/built-in/transformations/map/), - [`reduce()`](/v2.0/reference/flux/functions/built-in/transformations/aggregates/reduce) ). + [`filter()`](/v2.0/reference/flux/stdlib/built-in/transformations/filter/), + [`map()`](/v2.0/reference/flux/stdlib/built-in/transformations/map/), + [`reduce()`](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/reduce) ). ## Examples @@ -72,7 +72,7 @@ from(bucket: "example-bucket") ### 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. It sets the `level` column to a specific string based on `_value` column. @@ -119,8 +119,8 @@ from(bucket: "example-bucket") {{< /code-tabs-wrapper >}} ### Conditionally increment a count with reduce() -The following example uses the [`aggregateWindow()`](/v2.0/reference/flux/functions/built-in/transformations/aggregates/aggregatewindow/) -and [`reduce()`](/v2.0/reference/flux/functions/built-in/transformations/aggregates/reduce/) +The following example uses the [`aggregateWindow()`](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/aggregatewindow/) +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. {{< code-tabs-wrapper >}} diff --git a/content/v2.0/query-data/guides/custom-functions/_index.md b/content/v2.0/query-data/guides/custom-functions/_index.md index 06341d146..d15716bcd 100644 --- a/content/v2.0/query-data/guides/custom-functions/_index.md +++ b/content/v2.0/query-data/guides/custom-functions/_index.md @@ -70,7 +70,7 @@ functionName = (tables=<-) => tables |> functionOperations ###### Multiply row values by x The example below defines a `multByX` function that multiplies the `_value` column 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`. ```js @@ -104,9 +104,9 @@ Defaults are overridden by explicitly defining the parameter in the function cal ###### Get the winner or the "winner" 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`. -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. -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. ```js diff --git a/content/v2.0/query-data/guides/custom-functions/custom-aggregate.md b/content/v2.0/query-data/guides/custom-functions/custom-aggregate.md index 60e580ab6..b56d68dfc 100644 --- a/content/v2.0/query-data/guides/custom-functions/custom-aggregate.md +++ b/content/v2.0/query-data/guides/custom-functions/custom-aggregate.md @@ -10,9 +10,9 @@ weight: 301 --- 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 -[`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 functions all have the same basic characteristics: @@ -22,7 +22,7 @@ Aggregate functions all have the same basic characteristics: ## How reduce() works 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) 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. | {{% 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. {{% /note %}} @@ -50,7 +50,7 @@ in an input table. ``` {{% 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. {{% /note %}} @@ -150,7 +150,7 @@ and the `reduce()` function to aggregate rows in each input table. ### Create a custom average function This example illustrates how to create a function that averages values in a table. _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._ {{< code-tabs-wrapper >}} diff --git a/content/v2.0/query-data/guides/group-data.md b/content/v2.0/query-data/guides/group-data.md index 50a3c4fde..fd3c56eb9 100644 --- a/content/v2.0/query-data/guides/group-data.md +++ b/content/v2.0/query-data/guides/group-data.md @@ -28,7 +28,7 @@ Understanding how modifying group keys shapes output data is key to successfully grouping and transforming data into your desired output. ## 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() example diff --git a/content/v2.0/query-data/guides/histograms.md b/content/v2.0/query-data/guides/histograms.md index fc87430a9..a0be7ac6d 100644 --- a/content/v2.0/query-data/guides/histograms.md +++ b/content/v2.0/query-data/guides/histograms.md @@ -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**. ## 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." 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. @@ -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. ### 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 linearBins(start: 0.0, width: 10.0, count: 10) @@ -50,7 +50,7 @@ linearBins(start: 0.0, width: 10.0, count: 10) ``` ### 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 logarithmicBins(start: 1.0, factor: 2.0, count: 10, infinity: true) diff --git a/content/v2.0/query-data/guides/join.md b/content/v2.0/query-data/guides/join.md index bb97dc73b..e0932ba3c 100644 --- a/content/v2.0/query-data/guides/join.md +++ b/content/v2.0/query-data/guides/join.md @@ -10,7 +10,7 @@ menu: 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. 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. @@ -205,7 +205,7 @@ These represent the columns with values unique to the two input tables. ## Calculate and create a new table 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` column and dividing `_value_mem` by `_value_proc` and mapping it to a new `_value` column. diff --git a/content/v2.0/query-data/guides/mathematic-operations.md b/content/v2.0/query-data/guides/mathematic-operations.md index 0c8c9f27b..39cbb7380 100644 --- a/content/v2.0/query-data/guides/mathematic-operations.md +++ b/content/v2.0/query-data/guides/mathematic-operations.md @@ -40,7 +40,7 @@ Otherwise, you will get an error similar to: 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. The operand data type determines the output data type. 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: - [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: @@ -146,7 +146,7 @@ data #### 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. 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. ```js diff --git a/content/v2.0/query-data/guides/sort-limit.md b/content/v2.0/query-data/guides/sort-limit.md index 4dd175588..5d053a0ad 100644 --- a/content/v2.0/query-data/guides/sort-limit.md +++ b/content/v2.0/query-data/guides/sort-limit.md @@ -12,7 +12,7 @@ menu: 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. 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"]) ``` -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`. 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. -Flux also provides the [`top()`](/v2.0/reference/flux/functions/built-in/transformations/selectors/top) -and [`bottom()`](/v2.0/reference/flux/functions/built-in/transformations/selectors/bottom) +Flux also provides the [`top()`](/v2.0/reference/flux/stdlib/built-in/transformations/selectors/top) +and [`bottom()`](/v2.0/reference/flux/stdlib/built-in/transformations/selectors/bottom) functions to perform both of these functions at the same time. diff --git a/content/v2.0/query-data/guides/sql.md b/content/v2.0/query-data/guides/sql.md index 19d49c54d..2a3d6dc46 100644 --- a/content/v2.0/query-data/guides/sql.md +++ b/content/v2.0/query-data/guides/sql.md @@ -12,7 +12,7 @@ weight: 207 --- 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/) and use the results with InfluxDB dashboards, tasks, and other operations. @@ -59,7 +59,7 @@ sql.from( {{% /code-tab-content %}} {{< /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._ ## Join SQL data with data in InfluxDB diff --git a/content/v2.0/query-data/guides/window-aggregate.md b/content/v2.0/query-data/guides/window-aggregate.md index b47759063..d9320d394 100644 --- a/content/v2.0/query-data/guides/window-aggregate.md +++ b/content/v2.0/query-data/guides/window-aggregate.md @@ -86,7 +86,7 @@ Table: keys: [_start, _stop, _field, _measurement] {{% /truncate %}} ## 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. The most common parameter passed with the `window()` is `every` which 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) ## 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. 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 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: ```js @@ -241,7 +241,7 @@ These represent the lower and upper bounds of the time window. Many Flux functions rely on the `_time` column. 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. ```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. 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. The following Flux query will return the same results: diff --git a/content/v2.0/reference/annotated-csv.md b/content/v2.0/reference/annotated-csv.md index 0cf966ad5..001154163 100644 --- a/content/v2.0/reference/annotated-csv.md +++ b/content/v2.0/reference/annotated-csv.md @@ -8,7 +8,7 @@ menu: 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). diff --git a/content/v2.0/reference/flux/_index.md b/content/v2.0/reference/flux/_index.md index 647a0407d..a1b77af63 100644 --- a/content/v2.0/reference/flux/_index.md +++ b/content/v2.0/reference/flux/_index.md @@ -8,7 +8,7 @@ menu: weight: 4 --- -The following articles are meant as a reference for Flux functions and the -Flux language specification. +The following articles are meant as a reference for the Flux standard library and +the Flux language specification. {{< children >}} diff --git a/content/v2.0/reference/flux/functions/_index.md b/content/v2.0/reference/flux/functions/_index.md deleted file mode 100644 index ee315518b..000000000 --- a/content/v2.0/reference/flux/functions/_index.md +++ /dev/null @@ -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 >}} diff --git a/content/v2.0/reference/flux/language/string-interpolation.md b/content/v2.0/reference/flux/language/string-interpolation.md index 463233ae4..fcb2ea593 100644 --- a/content/v2.0/reference/flux/language/string-interpolation.md +++ b/content/v2.0/reference/flux/language/string-interpolation.md @@ -30,7 +30,7 @@ name = "John" {{% note %}} #### Flux only interpolates string values 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. ```js diff --git a/content/v2.0/reference/flux/stdlib/_index.md b/content/v2.0/reference/flux/stdlib/_index.md new file mode 100644 index 000000000..a3b1b89e1 --- /dev/null +++ b/content/v2.0/reference/flux/stdlib/_index.md @@ -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 >}} diff --git a/content/v2.0/reference/flux/functions/all-functions.md b/content/v2.0/reference/flux/stdlib/all-functions.md similarity index 73% rename from content/v2.0/reference/flux/functions/all-functions.md rename to content/v2.0/reference/flux/stdlib/all-functions.md index f0a0f821a..19e879712 100644 --- a/content/v2.0/reference/flux/functions/all-functions.md +++ b/content/v2.0/reference/flux/stdlib/all-functions.md @@ -1,10 +1,12 @@ --- title: Complete list of Flux functions description: View the full library of documented Flux functions. +aliases: + - /v2.0/reference/flux/functions/all-functions/ menu: v2_0_ref: name: View all functions - parent: Flux packages and functions + parent: Flux standard library weight: 299 --- diff --git a/content/v2.0/reference/flux/functions/built-in/_index.md b/content/v2.0/reference/flux/stdlib/built-in/_index.md similarity index 87% rename from content/v2.0/reference/flux/functions/built-in/_index.md rename to content/v2.0/reference/flux/stdlib/built-in/_index.md index d46c12140..7d3a305d4 100644 --- a/content/v2.0/reference/flux/functions/built-in/_index.md +++ b/content/v2.0/reference/flux/stdlib/built-in/_index.md @@ -4,10 +4,12 @@ list_title: Built-in functions description: > Built-in functions provide a foundation for working with data using Flux. They do not require an import statement and are usable without any extra setup. +aliases: + - /v2.0/reference/flux/functions/built-in/ menu: v2_0_ref: name: Built-in - parent: Flux packages and functions + parent: Flux standard library weight: 201 v2.0/tags: [built-in, functions, package] --- diff --git a/content/v2.0/reference/flux/functions/built-in/inputs/_index.md b/content/v2.0/reference/flux/stdlib/built-in/inputs/_index.md similarity index 84% rename from content/v2.0/reference/flux/functions/built-in/inputs/_index.md rename to content/v2.0/reference/flux/stdlib/built-in/inputs/_index.md index 064ac6442..ae684634a 100644 --- a/content/v2.0/reference/flux/functions/built-in/inputs/_index.md +++ b/content/v2.0/reference/flux/stdlib/built-in/inputs/_index.md @@ -3,7 +3,8 @@ title: Flux built-in input functions list_title: Built-in input functions description: Flux's built-in input functions define sources of data or or display information about data sources. aliases: - - /v2.0/reference/flux/functions/inputs + - /v2.0/reference/flux/functions/inputs + - /v2.0/reference/flux/functions/built-in/inputs/ menu: v2_0_ref: parent: Built-in diff --git a/content/v2.0/reference/flux/functions/built-in/inputs/buckets.md b/content/v2.0/reference/flux/stdlib/built-in/inputs/buckets.md similarity index 90% rename from content/v2.0/reference/flux/functions/built-in/inputs/buckets.md rename to content/v2.0/reference/flux/stdlib/built-in/inputs/buckets.md index 79aa46686..c759c932f 100644 --- a/content/v2.0/reference/flux/functions/built-in/inputs/buckets.md +++ b/content/v2.0/reference/flux/stdlib/built-in/inputs/buckets.md @@ -3,6 +3,7 @@ title: buckets() function description: The `buckets()` function returns a list of buckets in the organization. aliases: - /v2.0/reference/flux/functions/inputs/buckets + - /v2.0/reference/flux/functions/built-in/inputs/buckets/ menu: v2_0_ref: name: buckets diff --git a/content/v2.0/reference/flux/functions/built-in/inputs/from.md b/content/v2.0/reference/flux/stdlib/built-in/inputs/from.md similarity index 95% rename from content/v2.0/reference/flux/functions/built-in/inputs/from.md rename to content/v2.0/reference/flux/stdlib/built-in/inputs/from.md index f7cf1b583..6c9cbe39a 100644 --- a/content/v2.0/reference/flux/functions/built-in/inputs/from.md +++ b/content/v2.0/reference/flux/stdlib/built-in/inputs/from.md @@ -3,6 +3,7 @@ title: from() function description: The `from()` function retrieves data from an InfluxDB data source. aliases: - /v2.0/reference/flux/functions/inputs/from + - /v2.0/reference/flux/functions/built-in/inputs/from/ menu: v2_0_ref: name: from diff --git a/content/v2.0/reference/flux/functions/built-in/misc/_index.md b/content/v2.0/reference/flux/stdlib/built-in/misc/_index.md similarity index 93% rename from content/v2.0/reference/flux/functions/built-in/misc/_index.md rename to content/v2.0/reference/flux/stdlib/built-in/misc/_index.md index 0e5217ec5..3bedf0dfc 100644 --- a/content/v2.0/reference/flux/functions/built-in/misc/_index.md +++ b/content/v2.0/reference/flux/stdlib/built-in/misc/_index.md @@ -6,6 +6,7 @@ description: > retrieving, transforming, or outputting data. aliases: - /v2.0/reference/flux/functions/misc + - /v2.0/reference/flux/functions/built-in/misc/ menu: v2_0_ref: parent: Built-in diff --git a/content/v2.0/reference/flux/functions/built-in/misc/intervals.md b/content/v2.0/reference/flux/stdlib/built-in/misc/intervals.md similarity index 97% rename from content/v2.0/reference/flux/functions/built-in/misc/intervals.md rename to content/v2.0/reference/flux/stdlib/built-in/misc/intervals.md index 9d585b9c0..3ee4a7f6c 100644 --- a/content/v2.0/reference/flux/functions/built-in/misc/intervals.md +++ b/content/v2.0/reference/flux/stdlib/built-in/misc/intervals.md @@ -3,6 +3,7 @@ title: intervals() function description: The `intervals()` function generates a set of time intervals over a range of time. aliases: - /v2.0/reference/flux/functions/misc/intervals + - /v2.0/reference/flux/functions/built-in/misc/intervals/ menu: v2_0_ref: name: intervals @@ -20,7 +21,7 @@ The set of intervals includes all intervals that intersect with the initial rang {{% note %}} 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 %}} By default the end boundary of an interval will align with the Unix epoch (zero time) diff --git a/content/v2.0/reference/flux/functions/built-in/misc/linearbins.md b/content/v2.0/reference/flux/stdlib/built-in/misc/linearbins.md similarity index 87% rename from content/v2.0/reference/flux/functions/built-in/misc/linearbins.md rename to content/v2.0/reference/flux/stdlib/built-in/misc/linearbins.md index 0df48b679..658ec2d5a 100644 --- a/content/v2.0/reference/flux/functions/built-in/misc/linearbins.md +++ b/content/v2.0/reference/flux/stdlib/built-in/misc/linearbins.md @@ -3,6 +3,7 @@ title: linearBins() function description: The `linearBins()` function generates a list of linearly separated floats. aliases: - /v2.0/reference/flux/functions/misc/linearbins + - /v2.0/reference/flux/functions/built-in/misc/linearbins/ menu: v2_0_ref: name: linearBins @@ -12,7 +13,7 @@ weight: 401 The `linearBins()` function generates a list of linearly separated floats. 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_ _**Output data type:** Array of floats_ diff --git a/content/v2.0/reference/flux/functions/built-in/misc/logarithmicbins.md b/content/v2.0/reference/flux/stdlib/built-in/misc/logarithmicbins.md similarity index 87% rename from content/v2.0/reference/flux/functions/built-in/misc/logarithmicbins.md rename to content/v2.0/reference/flux/stdlib/built-in/misc/logarithmicbins.md index 039e74a56..5a6c2d59e 100644 --- a/content/v2.0/reference/flux/functions/built-in/misc/logarithmicbins.md +++ b/content/v2.0/reference/flux/stdlib/built-in/misc/logarithmicbins.md @@ -3,6 +3,7 @@ title: logarithmicBins() function description: The `logarithmicBins()` function generates a list of exponentially separated floats. aliases: - /v2.0/reference/flux/functions/misc/logarithmicbins + - /v2.0/reference/flux/functions/built-in/misc/logarithmicbins/ menu: v2_0_ref: name: logarithmicBins @@ -12,7 +13,7 @@ weight: 401 The `logarithmicBins()` function generates a list of exponentially separated floats. 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_ _**Output data type:** Array of floats_ diff --git a/content/v2.0/reference/flux/functions/built-in/misc/now.md b/content/v2.0/reference/flux/stdlib/built-in/misc/now.md similarity index 85% rename from content/v2.0/reference/flux/functions/built-in/misc/now.md rename to content/v2.0/reference/flux/stdlib/built-in/misc/now.md index d342ad0b0..00d6d0796 100644 --- a/content/v2.0/reference/flux/functions/built-in/misc/now.md +++ b/content/v2.0/reference/flux/stdlib/built-in/misc/now.md @@ -1,6 +1,8 @@ --- title: now() function description: The `now()` function returns the current time (UTC). +aliases: + - /v2.0/reference/flux/functions/built-in/misc/now/ menu: v2_0_ref: name: now diff --git a/content/v2.0/reference/flux/functions/built-in/misc/sleep.md b/content/v2.0/reference/flux/stdlib/built-in/misc/sleep.md similarity index 93% rename from content/v2.0/reference/flux/functions/built-in/misc/sleep.md rename to content/v2.0/reference/flux/stdlib/built-in/misc/sleep.md index 7e6221048..c143a4fd2 100644 --- a/content/v2.0/reference/flux/functions/built-in/misc/sleep.md +++ b/content/v2.0/reference/flux/stdlib/built-in/misc/sleep.md @@ -1,6 +1,8 @@ --- title: sleep() function description: The `sleep()` function delays execution by a specified duration. +aliases: + - /v2.0/reference/flux/functions/built-in/misc/sleep/ menu: v2_0_ref: name: sleep diff --git a/content/v2.0/reference/flux/functions/built-in/outputs/_index.md b/content/v2.0/reference/flux/stdlib/built-in/outputs/_index.md similarity index 91% rename from content/v2.0/reference/flux/functions/built-in/outputs/_index.md rename to content/v2.0/reference/flux/stdlib/built-in/outputs/_index.md index 568746148..01432c2a4 100644 --- a/content/v2.0/reference/flux/functions/built-in/outputs/_index.md +++ b/content/v2.0/reference/flux/stdlib/built-in/outputs/_index.md @@ -4,6 +4,7 @@ list_title: Built-in output functions description: Flux's built-in output functions yield results or send data to a specified output destination. aliases: - /v2.0/reference/flux/functions/outputs + - /v2.0/reference/flux/functions/built-in/outputs/ menu: v2_0_ref: parent: Built-in diff --git a/content/v2.0/reference/flux/functions/built-in/outputs/to.md b/content/v2.0/reference/flux/stdlib/built-in/outputs/to.md similarity index 98% rename from content/v2.0/reference/flux/functions/built-in/outputs/to.md rename to content/v2.0/reference/flux/stdlib/built-in/outputs/to.md index 0d6e900e8..97a62a776 100644 --- a/content/v2.0/reference/flux/functions/built-in/outputs/to.md +++ b/content/v2.0/reference/flux/stdlib/built-in/outputs/to.md @@ -3,6 +3,7 @@ title: to() function description: The `to()` function writes data to an InfluxDB v2.0 bucket. aliases: - /v2.0/reference/flux/functions/outputs/to + - /v2.0/reference/flux/functions/built-in/outputs/to/ menu: v2_0_ref: name: to diff --git a/content/v2.0/reference/flux/functions/built-in/outputs/yield.md b/content/v2.0/reference/flux/stdlib/built-in/outputs/yield.md similarity index 95% rename from content/v2.0/reference/flux/functions/built-in/outputs/yield.md rename to content/v2.0/reference/flux/stdlib/built-in/outputs/yield.md index 2c5c27ef7..8a736af63 100644 --- a/content/v2.0/reference/flux/functions/built-in/outputs/yield.md +++ b/content/v2.0/reference/flux/stdlib/built-in/outputs/yield.md @@ -3,6 +3,7 @@ title: yield() function description: The `yield()` function indicates the input tables received should be delivered as a result of the query. aliases: - /v2.0/reference/flux/functions/outputs/yield + - /v2.0/reference/flux/functions/built-in/outputs/yield/ menu: v2_0_ref: name: yield diff --git a/content/v2.0/reference/flux/functions/built-in/tests/_index.md b/content/v2.0/reference/flux/stdlib/built-in/tests/_index.md similarity index 89% rename from content/v2.0/reference/flux/functions/built-in/tests/_index.md rename to content/v2.0/reference/flux/stdlib/built-in/tests/_index.md index 1dd1dcc77..91ad2fcda 100644 --- a/content/v2.0/reference/flux/functions/built-in/tests/_index.md +++ b/content/v2.0/reference/flux/stdlib/built-in/tests/_index.md @@ -2,6 +2,8 @@ title: Flux built-in testing functions list_title: Built-in testing functions description: Flux's built-in testing functions test various aspects of piped-forward data. +aliases: + - /v2.0/reference/flux/functions/built-in/tests/ menu: v2_0_ref: name: Tests diff --git a/content/v2.0/reference/flux/functions/built-in/tests/contains.md b/content/v2.0/reference/flux/stdlib/built-in/tests/contains.md similarity index 93% rename from content/v2.0/reference/flux/functions/built-in/tests/contains.md rename to content/v2.0/reference/flux/stdlib/built-in/tests/contains.md index ab2810daf..88376e185 100644 --- a/content/v2.0/reference/flux/functions/built-in/tests/contains.md +++ b/content/v2.0/reference/flux/stdlib/built-in/tests/contains.md @@ -1,6 +1,8 @@ --- title: contains() function description: The `contains()` function tests whether a value is a member of a set. +aliases: + - /v2.0/reference/flux/functions/built-in/tests/contains/ menu: v2_0_ref: name: contains diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/_index.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/_index.md similarity index 91% rename from content/v2.0/reference/flux/functions/built-in/transformations/_index.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/_index.md index c75a50f9f..1b5ac3bfa 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/_index.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/_index.md @@ -4,6 +4,7 @@ list_title: Built-in transformation functions description: Flux's built-in transformation functions transform and shape your data in specific ways. aliases: - /v2.0/reference/flux/functions/transformations + - /v2.0/reference/flux/functions/built-in/transformations/ menu: v2_0_ref: parent: Built-in diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/_index.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/_index.md similarity index 69% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/_index.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/_index.md index 047f02769..b14244358 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/_index.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/_index.md @@ -4,6 +4,7 @@ list_title: Built-in aggregate functions description: Flux's built-in aggregate functions take values from an input table and aggregate them in some way. aliases: - /v2.0/reference/flux/functions/transformations/aggregates + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/ menu: v2_0_ref: parent: built-in-transformations @@ -29,7 +30,7 @@ Any output table will have the following properties: - It will not have a `_time` column. ### 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. 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. They are categorized as selector functions in this documentation: -- [highestAverage](/v2.0/reference/flux/functions/transformations/selectors/highestaverage) -- [highestCurrent](/v2.0/reference/flux/functions/transformations/selectors/highestcurrent) -- [highestMax](/v2.0/reference/flux/functions/transformations/selectors/highestmax) -- [lowestAverage](/v2.0/reference/flux/functions/transformations/selectors/lowestaverage) -- [lowestCurrent](/v2.0/reference/flux/functions/transformations/selectors/lowestcurrent) -- [lowestMin](/v2.0/reference/flux/functions/transformations/selectors/lowestmin) +- [highestAverage](/v2.0/reference/flux/stdlib/built-in/transformations/selectors/highestaverage) +- [highestCurrent](/v2.0/reference/flux/stdlib/built-in/transformations/selectors/highestcurrent) +- [highestMax](/v2.0/reference/flux/stdlib/built-in/transformations/selectors/highestmax) +- [lowestAverage](/v2.0/reference/flux/stdlib/built-in/transformations/selectors/lowestaverage) +- [lowestCurrent](/v2.0/reference/flux/stdlib/built-in/transformations/selectors/lowestcurrent) +- [lowestMin](/v2.0/reference/flux/stdlib/built-in/transformations/selectors/lowestmin) diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/aggregatewindow.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/aggregatewindow.md similarity index 94% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/aggregatewindow.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/aggregatewindow.md index 435fa5030..ce15d9685 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/aggregatewindow.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/aggregatewindow.md @@ -3,6 +3,7 @@ title: aggregateWindow() function description: The `aggregateWindow()` function applies an aggregate function to fixed windows of time. aliases: - /v2.0/reference/flux/functions/transformations/aggregates/aggregatewindow + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/aggregatewindow/ menu: v2_0_ref: name: aggregateWindow @@ -48,7 +49,7 @@ _**Data type:** Duration_ ### 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_ diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/chandemomentumoscillator.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/chandemomentumoscillator.md similarity index 90% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/chandemomentumoscillator.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/chandemomentumoscillator.md index 78b5a118b..781a5bbd4 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/chandemomentumoscillator.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/chandemomentumoscillator.md @@ -3,13 +3,15 @@ title: chandeMomentumOscillator() function description: > The `chandeMomentumOscillator()` function applies the technical momentum indicator developed by Tushar Chande. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/chandemomentumoscillator/ menu: v2_0_ref: name: chandeMomentumOscillator parent: built-in-aggregates weight: 501 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 diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/count.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/count.md similarity index 92% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/count.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/count.md index 3f30cd2f9..3b2540a71 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/count.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/count.md @@ -3,6 +3,7 @@ title: count() function description: The `count()` function outputs the number of non-null records in a column. aliases: - /v2.0/reference/flux/functions/transformations/aggregates/count + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/count/ menu: v2_0_ref: name: count diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/cov.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/cov.md similarity index 95% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/cov.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/cov.md index 708c9375c..af138115a 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/cov.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/cov.md @@ -3,6 +3,7 @@ title: cov() function description: The `cov()` function computes the covariance between two streams by first joining the streams, then performing the covariance operation. aliases: - /v2.0/reference/flux/functions/transformations/aggregates/cov + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/cov/ menu: v2_0_ref: name: cov diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/covariance.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/covariance.md similarity index 92% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/covariance.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/covariance.md index 7f7254bcc..f4e7ecbbc 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/covariance.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/covariance.md @@ -3,6 +3,7 @@ title: covariance() function description: The `covariance()` function computes the covariance between two columns. aliases: - /v2.0/reference/flux/functions/transformations/aggregates/covariance + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/covariance/ menu: v2_0_ref: name: covariance diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/derivative.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/derivative.md similarity index 94% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/derivative.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/derivative.md index cffc3973b..fbfebd257 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/derivative.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/derivative.md @@ -3,6 +3,7 @@ title: derivative() function description: The `derivative()` function computes the rate of change per unit of time between subsequent non-null records. aliases: - /v2.0/reference/flux/functions/transformations/aggregates/derivative + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/derivative/ menu: v2_0_ref: name: derivative diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/difference.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/difference.md similarity index 97% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/difference.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/difference.md index 2f8d010e4..45179da67 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/difference.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/difference.md @@ -3,6 +3,7 @@ title: difference() function description: The `difference()` function computes the difference between subsequent non-null records. aliases: - /v2.0/reference/flux/functions/transformations/aggregates/difference + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/difference/ menu: v2_0_ref: name: difference diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/doubleema.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/doubleema.md similarity index 69% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/doubleema.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/doubleema.md index 88a99ef58..54799e1e1 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/doubleema.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/doubleema.md @@ -4,22 +4,24 @@ description: > The `doubleEMA()` function calculates the exponential moving average of values grouped into `n` number of points, giving more weight to recent data at double the rate of `exponentialMovingAverage()`. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/doubleema/ menu: v2_0_ref: name: doubleEMA parent: built-in-aggregates weight: 501 related: - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/movingaverage/ - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/tripleema/ - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/timedmovingaverage/ - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/exponentialmovingaverage/ - - https://docs.influxdata.com/influxdb/v1.7/query_language/functions/#double-exponential-moving-average, InfluxQL DOUBLE_EXPONENTIAL_MOVING_AVERAGE() + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/movingaverage/ + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/tripleema/ + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/timedmovingaverage/ + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/exponentialmovingaverage/ + - 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 `_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_ @@ -33,7 +35,7 @@ doubleEMA(n: 5) - `N = n` is the period used to calculate the EMA. - 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. -- `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 diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/exponentialmovingaverage.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/exponentialmovingaverage.md similarity index 78% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/exponentialmovingaverage.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/exponentialmovingaverage.md index c543ab342..960768f25 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/exponentialmovingaverage.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/exponentialmovingaverage.md @@ -3,17 +3,19 @@ title: exponentialMovingAverage() function description: > The `exponentialMovingAverage()` function calculates the exponential moving average of values in the `_value` column grouped into `n` number of points, giving more weight to recent data. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/exponentialmovingaverage/ menu: v2_0_ref: name: exponentialMovingAverage parent: built-in-aggregates weight: 501 related: - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/movingaverage/ - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/timedmovingaverage/ - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/doubleema/ - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/tripleema/ - - https://docs.influxdata.com/influxdb/v1.7/query_language/functions/#exponential-moving-average, InfluxQL EXPONENTIAL_MOVING_AVERAGE() + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/movingaverage/ + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/timedmovingaverage/ + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/doubleema/ + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/tripleema/ + - 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 diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/histogramquantile.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/histogramquantile.md similarity index 97% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/histogramquantile.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/histogramquantile.md index 84edae201..5cda2d839 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/histogramquantile.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/histogramquantile.md @@ -5,6 +5,7 @@ description: > that approximates the cumulative distribution of the dataset. aliases: - /v2.0/reference/flux/functions/transformations/aggregates/histogramquantile + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/histogramquantile/ menu: v2_0_ref: name: histogramQuantile diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/holtwinters.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/holtwinters.md similarity index 87% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/holtwinters.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/holtwinters.md index 7301ce089..2fd9bc218 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/holtwinters.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/holtwinters.md @@ -4,6 +4,7 @@ description: > The `holtWinters()` function applies the Holt-Winters forecasting method to input tables. aliases: - /v2.0/reference/flux/functions/transformations/aggregates/holtwinters + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/holtwinters/ menu: v2_0_ref: name: holtWinters @@ -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. To specify other values to use in the calculation, use: -- [`window()`](/v2.0/reference/flux/functions/built-in/transformations/window/) - with [selectors](/v2.0/reference/flux/functions/built-in/transformations/selectors/) - or [aggregates](/v2.0/reference/flux/functions/built-in/transformations/aggregates/) -- [`aggregateWindow()`](/v2.0/reference/flux/functions/built-in/transformations/aggregates/aggregatewindow) +- [`window()`](/v2.0/reference/flux/stdlib/built-in/transformations/window/) + with [selectors](/v2.0/reference/flux/stdlib/built-in/transformations/selectors/) + or [aggregates](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/) +- [`aggregateWindow()`](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/aggregatewindow) #### Fitted model The `holtWinters()` function applies the [Nelder-Mead optimization](https://en.wikipedia.org/wiki/Nelder%E2%80%93Mead_method) diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/increase.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/increase.md similarity index 94% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/increase.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/increase.md index 1865d9a6e..7528cca0f 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/increase.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/increase.md @@ -3,6 +3,7 @@ title: increase() function description: The `increase()` function calculates the total non-negative difference between values in a table. aliases: - /v2.0/reference/flux/functions/transformations/aggregates/increase + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/increase/ menu: v2_0_ref: name: increase diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/integral.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/integral.md similarity index 93% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/integral.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/integral.md index 862b417d8..c3593844f 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/integral.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/integral.md @@ -3,6 +3,7 @@ title: integral() function description: The `integral()` function computes the area under the curve per unit of time of subsequent non-null records. aliases: - /v2.0/reference/flux/functions/transformations/aggregates/integral + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/integral/ menu: v2_0_ref: name: integral diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/kaufmansama.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/kaufmansama.md similarity index 78% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/kaufmansama.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/kaufmansama.md index 1944d041d..dfa323057 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/kaufmansama.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/kaufmansama.md @@ -3,14 +3,16 @@ title: kaufmansAMA() function description: > The `kaufmansAMA()` function calculates the Kaufman's Adaptive Moving Average (KAMA) using values in an input table. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/kaufmansama/ menu: v2_0_ref: name: kaufmansAMA parent: built-in-aggregates weight: 501 related: - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/kaufmanser/ - - https://docs.influxdata.com/influxdb/v1.7/query_language/functions/#kaufmans-adaptive-moving-average, InfluxQL KAUFMANS_ADAPTIVE_MOVING_AVERAGE() + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/kaufmanser/ + - 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) diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/kaufmanser.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/kaufmanser.md similarity index 79% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/kaufmanser.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/kaufmanser.md index 5f77fc1d6..cca6731c7 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/kaufmanser.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/kaufmanser.md @@ -3,14 +3,16 @@ title: kaufmansER() function description: > The `kaufmansER()` function calculates the Kaufman's Efficiency Ratio (KER) using values in an input table. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/kaufmanser/ menu: v2_0_ref: name: kaufmansER parent: built-in-aggregates weight: 501 related: - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/kaufmansama/ - - https://docs.influxdata.com/influxdb/v1.7/query_language/functions/#kaufmans-efficiency-ratio, InfluxQL KAUFMANS_EFFICIENCY_RATIO() + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/kaufmansama/ + - 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 diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/mean.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/mean.md similarity index 92% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/mean.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/mean.md index 5f0cc4366..6065bdadc 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/mean.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/mean.md @@ -3,6 +3,7 @@ title: mean() function description: The `mean()` function computes the mean or average of non-null records in the input table. aliases: - /v2.0/reference/flux/functions/transformations/aggregates/mean + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/mean/ menu: v2_0_ref: name: mean diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/median.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/median.md similarity index 90% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/median.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/median.md index eff12a6f7..271ca394f 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/median.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/median.md @@ -5,6 +5,7 @@ description: > in the input table with values that fall within the `0.5` quantile or 50th percentile. aliases: - /v2.0/reference/flux/functions/transformations/aggregates/median + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/median/ menu: v2_0_ref: name: median @@ -12,7 +13,7 @@ menu: 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 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 %}} 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. -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 %}} ## Parameters diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/mode.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/mode.md similarity index 91% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/mode.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/mode.md index 7ad9cfdd8..8afdee34e 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/mode.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/mode.md @@ -3,6 +3,8 @@ title: mode() function description: > The `mode()` function computes the mode or value that occurs most often in a specified column in the input table. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/mode/ menu: v2_0_ref: name: mode @@ -57,4 +59,4 @@ from(bucket: "example-bucket")
##### 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) diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/movingaverage.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/movingaverage.md similarity index 80% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/movingaverage.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/movingaverage.md index 3ee8221c2..7daeee63c 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/movingaverage.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/movingaverage.md @@ -2,16 +2,18 @@ title: movingAverage() function description: > The `movingAverage()` function calculates the mean of values grouped into `n` number of points. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/movingaverage/ menu: v2_0_ref: name: movingAverage parent: built-in-aggregates weight: 501 related: - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/timedmovingaverage/ - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/exponentialmovingaverage/ - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/doubleema/ - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/tripleema/ + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/timedmovingaverage/ + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/exponentialmovingaverage/ + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/doubleema/ + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/tripleema/ - https://docs.influxdata.com/influxdb/latest/query_language/functions/#moving-average, InfluxQL MOVING_AVERAGE() --- diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/pearsonr.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/pearsonr.md similarity index 94% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/pearsonr.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/pearsonr.md index 8aaa439fe..f5e4bc776 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/pearsonr.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/pearsonr.md @@ -3,6 +3,7 @@ title: pearsonr() function description: The `pearsonr()` function computes the Pearson R correlation coefficient between two streams by first joining the streams, then performing the covariance operation normalized to compute R. aliases: - /v2.0/reference/flux/functions/transformations/aggregates/pearsonr + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/pearsonr/ menu: v2_0_ref: name: pearsonr diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/quantile.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/quantile.md similarity index 97% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/quantile.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/quantile.md index a322e83c7..483455487 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/quantile.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/quantile.md @@ -4,6 +4,7 @@ description: The `quantile()` function outputs non-null records with values that aliases: - /v2.0/reference/flux/functions/transformations/aggregates/percentile - /v2.0/reference/flux/functions/built-in/transformations/aggregates/percentile + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/quantile/ menu: v2_0_ref: name: quantile diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/reduce.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/reduce.md similarity index 98% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/reduce.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/reduce.md index 23ad32e82..293e020c3 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/reduce.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/reduce.md @@ -3,6 +3,8 @@ title: reduce() function description: > The `reduce()` function aggregates records in each table according to the reducer, `fn`, providing a way to create custom table aggregations. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/reduce/ menu: v2_0_ref: name: reduce diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/relativestrengthindex.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/relativestrengthindex.md similarity index 84% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/relativestrengthindex.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/relativestrengthindex.md index d8f08460b..58a8cb856 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/relativestrengthindex.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/relativestrengthindex.md @@ -3,16 +3,18 @@ title: relativeStrengthIndex() function description: > The `relativeStrengthIndex()` function measures the relative speed and change of values in an input table. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/relativestrengthindex/ menu: v2_0_ref: name: relativeStrengthIndex parent: built-in-aggregates weight: 501 related: - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/movingaverage/ - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/timedmovingaverage/ - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/exponentialmovingaverage/ - - https://docs.influxdata.com/influxdb/v1.7/query_language/functions/#relative-strength-index, InfluxQL RELATIVE_STRENGTH_INDEX() + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/movingaverage/ + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/timedmovingaverage/ + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/exponentialmovingaverage/ + - 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 diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/skew.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/skew.md similarity index 90% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/skew.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/skew.md index 529fe62b2..04e223c8c 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/skew.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/skew.md @@ -3,6 +3,7 @@ title: skew() function description: The `skew()` function outputs the skew of non-null records as a float. aliases: - /v2.0/reference/flux/functions/transformations/aggregates/skew + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/skew/ menu: v2_0_ref: name: skew diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/spread.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/spread.md similarity index 94% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/spread.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/spread.md index 38a8abbaa..b0ca55f65 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/spread.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/spread.md @@ -3,6 +3,7 @@ title: spread() function description: The `spread()` function outputs the difference between the minimum and maximum values in a specified column. aliases: - /v2.0/reference/flux/functions/transformations/aggregates/spread + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/spread/ menu: v2_0_ref: name: spread diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/stddev.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/stddev.md similarity index 94% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/stddev.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/stddev.md index 66889cd76..027bb214f 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/stddev.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/stddev.md @@ -3,6 +3,7 @@ title: stddev() function description: The `stddev()` function computes the standard deviation of non-null records in a specified column. aliases: - /v2.0/reference/flux/functions/transformations/aggregates/stddev + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/stddev/ menu: v2_0_ref: name: stddev diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/sum.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/sum.md similarity index 90% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/sum.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/sum.md index e78449591..15b614462 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/sum.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/sum.md @@ -3,6 +3,7 @@ title: sum() function description: The `sum()` function computes the sum of non-null records in a specified column. aliases: - /v2.0/reference/flux/functions/transformations/aggregates/sum + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/sum/ menu: v2_0_ref: name: sum @@ -41,4 +42,4 @@ from(bucket: "example-bucket")
##### 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) diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/timedmovingaverage.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/timedmovingaverage.md similarity index 83% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/timedmovingaverage.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/timedmovingaverage.md index d9b435213..2d1b0be01 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/timedmovingaverage.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/timedmovingaverage.md @@ -3,16 +3,18 @@ title: timedMovingAverage() function description: > The `timedMovingAverage()` function calculates the mean of values in a defined time range at a specified frequency. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/timedmovingaverage/ menu: v2_0_ref: name: timedMovingAverage parent: built-in-aggregates weight: 501 related: - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/movingaverage/ - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/exponentialmovingaverage/ - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/doubleema/ - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/tripleema/ + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/movingaverage/ + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/exponentialmovingaverage/ + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/doubleema/ + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/tripleema/ - https://docs.influxdata.com/influxdb/latest/query_language/functions/#moving-average, InfluxQL MOVING_AVERAGE() --- diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/tripleema.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/tripleema.md similarity index 71% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/tripleema.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/tripleema.md index cb084a607..140882c33 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/tripleema.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/tripleema.md @@ -4,24 +4,26 @@ description: > The `tripleEMA()` function calculates the exponential moving average of values grouped into `n` number of points, giving more weight to recent data with less lag than `exponentialMovingAverage()` and `doubleEMA()`. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/tripleema/ menu: v2_0_ref: name: tripleEMA parent: built-in-aggregates weight: 501 related: - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/movingaverage/ - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/doubleema/ - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/timedmovingaverage/ - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/exponentialmovingaverage/ - - https://docs.influxdata.com/influxdb/v1.7/query_language/functions/#triple-exponential-moving-average, InfluxQL TRIPLE_EXPONENTIAL_MOVING_AVERAGE() + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/movingaverage/ + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/doubleema/ + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/timedmovingaverage/ + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/exponentialmovingaverage/ + - 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 `_value` column grouped into `n` number of points, giving more weight to recent data with less lag than -[`exponentialMovingAverage()`](/v2.0/reference/flux/functions/built-in/transformations/aggregates/exponentialmovingaverage/) -and [`doubleEMA()`](/v2.0/reference/flux/functions/built-in/transformations/aggregates/doubleema/). +[`exponentialMovingAverage()`](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/exponentialmovingaverage/) +and [`doubleEMA()`](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/doubleema/). _**Function type:** Aggregate_ @@ -36,7 +38,7 @@ tripleEMA(n: 5) - `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. 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 diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/tripleexponentialderivative.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/tripleexponentialderivative.md similarity index 75% rename from content/v2.0/reference/flux/functions/built-in/transformations/aggregates/tripleexponentialderivative.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/tripleexponentialderivative.md index 4fa7c2137..9d6aee924 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/tripleexponentialderivative.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/tripleexponentialderivative.md @@ -3,6 +3,8 @@ title: tripleExponentialDerivative() function description: > The `tripleExponentialDerivative()` function calculates a triple exponential derivative (TRIX) of input tables using `n` points. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/aggregates/tripleexponentialderivative/ menu: v2_0_ref: name: tripleExponentialDerivative @@ -10,12 +12,12 @@ menu: weight: 501 v2.0/tags: [technical analysis] related: - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/movingaverage/ - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/doubleema/ - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/tripleema/ - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/timedmovingaverage/ - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/exponentialmovingaverage/ - - https://docs.influxdata.com/influxdb/v1.7/query_language/functions/#triple-exponential-derivative, InfluxQL TRIPLE_EXPONENTIAL_DERIVATIVE() + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/movingaverage/ + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/doubleema/ + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/tripleema/ + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/timedmovingaverage/ + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/exponentialmovingaverage/ + - https://docs.influxdata.com/influxdb/latest/query_language/functions/#triple-exponential-derivative, InfluxQL TRIPLE_EXPONENTIAL_DERIVATIVE() --- The `tripleExponentialDerivative()` function calculates a triple exponential @@ -46,7 +48,7 @@ a negative value indicates decreasing momentum. - `EMA_3 = EMA(EMA(EMA(data)))` - 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 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 acts only on the `_value` column. diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/columns.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/columns.md similarity index 96% rename from content/v2.0/reference/flux/functions/built-in/transformations/columns.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/columns.md index e76f5bdc6..2703ce387 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/columns.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/columns.md @@ -6,6 +6,7 @@ description: > plus a new column containing the labels of the input table's columns. aliases: - /v2.0/reference/flux/functions/transformations/columns + - /v2.0/reference/flux/functions/built-in/transformations/columns/ menu: v2_0_ref: name: columns diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/cumulativesum.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/cumulativesum.md similarity index 93% rename from content/v2.0/reference/flux/functions/built-in/transformations/cumulativesum.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/cumulativesum.md index c63d5f054..72d4087e6 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/cumulativesum.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/cumulativesum.md @@ -3,6 +3,7 @@ title: cumulativeSum() function description: The `cumulativeSum()` function computes a running sum for non-null records in the table. aliases: - /v2.0/reference/flux/functions/transformations/cumulativesum + - /v2.0/reference/flux/functions/built-in/transformations/cumulativesum/ menu: v2_0_ref: name: cumulativeSum diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/drop.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/drop.md similarity index 96% rename from content/v2.0/reference/flux/functions/built-in/transformations/drop.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/drop.md index cfef40929..2c2f70133 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/drop.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/drop.md @@ -3,6 +3,7 @@ title: drop() function description: The `drop()` function removes specified columns from a table. aliases: - /v2.0/reference/flux/functions/transformations/drop + - /v2.0/reference/flux/functions/built-in/transformations/drop/ menu: v2_0_ref: name: drop diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/duplicate.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/duplicate.md similarity index 93% rename from content/v2.0/reference/flux/functions/built-in/transformations/duplicate.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/duplicate.md index 54a90f9b2..cbc060dc0 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/duplicate.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/duplicate.md @@ -3,6 +3,7 @@ title: duplicate() function description: The `duplicate()` function duplicates a specified column in a table. aliases: - /v2.0/reference/flux/functions/transformations/duplicate + - /v2.0/reference/flux/functions/built-in/transformations/duplicate/ menu: v2_0_ref: name: duplicate diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/elapsed.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/elapsed.md similarity index 93% rename from content/v2.0/reference/flux/functions/built-in/transformations/elapsed.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/elapsed.md index 0c410b1f0..b297476c2 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/elapsed.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/elapsed.md @@ -1,6 +1,8 @@ --- title: elapsed() function description: The `elapsed()` function returns the time between subsequent records. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/elapsed/ menu: v2_0_ref: name: elapsed diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/fill.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/fill.md similarity index 96% rename from content/v2.0/reference/flux/functions/built-in/transformations/fill.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/fill.md index ff534a98d..9cd01d630 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/fill.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/fill.md @@ -3,6 +3,7 @@ title: fill() function description: The `fill()` function replaces all null values in an input stream and replace them with a non-null value. aliases: - /v2.0/reference/flux/functions/transformations/fill + - /v2.0/reference/flux/functions/built-in/transformations/fill/ menu: v2_0_ref: name: fill diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/filter.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/filter.md similarity index 95% rename from content/v2.0/reference/flux/functions/built-in/transformations/filter.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/filter.md index 76c82962b..d52681b23 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/filter.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/filter.md @@ -3,6 +3,7 @@ title: filter() function description: The `filter()` function filters data based on conditions defined in a predicate function (fn). aliases: - /v2.0/reference/flux/functions/transformations/filter + - /v2.0/reference/flux/functions/built-in/transformations/filter/ menu: v2_0_ref: name: filter diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/group.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/group.md similarity index 96% rename from content/v2.0/reference/flux/functions/built-in/transformations/group.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/group.md index 17412ee6c..f968ed990 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/group.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/group.md @@ -3,6 +3,7 @@ title: group() function description: The `group()` function groups records based on their values for specific columns. aliases: - /v2.0/reference/flux/functions/transformations/group + - /v2.0/reference/flux/functions/built-in/transformations/group/ menu: v2_0_ref: name: group diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/histogram.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/histogram.md similarity index 91% rename from content/v2.0/reference/flux/functions/built-in/transformations/histogram.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/histogram.md index 669f9f222..a4e04bb96 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/histogram.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/histogram.md @@ -3,6 +3,7 @@ title: histogram() function description: The `histogram()` function approximates the cumulative distribution of a dataset by counting data frequencies for a list of bins. aliases: - /v2.0/reference/flux/functions/transformations/histogram + - /v2.0/reference/flux/functions/built-in/transformations/histogram/ menu: v2_0_ref: name: histogram @@ -56,8 +57,8 @@ _**Data type:** Array of floats_ #### Bin helper functions The following helper functions can be used to generated bins. -[linearBins()](/v2.0/reference/flux/functions/built-in/misc/linearbins) -[logarithmicBins()](/v2.0/reference/flux/functions/built-in/misc/logarithmicbins) +[linearBins()](/v2.0/reference/flux/stdlib/built-in/misc/linearbins) +[logarithmicBins()](/v2.0/reference/flux/stdlib/built-in/misc/logarithmicbins) ### normalize When `true`, will convert the counts into frequency values between 0 and 1. diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/hourselection.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/hourselection.md similarity index 88% rename from content/v2.0/reference/flux/functions/built-in/transformations/hourselection.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/hourselection.md index 0b9b2f58b..b56ad99f5 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/hourselection.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/hourselection.md @@ -4,7 +4,8 @@ description: > The `hourSelection()` function retains all rows with time values in a specified hour range. Hours are specified in military time. aliases: - - /v2.0/reference/flux/functions/transformations/hourSelection + - /v2.0/reference/flux/functions/transformations/hourselection + - /v2.0/reference/flux/functions/built-in/transformations/hourselection/ menu: v2_0_ref: name: hourSelection diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/join.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/join.md similarity index 97% rename from content/v2.0/reference/flux/functions/built-in/transformations/join.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/join.md index 2a8f2d8dd..677fe845d 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/join.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/join.md @@ -3,6 +3,7 @@ title: join() function description: The `join()` function merges two or more input streams whose values are equal on a set of common columns into a single output stream. aliases: - /v2.0/reference/flux/functions/transformations/join + - /v2.0/reference/flux/functions/built-in/transformations/join/ menu: v2_0_ref: name: join diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/keep.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/keep.md similarity index 90% rename from content/v2.0/reference/flux/functions/built-in/transformations/keep.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/keep.md index e1ec0b872..6c4f0dada 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/keep.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/keep.md @@ -3,6 +3,7 @@ title: keep() function description: The `keep()` function returns a table containing only the specified columns. aliases: - /v2.0/reference/flux/functions/transformations/keep + - /v2.0/reference/flux/functions/built-in/transformations/keep/ menu: v2_0_ref: name: keep @@ -12,7 +13,7 @@ weight: 401 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. -_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_ _**Output data type:** Object_ diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/keys.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/keys.md similarity index 96% rename from content/v2.0/reference/flux/functions/built-in/transformations/keys.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/keys.md index e4ecd1b4d..5f82e10b3 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/keys.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/keys.md @@ -6,6 +6,7 @@ description: > _value column containing the labels of the input table's group key. aliases: - /v2.0/reference/flux/functions/transformations/keys + - /v2.0/reference/flux/functions/built-in/transformations/keys/ menu: v2_0_ref: name: keys diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/keyvalues.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/keyvalues.md similarity index 97% rename from content/v2.0/reference/flux/functions/built-in/transformations/keyvalues.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/keyvalues.md index cd6b6d5f7..3db7044bc 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/keyvalues.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/keyvalues.md @@ -3,6 +3,7 @@ title: keyValues() function description: The `keyValues()` function returns a table with the input table's group key plus two columns, _key and _value, that correspond to unique column + value pairs from the input table. aliases: - /v2.0/reference/flux/functions/transformations/keyvalues + - /v2.0/reference/flux/functions/built-in/transformations/keyvalues/ menu: v2_0_ref: name: keyValues diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/limit.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/limit.md similarity index 89% rename from content/v2.0/reference/flux/functions/built-in/transformations/limit.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/limit.md index b0e3b0741..dd7915862 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/limit.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/limit.md @@ -3,13 +3,14 @@ title: limit() function description: The `limit()` function limits each output table to the first `n` records. aliases: - /v2.0/reference/flux/functions/transformations/limit + - /v2.0/reference/flux/functions/built-in/transformations/limit/ menu: v2_0_ref: name: limit parent: built-in-transformations weight: 401 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 --- diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/map.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/map.md similarity index 97% rename from content/v2.0/reference/flux/functions/built-in/transformations/map.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/map.md index c4b509bf9..8a4d8505f 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/map.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/map.md @@ -3,6 +3,7 @@ title: map() function description: The `map()` function applies a function to each record in the input tables. aliases: - /v2.0/reference/flux/functions/transformations/map + - /v2.0/reference/flux/functions/built-in/transformations/map/ menu: v2_0_ref: name: map diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/pivot.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/pivot.md similarity index 99% rename from content/v2.0/reference/flux/functions/built-in/transformations/pivot.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/pivot.md index 1066d1e11..db5538ce3 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/pivot.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/pivot.md @@ -3,6 +3,7 @@ title: pivot() function description: The `pivot()` function collects values stored vertically (column-wise) in a table and aligns them horizontally (row-wise) into logical sets. aliases: - /v2.0/reference/flux/functions/transformations/pivot + - /v2.0/reference/flux/functions/built-in/transformations/pivot/ menu: v2_0_ref: name: pivot diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/range.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/range.md similarity index 96% rename from content/v2.0/reference/flux/functions/built-in/transformations/range.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/range.md index 371cce541..379d6e8ac 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/range.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/range.md @@ -3,6 +3,7 @@ title: range() function description: The `range()` function filters records based on time bounds. aliases: - /v2.0/reference/flux/functions/transformations/range + - /v2.0/reference/flux/functions/built-in/transformations/range/ menu: v2_0_ref: name: range diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/rename.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/rename.md similarity index 95% rename from content/v2.0/reference/flux/functions/built-in/transformations/rename.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/rename.md index 55c22ee0b..57e3c504f 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/rename.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/rename.md @@ -3,6 +3,7 @@ title: rename() function description: The `rename()` function renames specified columns in a table. aliases: - /v2.0/reference/flux/functions/transformations/rename + - /v2.0/reference/flux/functions/built-in/transformations/rename/ menu: v2_0_ref: name: rename diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/_index.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/_index.md similarity index 78% rename from content/v2.0/reference/flux/functions/built-in/transformations/selectors/_index.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/_index.md index cf67e6d44..62cbf6955 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/_index.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/_index.md @@ -4,6 +4,7 @@ list_title: Built-in selector functions description: Flux's built-in selector functions return one or more records based on function logic. aliases: - /v2.0/reference/flux/functions/transformations/selectors + - /v2.0/reference/flux/functions/built-in/transformations/selectors/ menu: v2_0_ref: parent: built-in-transformations @@ -25,5 +26,5 @@ The following selector functions are available: The following functions can be used as both selectors or aggregates, but they are categorized as aggregate functions in this documentation: -- [median](/v2.0/reference/flux/functions/built-in/transformations/aggregates/median) -- [quantile](/v2.0/reference/flux/functions/built-in/transformations/aggregates/quantile) +- [median](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/median) +- [quantile](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/quantile) diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/bottom.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/bottom.md similarity index 94% rename from content/v2.0/reference/flux/functions/built-in/transformations/selectors/bottom.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/bottom.md index 0e82501ab..cb50c166e 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/bottom.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/bottom.md @@ -3,6 +3,7 @@ title: bottom() function description: The `bottom()` function sorts a table by columns and keeps only the bottom n records. aliases: - /v2.0/reference/flux/functions/transformations/selectors/bottom + - /v2.0/reference/flux/functions/built-in/transformations/selectors/bottom/ menu: v2_0_ref: name: bottom diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/distinct.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/distinct.md similarity index 92% rename from content/v2.0/reference/flux/functions/built-in/transformations/selectors/distinct.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/distinct.md index 945db3889..a999c3dca 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/distinct.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/distinct.md @@ -3,6 +3,7 @@ title: distinct() function description: The `distinct()` function returns the unique values for a given column. aliases: - /v2.0/reference/flux/functions/transformations/selectors/distinct + - /v2.0/reference/flux/functions/built-in/transformations/selectors/distinct/ menu: v2_0_ref: name: distinct diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/first.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/first.md similarity index 91% rename from content/v2.0/reference/flux/functions/built-in/transformations/selectors/first.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/first.md index 5767015ca..b2d80c8fd 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/first.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/first.md @@ -3,6 +3,7 @@ title: first() function description: The `first()` function selects the first non-null record from an input table. aliases: - /v2.0/reference/flux/functions/transformations/selectors/first + - /v2.0/reference/flux/functions/built-in/transformations/selectors/first/ menu: v2_0_ref: name: first diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/highestaverage.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/highestaverage.md similarity index 96% rename from content/v2.0/reference/flux/functions/built-in/transformations/selectors/highestaverage.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/highestaverage.md index 054271bdd..7cf9d502c 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/highestaverage.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/highestaverage.md @@ -3,6 +3,7 @@ title: highestAverage() function description: The `highestAverage()` function calculates the average of each table in the input stream returns the top `n` records. aliases: - /v2.0/reference/flux/functions/transformations/selectors/highestaverage + - /v2.0/reference/flux/functions/built-in/transformations/selectors/highestaverage/ menu: v2_0_ref: name: highestAverage diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/highestcurrent.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/highestcurrent.md similarity index 96% rename from content/v2.0/reference/flux/functions/built-in/transformations/selectors/highestcurrent.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/highestcurrent.md index 3a59ce712..ca0a922b0 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/highestcurrent.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/highestcurrent.md @@ -3,6 +3,7 @@ title: highestCurrent() function description: The `highestCurrent()` function selects the last record of each table in the input stream and returns the top `n` records. aliases: - /v2.0/reference/flux/functions/transformations/selectors/highestcurrent + - /v2.0/reference/flux/functions/built-in/transformations/selectors/highestcurrent/ menu: v2_0_ref: name: highestCurrent diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/highestmax.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/highestmax.md similarity index 96% rename from content/v2.0/reference/flux/functions/built-in/transformations/selectors/highestmax.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/highestmax.md index 40dd14f26..e9268edcf 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/highestmax.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/highestmax.md @@ -3,6 +3,7 @@ title: highestMax() function description: The `highestMax()` function selects the maximum record from each table in the input stream and returns the top `n` records. aliases: - /v2.0/reference/flux/functions/transformations/selectors/highestmax + - /v2.0/reference/flux/functions/built-in/transformations/selectors/highestmax/ menu: v2_0_ref: name: highestMax diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/last.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/last.md similarity index 91% rename from content/v2.0/reference/flux/functions/built-in/transformations/selectors/last.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/last.md index 83d7c3e96..52a11a4aa 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/last.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/last.md @@ -3,6 +3,7 @@ title: last() function description: The `last()` function selects the last non-null record from an input table. aliases: - /v2.0/reference/flux/functions/transformations/selectors/last + - /v2.0/reference/flux/functions/built-in/transformations/selectors/last/ menu: v2_0_ref: name: last diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/lowestaverage.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/lowestaverage.md similarity index 96% rename from content/v2.0/reference/flux/functions/built-in/transformations/selectors/lowestaverage.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/lowestaverage.md index 9020333d3..d1ea9fe7c 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/lowestaverage.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/lowestaverage.md @@ -3,6 +3,7 @@ title: lowestAverage() function description: The `lowestAverage()` function calculates the average of each table in the input stream returns the lowest `n` records. aliases: - /v2.0/reference/flux/functions/transformations/selectors/lowestaverage + - /v2.0/reference/flux/functions/built-in/transformations/selectors/lowestaverage/ menu: v2_0_ref: name: lowestAverage diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/lowestcurrent.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/lowestcurrent.md similarity index 96% rename from content/v2.0/reference/flux/functions/built-in/transformations/selectors/lowestcurrent.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/lowestcurrent.md index 0b2855df5..eab20a443 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/lowestcurrent.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/lowestcurrent.md @@ -3,6 +3,7 @@ title: lowestCurrent() function description: The `lowestCurrent()` function selects the last record of each table in the input stream and returns the lowest `n` records. aliases: - /v2.0/reference/flux/functions/transformations/selectors/lowestcurrent + - /v2.0/reference/flux/functions/built-in/transformations/selectors/lowestcurrent/ menu: v2_0_ref: name: lowestCurrent diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/lowestmin.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/lowestmin.md similarity index 96% rename from content/v2.0/reference/flux/functions/built-in/transformations/selectors/lowestmin.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/lowestmin.md index f8b1319cf..8a0cdc57a 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/lowestmin.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/lowestmin.md @@ -3,6 +3,7 @@ title: lowestMin() function description: The `lowestMin()` function selects the minimum record from each table in the input stream and returns the lowest `n` records. aliases: - /v2.0/reference/flux/functions/transformations/selectors/lowestmin + - /v2.0/reference/flux/functions/built-in/transformations/selectors/lowestmin/ menu: v2_0_ref: name: lowestMin diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/max.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/max.md similarity index 90% rename from content/v2.0/reference/flux/functions/built-in/transformations/selectors/max.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/max.md index 3069e2393..9ec939844 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/max.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/max.md @@ -2,7 +2,8 @@ title: max() function description: The `max()` function selects record with the highest _value from the input table. aliases: - - /v2.0/reference/flux/functions/transformations/selectors/max + - /v2.0/reference/flux/functions/transformations/selectors/max + - /v2.0/reference/flux/functions/built-in/transformations/selectors/max/ menu: v2_0_ref: name: max @@ -41,4 +42,4 @@ from(bucket:"example-bucket")
##### Related InfluxQL functions and statements: -[MAX()](https://docs.influxdata.com/influxdb/latest/query_language/functions/#max) +[MAX()](https://docs.influxdata.com/influxdb/latest/query_language/functions/#max) diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/min.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/min.md similarity index 92% rename from content/v2.0/reference/flux/functions/built-in/transformations/selectors/min.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/min.md index 24ea3c573..28c3ba794 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/min.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/min.md @@ -3,6 +3,7 @@ title: min() function description: The `min()` function selects record with the lowest _value from the input table. aliases: - /v2.0/reference/flux/functions/transformations/selectors/min + - /v2.0/reference/flux/functions/built-in/transformations/selectors/min/ menu: v2_0_ref: name: min diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/sample.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/sample.md similarity index 91% rename from content/v2.0/reference/flux/functions/built-in/transformations/selectors/sample.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/sample.md index 2bcc6ae83..7e6f9a7f5 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/sample.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/sample.md @@ -3,6 +3,7 @@ title: sample() function description: The `sample()` function selects a subset of the records from the input table. aliases: - /v2.0/reference/flux/functions/transformations/selectors/sample + - /v2.0/reference/flux/functions/built-in/transformations/selectors/sample/ menu: v2_0_ref: name: sample @@ -48,4 +49,4 @@ from(bucket:"example-bucket")
##### Related InfluxQL functions and statements: -[SAMPLE()](https://docs.influxdata.com/influxdb/latest/query_language/functions/#sample) +[SAMPLE()](https://docs.influxdata.com/influxdb/latest/query_language/functions/#sample) diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/top.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/top.md similarity index 94% rename from content/v2.0/reference/flux/functions/built-in/transformations/selectors/top.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/top.md index 87ffbed73..630bf8f4e 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/top.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/top.md @@ -3,6 +3,7 @@ title: top() function description: The `top()` function sorts a table by columns and keeps only the top n records. aliases: - /v2.0/reference/flux/functions/transformations/selectors/top + - /v2.0/reference/flux/functions/built-in/transformations/selectors/top/ menu: v2_0_ref: name: top diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/unique.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/unique.md similarity index 91% rename from content/v2.0/reference/flux/functions/built-in/transformations/selectors/unique.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/unique.md index fe5047a7f..899ca0bd2 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/selectors/unique.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/unique.md @@ -3,6 +3,7 @@ title: unique() function description: The `unique()` function returns all records containing unique values in a specified column. aliases: - /v2.0/reference/flux/functions/transformations/selectors/unique + - /v2.0/reference/flux/functions/built-in/transformations/selectors/unique/ menu: v2_0_ref: name: unique diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/set.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/set.md similarity index 93% rename from content/v2.0/reference/flux/functions/built-in/transformations/set.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/set.md index 51e88830d..812bc21b0 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/set.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/set.md @@ -3,6 +3,7 @@ title: set() function description: The `set()` function assigns a static value to each record in the input table. aliases: - /v2.0/reference/flux/functions/transformations/set + - /v2.0/reference/flux/functions/built-in/transformations/set/ menu: v2_0_ref: name: set diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/sort.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/sort.md similarity index 94% rename from content/v2.0/reference/flux/functions/built-in/transformations/sort.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/sort.md index 679885b53..a4a6f4e1d 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/sort.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/sort.md @@ -3,6 +3,7 @@ title: sort() function description: The `sort()` function orders the records within each table. aliases: - /v2.0/reference/flux/functions/transformations/sort + - /v2.0/reference/flux/functions/built-in/transformations/sort/ menu: v2_0_ref: name: sort diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/statecount.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/statecount.md similarity index 96% rename from content/v2.0/reference/flux/functions/built-in/transformations/statecount.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/statecount.md index 22dfa0c4c..58966ae86 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/statecount.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/statecount.md @@ -3,6 +3,7 @@ title: stateCount() function description: The `stateCount()` function computes the number of consecutive records in a given state. aliases: - /v2.0/reference/flux/functions/transformations/statecount + - /v2.0/reference/flux/functions/built-in/transformations/statecount/ menu: v2_0_ref: name: stateCount diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/stateduration.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/stateduration.md similarity index 96% rename from content/v2.0/reference/flux/functions/built-in/transformations/stateduration.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/stateduration.md index 114299a9d..d21f16227 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/stateduration.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/stateduration.md @@ -3,6 +3,7 @@ title: stateDuration() function description: The `stateDuration()` function computes the duration of a given state. aliases: - /v2.0/reference/flux/functions/transformations/stateduration + - /v2.0/reference/flux/functions/built-in/transformations/stateduration/ menu: v2_0_ref: name: stateDuration diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/stream-table/_index.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/stream-table/_index.md similarity index 92% rename from content/v2.0/reference/flux/functions/built-in/transformations/stream-table/_index.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/stream-table/_index.md index 9206961fd..c1c0f1382 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/stream-table/_index.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/stream-table/_index.md @@ -5,6 +5,8 @@ seotitle: Flux built-in stream and table functions description: > Use stream and table functions to extract a table from a stream of tables and access its columns and records. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/stream-table/ weight: 401 menu: v2_0_ref: diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/stream-table/getcolumn.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/stream-table/getcolumn.md similarity index 90% rename from content/v2.0/reference/flux/functions/built-in/transformations/stream-table/getcolumn.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/stream-table/getcolumn.md index 2bc462efb..fa4285d9b 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/stream-table/getcolumn.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/stream-table/getcolumn.md @@ -3,6 +3,8 @@ title: getColumn() function description: > The `getColumn()` function extracts a column from a table given its label. If the label is not present in the set of columns, the function errors. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/stream-table/getcolumn/ menu: v2_0_ref: name: getColumn diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/stream-table/getrecord.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/stream-table/getrecord.md similarity index 89% rename from content/v2.0/reference/flux/functions/built-in/transformations/stream-table/getrecord.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/stream-table/getrecord.md index 9e1f35826..4e16469e5 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/stream-table/getrecord.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/stream-table/getrecord.md @@ -3,6 +3,8 @@ title: getRecord() function description: > The `getRecord()` function extracts a record from a table given its index. If the index is out of bounds, the function errors. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/stream-table/getrecord/ menu: v2_0_ref: name: getRecord diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/stream-table/tablefind.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/stream-table/tablefind.md similarity index 84% rename from content/v2.0/reference/flux/functions/built-in/transformations/stream-table/tablefind.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/stream-table/tablefind.md index f558c3f38..8d7fc25f4 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/stream-table/tablefind.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/stream-table/tablefind.md @@ -3,6 +3,8 @@ title: tableFind() function description: > The `tableFind()` function extracts the first table in a stream of tables whose group key values match a predicate. If no table is found, the function errors. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/stream-table/tablefind/ menu: v2_0_ref: name: tableFind @@ -52,6 +54,6 @@ t = from(bucket:"example-bucket") ``` {{% note %}} -You can use `t` from the example above as input for [`getColumn()`](/v2.0/reference/flux/functions/built-in/transformations/stream-table/getcolumn/) -and [`getRecord()`](/v2.0/reference/flux/functions/built-in/transformations/stream-table/getrecord/). +You can use `t` from the example above as input for [`getColumn()`](/v2.0/reference/flux/stdlib/built-in/transformations/stream-table/getcolumn/) +and [`getRecord()`](/v2.0/reference/flux/stdlib/built-in/transformations/stream-table/getrecord/). {{% /note %}} diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/tail.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/tail.md similarity index 93% rename from content/v2.0/reference/flux/functions/built-in/transformations/tail.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/tail.md index 330d90a68..b86287b1b 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/tail.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/tail.md @@ -1,6 +1,8 @@ --- title: tail() function description: The `tail()` function limits each output table to the last `n` records. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/tail/ menu: v2_0_ref: name: tail diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/timeshift.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/timeshift.md similarity index 94% rename from content/v2.0/reference/flux/functions/built-in/transformations/timeshift.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/timeshift.md index a936dacaa..be365a397 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/timeshift.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/timeshift.md @@ -4,6 +4,7 @@ description: The `timeShift()` function adds a fixed duration to time columns. aliases: - /v2.0/reference/flux/functions/transformations/shift - /v2.0/reference/flux/functions/built-in/transformations/shift + - /v2.0/reference/flux/functions/built-in/transformations/timeshift/ menu: v2_0_ref: name: timeShift diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/truncatetimecolumn.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/truncatetimecolumn.md similarity index 87% rename from content/v2.0/reference/flux/functions/built-in/transformations/truncatetimecolumn.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/truncatetimecolumn.md index 164091a53..6b0a0b053 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/truncatetimecolumn.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/truncatetimecolumn.md @@ -2,13 +2,15 @@ title: truncateTimeColumn() function description: > The `truncateTimeColumn()` function truncates all input table `_time` values to a specified unit. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/truncatetimecolumn/ menu: v2_0_ref: name: truncateTimeColumn parent: built-in-transformations weight: 401 related: - - /v2.0/reference/flux/functions/date/truncate/ + - /v2.0/reference/flux/stdlib/date/truncate/ --- The `truncateTimeColumn()` function truncates all input table `_time` values to a specified unit. diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/_index.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/_index.md similarity index 89% rename from content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/_index.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/_index.md index 32dc3ad41..713e7c120 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/_index.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/_index.md @@ -4,6 +4,7 @@ list_title: Built-in type conversion functions description: Flux's built-in built-in type conversion functions convert columns of the input table into a specific data type. aliases: - /v2.0/reference/flux/functions/transformations/type-conversions + - /v2.0/reference/flux/functions/built-in/transformations/type-conversions/ menu: v2_0_ref: parent: built-in-transformations diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/bool.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/bool.md similarity index 86% rename from content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/bool.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/bool.md index e2124006c..03935abee 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/bool.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/bool.md @@ -1,6 +1,8 @@ --- title: bool() function description: The `bool()` function converts a single value to a boolean. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/type-conversions/bool/ menu: v2_0_ref: name: bool diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/bytes.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/bytes.md similarity index 84% rename from content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/bytes.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/bytes.md index c4bf8212e..a3707bb88 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/bytes.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/bytes.md @@ -1,6 +1,8 @@ --- title: bytes() function description: The `bytes()` function converts a single value to bytes. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/type-conversions/bytes/ menu: v2_0_ref: name: bytes diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/duration.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/duration.md similarity index 86% rename from content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/duration.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/duration.md index bb3a79a28..bb52c0560 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/duration.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/duration.md @@ -1,6 +1,8 @@ --- title: duration() function description: The `duration()` function converts a single value to a duration. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/type-conversions/duration/ menu: v2_0_ref: name: duration diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/float.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/float.md similarity index 86% rename from content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/float.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/float.md index c077410db..30e54c5b0 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/float.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/float.md @@ -1,6 +1,8 @@ --- title: float() function description: The `float()` function converts a single value to a float. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/type-conversions/float/ menu: v2_0_ref: name: float diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/int.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/int.md similarity index 86% rename from content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/int.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/int.md index 4085a88ce..a0da92ec4 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/int.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/int.md @@ -1,6 +1,8 @@ --- title: int() function description: The `int()` function converts a single value to an integer. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/type-conversions/int/ menu: v2_0_ref: name: int diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/string.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/string.md similarity index 75% rename from content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/string.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/string.md index 4c892b569..d8c3648bf 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/string.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/string.md @@ -1,6 +1,8 @@ --- title: string() function description: The `string()` function converts a single value to a string. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/type-conversions/string/ menu: v2_0_ref: name: string @@ -27,5 +29,5 @@ The value to convert. from(bucket: "sensor-data") |> range(start: -1m) |> filter(fn:(r) => r._measurement == "system" ) - |> map(fn:(r) => ({ r with model_number string(v: r.model_number) })) + |> map(fn:(r) => ({ r with model_number: string(v: r.model_number) })) ``` diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/time.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/time.md similarity index 86% rename from content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/time.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/time.md index 1bd9c324a..bcaa3fcaa 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/time.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/time.md @@ -1,6 +1,8 @@ --- title: time() function description: The `time()` function converts a single value to a time. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/type-conversions/time/ menu: v2_0_ref: name: time diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/tobool.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/tobool.md similarity index 80% rename from content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/tobool.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/tobool.md index 0f0ec100a..2cad528d3 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/tobool.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/tobool.md @@ -3,6 +3,7 @@ title: toBool() function description: The `toBool()` function converts all values in the `_value` column to booleans. aliases: - /v2.0/reference/flux/functions/transformations/type-conversions/tobool + - /v2.0/reference/flux/functions/built-in/transformations/type-conversions/tobool/ menu: v2_0_ref: name: toBool @@ -43,5 +44,5 @@ toBool = (tables=<-) => ``` _**Used functions:** -[map()](/v2.0/reference/flux/functions/built-in/transformations/map), -[bool()](/v2.0/reference/flux/functions/built-in/transformations/type-conversions/bool)_ +[map()](/v2.0/reference/flux/stdlib/built-in/transformations/map), +[bool()](/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/bool)_ diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/toduration.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/toduration.md similarity index 81% rename from content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/toduration.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/toduration.md index 29adcd293..6ffa8ad51 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/toduration.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/toduration.md @@ -3,6 +3,7 @@ title: toDuration() function description: The `toDuration()` function converts all values in the `_value` column to durations. aliases: - /v2.0/reference/flux/functions/transformations/type-conversions/toduration + - /v2.0/reference/flux/functions/built-in/transformations/type-conversions/toduration/ menu: v2_0_ref: name: toDuration @@ -47,5 +48,5 @@ toDuration = (tables=<-) => ``` _**Used functions:** -[map()](/v2.0/reference/flux/functions/built-in/transformations/map), -[duration()](/v2.0/reference/flux/functions/built-in/transformations/type-conversions/duration)_ +[map()](/v2.0/reference/flux/stdlib/built-in/transformations/map), +[duration()](/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/duration)_ diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/tofloat.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/tofloat.md similarity index 80% rename from content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/tofloat.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/tofloat.md index 237babf29..cabaf654b 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/tofloat.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/tofloat.md @@ -3,6 +3,7 @@ title: toFloat() function description: The `toFloat()` function converts all values in the `_value` column to floats. aliases: - /v2.0/reference/flux/functions/transformations/type-conversions/tofloat + - /v2.0/reference/flux/functions/built-in/transformations/type-conversions/tofloat/ menu: v2_0_ref: name: toFloat @@ -43,5 +44,5 @@ toFloat = (tables=<-) => ``` _**Used functions:** -[map()](/v2.0/reference/flux/functions/built-in/transformations/map), -[float()](/v2.0/reference/flux/functions/built-in/transformations/type-conversions/float)_ +[map()](/v2.0/reference/flux/stdlib/built-in/transformations/map), +[float()](/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/float)_ diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/toint.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/toint.md similarity index 80% rename from content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/toint.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/toint.md index 69bbb02c5..4053d716b 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/toint.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/toint.md @@ -3,6 +3,7 @@ title: toInt() function description: The `toInt()` function converts all values in the `_value` column to integers. aliases: - /v2.0/reference/flux/functions/transformations/type-conversions/toint + - /v2.0/reference/flux/functions/built-in/transformations/type-conversions/toint/ menu: v2_0_ref: name: toInt @@ -43,5 +44,5 @@ toInt = (tables=<-) => ``` _**Used functions:** -[map()](/v2.0/reference/flux/functions/built-in/transformations/map), -[int()](/v2.0/reference/flux/functions/built-in/transformations/type-conversions/int)_ +[map()](/v2.0/reference/flux/stdlib/built-in/transformations/map), +[int()](/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/int)_ diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/tostring.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/tostring.md similarity index 80% rename from content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/tostring.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/tostring.md index 342052ccd..99645fa1e 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/tostring.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/tostring.md @@ -3,6 +3,7 @@ title: toString() function description: The `toString()` function converts all values in the `_value` column to strings. aliases: - /v2.0/reference/flux/functions/transformations/type-conversions/tostring + - /v2.0/reference/flux/functions/built-in/transformations/type-conversions/tostring/ menu: v2_0_ref: name: toString @@ -43,5 +44,5 @@ toString = (tables=<-) => ``` _**Used functions:** -[map()](/v2.0/reference/flux/functions/built-in/transformations/map), -[string()](/v2.0/reference/flux/functions/built-in/transformations/type-conversions/string)_ +[map()](/v2.0/reference/flux/stdlib/built-in/transformations/map), +[string()](/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/string)_ diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/totime.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/totime.md similarity index 80% rename from content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/totime.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/totime.md index 6b22ae988..ea36402ee 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/totime.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/totime.md @@ -3,6 +3,7 @@ title: toTime() function description: The `toTime()` function converts all values in the `_value` column to times. aliases: - /v2.0/reference/flux/functions/transformations/type-conversions/totime + - /v2.0/reference/flux/functions/built-in/transformations/type-conversions/totime/ menu: v2_0_ref: name: toTime @@ -43,5 +44,5 @@ toTime = (tables=<-) => ``` _**Used functions:** -[map()](/v2.0/reference/flux/functions/built-in/transformations/map), -[time()](/v2.0/reference/flux/functions/built-in/transformations/type-conversions/time)_ +[map()](/v2.0/reference/flux/stdlib/built-in/transformations/map), +[time()](/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/time)_ diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/touint.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/touint.md similarity index 80% rename from content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/touint.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/touint.md index 5e0809358..d113d28a1 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/touint.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/touint.md @@ -3,6 +3,7 @@ title: toUInt() function description: The `toUInt()` function converts all values in the `_value` column to UIntegers. aliases: - /v2.0/reference/flux/functions/transformations/type-conversions/touint + - /v2.0/reference/flux/functions/built-in/transformations/type-conversions/touint/ menu: v2_0_ref: name: toUInt @@ -43,5 +44,5 @@ toUInt = (tables=<-) => ``` _**Used functions:** -[map()](/v2.0/reference/flux/functions/built-in/transformations/map), -[uint()](/v2.0/reference/flux/functions/built-in/transformations/type-conversions/uint)_ +[map()](/v2.0/reference/flux/stdlib/built-in/transformations/map), +[uint()](/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/uint)_ diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/uint.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/uint.md similarity index 86% rename from content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/uint.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/uint.md index 1c72dcc67..72f12c2d0 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/type-conversions/uint.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/uint.md @@ -1,6 +1,8 @@ --- title: uint() function description: The `uint()` function converts a single value to a UInteger. +aliases: + - /v2.0/reference/flux/functions/built-in/transformations/type-conversions/uint/ menu: v2_0_ref: name: uint diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/union.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/union.md similarity index 95% rename from content/v2.0/reference/flux/functions/built-in/transformations/union.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/union.md index 449e15ee6..eba22a466 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/union.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/union.md @@ -3,6 +3,7 @@ title: union() function description: The `union()` function concatenates two or more input streams into a single output stream. aliases: - /v2.0/reference/flux/functions/transformations/union + - /v2.0/reference/flux/functions/built-in/transformations/union/ menu: v2_0_ref: name: union diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/window.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/window.md similarity index 97% rename from content/v2.0/reference/flux/functions/built-in/transformations/window.md rename to content/v2.0/reference/flux/stdlib/built-in/transformations/window.md index bd9f658aa..6611b35a6 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/window.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/window.md @@ -3,6 +3,7 @@ title: window() function description: The `window()` function groups records based on a time value. aliases: - /v2.0/reference/flux/functions/transformations/window + - /v2.0/reference/flux/functions/built-in/transformations/window/ menu: v2_0_ref: name: window diff --git a/content/v2.0/reference/flux/functions/csv/_index.md b/content/v2.0/reference/flux/stdlib/csv/_index.md similarity index 86% rename from content/v2.0/reference/flux/functions/csv/_index.md rename to content/v2.0/reference/flux/stdlib/csv/_index.md index f1af202be..e8ebc3e22 100644 --- a/content/v2.0/reference/flux/functions/csv/_index.md +++ b/content/v2.0/reference/flux/stdlib/csv/_index.md @@ -4,10 +4,12 @@ list_title: CSV package description: > The Flux CSV package provides functions for working with data in annotated CSV format. Import the `csv` package. +aliases: + - /v2.0/reference/flux/functions/csv/ menu: v2_0_ref: name: CSV - parent: Flux packages and functions + parent: Flux standard library weight: 202 v2.0/tags: [functions, csv, package] --- diff --git a/content/v2.0/reference/flux/functions/csv/from.md b/content/v2.0/reference/flux/stdlib/csv/from.md similarity index 97% rename from content/v2.0/reference/flux/functions/csv/from.md rename to content/v2.0/reference/flux/stdlib/csv/from.md index 712555dcd..6114f3c08 100644 --- a/content/v2.0/reference/flux/functions/csv/from.md +++ b/content/v2.0/reference/flux/stdlib/csv/from.md @@ -4,6 +4,7 @@ description: The `csv.from()` function retrieves data from a CSV data source. aliases: - /v2.0/reference/flux/functions/inputs/fromcsv - /v2.0/reference/flux/functions/built-in/inputs/fromcsv + - /v2.0/reference/flux/functions/csv/from/ menu: v2_0_ref: name: csv.from diff --git a/content/v2.0/reference/flux/functions/date/_index.md b/content/v2.0/reference/flux/stdlib/date/_index.md similarity index 93% rename from content/v2.0/reference/flux/functions/date/_index.md rename to content/v2.0/reference/flux/stdlib/date/_index.md index 14d49900d..0d603df8b 100644 --- a/content/v2.0/reference/flux/functions/date/_index.md +++ b/content/v2.0/reference/flux/stdlib/date/_index.md @@ -6,10 +6,11 @@ description: > Import the `date` package. aliases: - /v2.0/reference/flux/language/built-ins/time-constants/ + - /v2.0/reference/flux/functions/date/ menu: v2_0_ref: name: Date - parent: Flux packages and functions + parent: Flux standard library weight: 202 v2.0/tags: [date, time, functions] --- diff --git a/content/v2.0/reference/flux/functions/date/hour.md b/content/v2.0/reference/flux/stdlib/date/hour.md similarity index 90% rename from content/v2.0/reference/flux/functions/date/hour.md rename to content/v2.0/reference/flux/stdlib/date/hour.md index 619d0aa8d..efdf143e7 100644 --- a/content/v2.0/reference/flux/functions/date/hour.md +++ b/content/v2.0/reference/flux/stdlib/date/hour.md @@ -3,6 +3,8 @@ title: date.hour() function description: > The `date.hour()` function returns the hour of a specified time. Results range from `[0-23]`. +aliases: + - /v2.0/reference/flux/functions/date/hour/ menu: v2_0_ref: name: date.hour diff --git a/content/v2.0/reference/flux/functions/date/microsecond.md b/content/v2.0/reference/flux/stdlib/date/microsecond.md similarity index 90% rename from content/v2.0/reference/flux/functions/date/microsecond.md rename to content/v2.0/reference/flux/stdlib/date/microsecond.md index 6a1226250..bd4cbba76 100644 --- a/content/v2.0/reference/flux/functions/date/microsecond.md +++ b/content/v2.0/reference/flux/stdlib/date/microsecond.md @@ -3,6 +3,8 @@ title: date.microsecond() function description: > The `date.microsecond()` function returns the microsecond of a specified time. Results range from `[0-999999]`. +aliases: + - /v2.0/reference/flux/functions/date/microsecond/ menu: v2_0_ref: name: date.microsecond diff --git a/content/v2.0/reference/flux/functions/date/millisecond.md b/content/v2.0/reference/flux/stdlib/date/millisecond.md similarity index 90% rename from content/v2.0/reference/flux/functions/date/millisecond.md rename to content/v2.0/reference/flux/stdlib/date/millisecond.md index cc3645240..6d7a6285e 100644 --- a/content/v2.0/reference/flux/functions/date/millisecond.md +++ b/content/v2.0/reference/flux/stdlib/date/millisecond.md @@ -3,6 +3,8 @@ title: date.millisecond() function description: > The `date.millisecond()` function returns the millisecond of a specified time. Results range from `[0-999999]`. +aliases: + - /v2.0/reference/flux/functions/date/millisecond/ menu: v2_0_ref: name: date.millisecond diff --git a/content/v2.0/reference/flux/functions/date/minute.md b/content/v2.0/reference/flux/stdlib/date/minute.md similarity index 89% rename from content/v2.0/reference/flux/functions/date/minute.md rename to content/v2.0/reference/flux/stdlib/date/minute.md index 9a1f10fc9..5e5ec0b34 100644 --- a/content/v2.0/reference/flux/functions/date/minute.md +++ b/content/v2.0/reference/flux/stdlib/date/minute.md @@ -3,6 +3,8 @@ title: date.minute() function description: > The `date.minute()` function returns the minute of a specified time. Results range from `[0-59]`. +aliases: + - /v2.0/reference/flux/functions/date/minute/ menu: v2_0_ref: name: date.minute diff --git a/content/v2.0/reference/flux/functions/date/month.md b/content/v2.0/reference/flux/stdlib/date/month.md similarity index 84% rename from content/v2.0/reference/flux/functions/date/month.md rename to content/v2.0/reference/flux/stdlib/date/month.md index cfe91894c..6612dedd4 100644 --- a/content/v2.0/reference/flux/functions/date/month.md +++ b/content/v2.0/reference/flux/stdlib/date/month.md @@ -2,7 +2,9 @@ title: date.month() function description: > The `date.month()` function returns the month of a specified time. - Results range from `[1-12]` + Results range from `[1-12]`. +aliases: + - /v2.0/reference/flux/functions/date/month/ menu: v2_0_ref: name: date.month diff --git a/content/v2.0/reference/flux/functions/date/monthday.md b/content/v2.0/reference/flux/stdlib/date/monthday.md similarity index 90% rename from content/v2.0/reference/flux/functions/date/monthday.md rename to content/v2.0/reference/flux/stdlib/date/monthday.md index 7e95af6e7..fabc7d31b 100644 --- a/content/v2.0/reference/flux/functions/date/monthday.md +++ b/content/v2.0/reference/flux/stdlib/date/monthday.md @@ -3,6 +3,8 @@ title: date.monthDay() function description: > The `date.monthDay()` function returns the day of the month for a specified time. Results range from `[1-31]`. +aliases: + - /v2.0/reference/flux/functions/date/monthday/ menu: v2_0_ref: name: date.monthDay diff --git a/content/v2.0/reference/flux/functions/date/nanosecond.md b/content/v2.0/reference/flux/stdlib/date/nanosecond.md similarity index 90% rename from content/v2.0/reference/flux/functions/date/nanosecond.md rename to content/v2.0/reference/flux/stdlib/date/nanosecond.md index 21f42bdd7..9d05b1f72 100644 --- a/content/v2.0/reference/flux/functions/date/nanosecond.md +++ b/content/v2.0/reference/flux/stdlib/date/nanosecond.md @@ -3,6 +3,8 @@ title: date.nanosecond() function description: > The `date.nanosecond()` function returns the nanosecond of a specified time. Results range from `[0-999999999]`. +aliases: + - /v2.0/reference/flux/functions/date/nanosecond/ menu: v2_0_ref: name: date.nanosecond diff --git a/content/v2.0/reference/flux/functions/date/quarter.md b/content/v2.0/reference/flux/stdlib/date/quarter.md similarity index 90% rename from content/v2.0/reference/flux/functions/date/quarter.md rename to content/v2.0/reference/flux/stdlib/date/quarter.md index 87576ce4c..a2f05b0f9 100644 --- a/content/v2.0/reference/flux/functions/date/quarter.md +++ b/content/v2.0/reference/flux/stdlib/date/quarter.md @@ -3,6 +3,8 @@ title: date.quarter() function description: > The `date.quarter()` function returns the quarter of the year for a specified time. Results range from `[1-4]`. +aliases: + - /v2.0/reference/flux/functions/date/quarter/ menu: v2_0_ref: name: date.quarter diff --git a/content/v2.0/reference/flux/functions/date/second.md b/content/v2.0/reference/flux/stdlib/date/second.md similarity index 90% rename from content/v2.0/reference/flux/functions/date/second.md rename to content/v2.0/reference/flux/stdlib/date/second.md index 849ccea6f..e7cc28f7f 100644 --- a/content/v2.0/reference/flux/functions/date/second.md +++ b/content/v2.0/reference/flux/stdlib/date/second.md @@ -3,6 +3,8 @@ title: date.second() function description: > The `date.second()` function returns the second of a specified time. Results range from `[0-59]`. +aliases: + - /v2.0/reference/flux/functions/date/second/ menu: v2_0_ref: name: date.second diff --git a/content/v2.0/reference/flux/functions/date/truncate.md b/content/v2.0/reference/flux/stdlib/date/truncate.md similarity index 94% rename from content/v2.0/reference/flux/functions/date/truncate.md rename to content/v2.0/reference/flux/stdlib/date/truncate.md index 960bd999a..762cfffcd 100644 --- a/content/v2.0/reference/flux/functions/date/truncate.md +++ b/content/v2.0/reference/flux/stdlib/date/truncate.md @@ -2,6 +2,8 @@ title: date.truncate() function description: > The `date.truncate()` function truncates a time to a specified unit. +aliases: + - /v2.0/reference/flux/functions/date/truncate/ menu: v2_0_ref: name: date.truncate diff --git a/content/v2.0/reference/flux/functions/date/week.md b/content/v2.0/reference/flux/stdlib/date/week.md similarity index 90% rename from content/v2.0/reference/flux/functions/date/week.md rename to content/v2.0/reference/flux/stdlib/date/week.md index 8e1bede7b..dec8bddec 100644 --- a/content/v2.0/reference/flux/functions/date/week.md +++ b/content/v2.0/reference/flux/stdlib/date/week.md @@ -3,6 +3,8 @@ title: date.week() function description: > The `date.week()` function returns the ISO week of the year for a specified time. Results range from `[1-53]`. +aliases: + - /v2.0/reference/flux/functions/date/week/ menu: v2_0_ref: name: date.week diff --git a/content/v2.0/reference/flux/functions/date/weekday.md b/content/v2.0/reference/flux/stdlib/date/weekday.md similarity index 90% rename from content/v2.0/reference/flux/functions/date/weekday.md rename to content/v2.0/reference/flux/stdlib/date/weekday.md index 4ab512c05..6e6fdb18c 100644 --- a/content/v2.0/reference/flux/functions/date/weekday.md +++ b/content/v2.0/reference/flux/stdlib/date/weekday.md @@ -3,6 +3,8 @@ title: date.weekDay() function description: > The `date.weekDay()` function returns the day of the week for a specified time. Results range from `[0-6]`. +aliases: + - /v2.0/reference/flux/functions/date/weekday/ menu: v2_0_ref: name: date.weekDay diff --git a/content/v2.0/reference/flux/functions/date/year.md b/content/v2.0/reference/flux/stdlib/date/year.md similarity index 88% rename from content/v2.0/reference/flux/functions/date/year.md rename to content/v2.0/reference/flux/stdlib/date/year.md index b2e2a80b4..f911a5976 100644 --- a/content/v2.0/reference/flux/functions/date/year.md +++ b/content/v2.0/reference/flux/stdlib/date/year.md @@ -2,6 +2,8 @@ title: date.year() function description: > The `date.year()` function returns the year of a specified time. +aliases: + - /v2.0/reference/flux/functions/date/year/ menu: v2_0_ref: name: date.year diff --git a/content/v2.0/reference/flux/functions/date/yearday.md b/content/v2.0/reference/flux/stdlib/date/yearday.md similarity index 91% rename from content/v2.0/reference/flux/functions/date/yearday.md rename to content/v2.0/reference/flux/stdlib/date/yearday.md index 0725e9418..20df57afe 100644 --- a/content/v2.0/reference/flux/functions/date/yearday.md +++ b/content/v2.0/reference/flux/stdlib/date/yearday.md @@ -3,6 +3,8 @@ title: date.yearDay() function description: > The `date.yearDay()` function returns the day of the year for a specified time. Results range from `[1-365]` for non-leap years, and `[1-366]` in leap years. +aliases: + - /v2.0/reference/flux/functions/date/yearday/ menu: v2_0_ref: name: date.yearDay diff --git a/content/v2.0/reference/flux/functions/http/_index.md b/content/v2.0/reference/flux/stdlib/http/_index.md similarity index 84% rename from content/v2.0/reference/flux/functions/http/_index.md rename to content/v2.0/reference/flux/stdlib/http/_index.md index 575108bfb..7145da674 100644 --- a/content/v2.0/reference/flux/functions/http/_index.md +++ b/content/v2.0/reference/flux/stdlib/http/_index.md @@ -4,10 +4,12 @@ list_title: HTTP package description: > The Flux HTTP package provides functions for transferring data using the HTTP protocol. Import the `http` package. +aliases: + - /v2.0/reference/flux/functions/http/ menu: v2_0_ref: name: HTTP - parent: Flux packages and functions + parent: Flux standard library weight: 202 v2.0/tags: [functions, http, package] --- diff --git a/content/v2.0/reference/flux/functions/http/basicauth.md b/content/v2.0/reference/flux/stdlib/http/basicauth.md similarity index 94% rename from content/v2.0/reference/flux/functions/http/basicauth.md rename to content/v2.0/reference/flux/stdlib/http/basicauth.md index 3ea42a485..746f84ba2 100644 --- a/content/v2.0/reference/flux/functions/http/basicauth.md +++ b/content/v2.0/reference/flux/stdlib/http/basicauth.md @@ -3,6 +3,8 @@ title: http.basicAuth() function description: > The `http.basicAuth()` function returns a Base64-encoded basic authentication header using a specified username and password combination. +aliases: + - /v2.0/reference/flux/functions/http/basicauth/ menu: v2_0_ref: name: http.basicAuth diff --git a/content/v2.0/reference/flux/functions/http/endpoint.md b/content/v2.0/reference/flux/stdlib/http/endpoint.md similarity index 94% rename from content/v2.0/reference/flux/functions/http/endpoint.md rename to content/v2.0/reference/flux/stdlib/http/endpoint.md index df67ea6af..054f6b54b 100644 --- a/content/v2.0/reference/flux/functions/http/endpoint.md +++ b/content/v2.0/reference/flux/stdlib/http/endpoint.md @@ -2,6 +2,8 @@ title: http.endpoint() function description: > The `http.endpoint()` function sends output data to an HTTP URL using the POST request method. +aliases: + - /v2.0/reference/flux/functions/http/endpoint/ menu: v2_0_ref: name: http.endpoint @@ -45,7 +47,7 @@ The returned object must include the following fields: - `headers` - `data` -_For more information, see [`http.post()`](/v2.0/reference/flux/functions/http/post/)_ +_For more information, see [`http.post()`](/v2.0/reference/flux/stdlib/http/post/)_ ## Examples diff --git a/content/v2.0/reference/flux/functions/http/post.md b/content/v2.0/reference/flux/stdlib/http/post.md similarity index 95% rename from content/v2.0/reference/flux/functions/http/post.md rename to content/v2.0/reference/flux/stdlib/http/post.md index 214c15833..bc694a8aa 100644 --- a/content/v2.0/reference/flux/functions/http/post.md +++ b/content/v2.0/reference/flux/stdlib/http/post.md @@ -3,6 +3,8 @@ title: http.post() function description: > The `http.post()` function submits an HTTP POST request to the specified URL with headers and data. The HTTP status code is returned. +aliases: + - /v2.0/reference/flux/functions/http/post/ menu: v2_0_ref: name: http.post diff --git a/content/v2.0/reference/flux/functions/influxdb-v1/_index.md b/content/v2.0/reference/flux/stdlib/influxdb-v1/_index.md similarity index 87% rename from content/v2.0/reference/flux/functions/influxdb-v1/_index.md rename to content/v2.0/reference/flux/stdlib/influxdb-v1/_index.md index 18b00d1cc..325f1e8d0 100644 --- a/content/v2.0/reference/flux/functions/influxdb-v1/_index.md +++ b/content/v2.0/reference/flux/stdlib/influxdb-v1/_index.md @@ -5,10 +5,12 @@ description: > The Flux InfluxDB v1 package provides functions for managing data from an InfluxDB v1.x database or structured using the InfluxDB v1 data structure. Import the `influxdata/influxdb/v1` package. +aliases: + - /v2.0/reference/flux/functions/influxdb-v1/ menu: v2_0_ref: name: InfluxDB v1 - parent: Flux packages and functions + parent: Flux standard library weight: 202 v2.0/tags: [functions, influxdb-v1, package] --- diff --git a/content/v2.0/reference/flux/functions/influxdb-v1/fieldsascols.md b/content/v2.0/reference/flux/stdlib/influxdb-v1/fieldsascols.md similarity index 89% rename from content/v2.0/reference/flux/functions/influxdb-v1/fieldsascols.md rename to content/v2.0/reference/flux/stdlib/influxdb-v1/fieldsascols.md index 0d7b2da64..a1596f8a6 100644 --- a/content/v2.0/reference/flux/functions/influxdb-v1/fieldsascols.md +++ b/content/v2.0/reference/flux/stdlib/influxdb-v1/fieldsascols.md @@ -4,6 +4,7 @@ description: The v1.fieldsAsCols() function is pivots a table and automatically aliases: - /v2.0/reference/flux/functions/inputs/fromrows - /v2.0/reference/flux/functions/transformations/influxfieldsascols + - /v2.0/reference/flux/functions/influxdb-v1/fieldsascols/ menu: v2_0_ref: name: v1.fieldsAsCols @@ -45,4 +46,4 @@ fieldsAsCols = (tables=<-) => ``` _**Used functions:** -[pivot()](/v2.0/reference/flux/functions/built-in/transformations/pivot)_ +[pivot()](/v2.0/reference/flux/stdlib/built-in/transformations/pivot)_ diff --git a/content/v2.0/reference/flux/functions/influxdb-v1/measurements.md b/content/v2.0/reference/flux/stdlib/influxdb-v1/measurements.md similarity index 84% rename from content/v2.0/reference/flux/functions/influxdb-v1/measurements.md rename to content/v2.0/reference/flux/stdlib/influxdb-v1/measurements.md index a13e77ae0..8ffd2b9bb 100644 --- a/content/v2.0/reference/flux/functions/influxdb-v1/measurements.md +++ b/content/v2.0/reference/flux/stdlib/influxdb-v1/measurements.md @@ -1,6 +1,8 @@ --- title: v1.measurements() function description: The v1.measurements() function returns a list of measurements in a specific bucket. +aliases: + - /v2.0/reference/flux/functions/influxdb-v1/measurements/ menu: v2_0_ref: name: v1.measurements @@ -32,4 +34,4 @@ measurements = (bucket) => ``` _**Used functions:** -[tagValues()](/v2.0/reference/flux/functions/influxdb-v1/tagvalues)_ +[tagValues()](/v2.0/reference/flux/stdlib/influxdb-v1/tagvalues)_ diff --git a/content/v2.0/reference/flux/functions/influxdb-v1/measurementtagkeys.md b/content/v2.0/reference/flux/stdlib/influxdb-v1/measurementtagkeys.md similarity index 87% rename from content/v2.0/reference/flux/functions/influxdb-v1/measurementtagkeys.md rename to content/v2.0/reference/flux/stdlib/influxdb-v1/measurementtagkeys.md index dc1382b25..460908f39 100644 --- a/content/v2.0/reference/flux/functions/influxdb-v1/measurementtagkeys.md +++ b/content/v2.0/reference/flux/stdlib/influxdb-v1/measurementtagkeys.md @@ -1,6 +1,8 @@ --- title: v1.measurementTagKeys() function description: The v1.measurementTagKeys() function returns a list of tag keys for a specific measurement. +aliases: + - /v2.0/reference/flux/functions/influxdb-v1/measurementtagkeys/ menu: v2_0_ref: name: v1.measurementTagKeys @@ -42,4 +44,4 @@ measurementTagKeys = (bucket, measurement) => ``` _**Used functions:** -[tagKeys()](/v2.0/reference/flux/functions/influxdb-v1/tagkeys)_ +[tagKeys()](/v2.0/reference/flux/stdlib/influxdb-v1/tagkeys)_ diff --git a/content/v2.0/reference/flux/functions/influxdb-v1/measurementtagvalues.md b/content/v2.0/reference/flux/stdlib/influxdb-v1/measurementtagvalues.md similarity index 88% rename from content/v2.0/reference/flux/functions/influxdb-v1/measurementtagvalues.md rename to content/v2.0/reference/flux/stdlib/influxdb-v1/measurementtagvalues.md index 979f07b9e..89a2281c7 100644 --- a/content/v2.0/reference/flux/functions/influxdb-v1/measurementtagvalues.md +++ b/content/v2.0/reference/flux/stdlib/influxdb-v1/measurementtagvalues.md @@ -1,6 +1,8 @@ --- title: v1.measurementTagValues() function description: The v1.measurementTagValues() function returns a list of tag values for a specific measurement. +aliases: + - /v2.0/reference/flux/functions/influxdb-v1/measurementtagvalues/ menu: v2_0_ref: name: v1.measurementTagValues @@ -53,4 +55,4 @@ measurementTagValues = (bucket, measurement, tag) => ``` _**Used functions:** -[tagValues()](/v2.0/reference/flux/functions/influxdb-v1/tagvalues)_ +[tagValues()](/v2.0/reference/flux/stdlib/influxdb-v1/tagvalues)_ diff --git a/content/v2.0/reference/flux/functions/influxdb-v1/tagkeys.md b/content/v2.0/reference/flux/stdlib/influxdb-v1/tagkeys.md similarity index 73% rename from content/v2.0/reference/flux/functions/influxdb-v1/tagkeys.md rename to content/v2.0/reference/flux/stdlib/influxdb-v1/tagkeys.md index 7a65ac062..63d8a370d 100644 --- a/content/v2.0/reference/flux/functions/influxdb-v1/tagkeys.md +++ b/content/v2.0/reference/flux/stdlib/influxdb-v1/tagkeys.md @@ -1,6 +1,8 @@ --- title: v1.tagKeys() function description: The v1.tagKeys() function returns a list of tag keys for all series that match the predicate. +aliases: + - /v2.0/reference/flux/functions/influxdb-v1/tagkeys/ menu: v2_0_ref: name: v1.tagKeys @@ -65,9 +67,9 @@ tagKeys = (bucket, predicate=(r) => true, start=-30d) => ``` _**Used functions:** -[from](/v2.0/reference/flux/functions/built-in/inputs/from/), -[range](/v2.0/reference/flux/functions/built-in/transformations/range/), -[filter](/v2.0/reference/flux/functions/built-in/transformations/filter/), -[keys](/v2.0/reference/flux/functions/built-in/transformations/keys/), -[keep](/v2.0/reference/flux/functions/built-in/transformations/keep/), -[distinct](/v2.0/reference/flux/functions/built-in/transformations/selectors/distinct/)_ +[from](/v2.0/reference/flux/stdlib/built-in/inputs/from/), +[range](/v2.0/reference/flux/stdlib/built-in/transformations/range/), +[filter](/v2.0/reference/flux/stdlib/built-in/transformations/filter/), +[keys](/v2.0/reference/flux/stdlib/built-in/transformations/keys/), +[keep](/v2.0/reference/flux/stdlib/built-in/transformations/keep/), +[distinct](/v2.0/reference/flux/stdlib/built-in/transformations/selectors/distinct/)_ diff --git a/content/v2.0/reference/flux/functions/influxdb-v1/tagvalues.md b/content/v2.0/reference/flux/stdlib/influxdb-v1/tagvalues.md similarity index 74% rename from content/v2.0/reference/flux/functions/influxdb-v1/tagvalues.md rename to content/v2.0/reference/flux/stdlib/influxdb-v1/tagvalues.md index 7db47cb88..51266ccce 100644 --- a/content/v2.0/reference/flux/functions/influxdb-v1/tagvalues.md +++ b/content/v2.0/reference/flux/stdlib/influxdb-v1/tagvalues.md @@ -1,6 +1,8 @@ --- title: v1.tagValues() function description: The `v1.tagValues()` function returns a list unique values for a given tag. +aliases: + - /v2.0/reference/flux/functions/influxdb-v1/tagvalues/ menu: v2_0_ref: name: v1.tagValues @@ -73,9 +75,9 @@ tagValues = (bucket, tag, predicate=(r) => true, start=-30d) => ``` _**Used functions:** -[from](/v2.0/reference/flux/functions/built-in/inputs/from/), -[range](/v2.0/reference/flux/functions/built-in/transformations/range/), -[filter](/v2.0/reference/flux/functions/built-in/transformations/filter/), -[group](/v2.0/reference/flux/functions/built-in/transformations/group/), -[distinct](/v2.0/reference/flux/functions/built-in/transformations/selectors/distinct/), -[keep](/v2.0/reference/flux/functions/built-in/transformations/keep/)_ +[from](/v2.0/reference/flux/stdlib/built-in/inputs/from/), +[range](/v2.0/reference/flux/stdlib/built-in/transformations/range/), +[filter](/v2.0/reference/flux/stdlib/built-in/transformations/filter/), +[group](/v2.0/reference/flux/stdlib/built-in/transformations/group/), +[distinct](/v2.0/reference/flux/stdlib/built-in/transformations/selectors/distinct/), +[keep](/v2.0/reference/flux/stdlib/built-in/transformations/keep/)_ diff --git a/content/v2.0/reference/flux/functions/json/_index.md b/content/v2.0/reference/flux/stdlib/json/_index.md similarity index 82% rename from content/v2.0/reference/flux/functions/json/_index.md rename to content/v2.0/reference/flux/stdlib/json/_index.md index ca7b8a82f..00d4e266c 100644 --- a/content/v2.0/reference/flux/functions/json/_index.md +++ b/content/v2.0/reference/flux/stdlib/json/_index.md @@ -4,10 +4,12 @@ list_title: JSON package description: > The Flux JSON package provides functions for working with JSON. Import the `json` package. +aliases: + - /v2.0/reference/flux/functions/json/ menu: v2_0_ref: name: JSON - parent: Flux packages and functions + parent: Flux standard library weight: 202 v2.0/tags: [functions, json, package] --- diff --git a/content/v2.0/reference/flux/functions/json/encode.md b/content/v2.0/reference/flux/stdlib/json/encode.md similarity index 94% rename from content/v2.0/reference/flux/functions/json/encode.md rename to content/v2.0/reference/flux/stdlib/json/encode.md index 640241b34..0c6f42cd9 100644 --- a/content/v2.0/reference/flux/functions/json/encode.md +++ b/content/v2.0/reference/flux/stdlib/json/encode.md @@ -1,6 +1,8 @@ --- title: json.encode() function description: The `json.encode()` function converts a value into JSON bytes. +aliases: + - /v2.0/reference/flux/functions/json/encode/ menu: v2_0_ref: name: json.encode diff --git a/content/v2.0/reference/flux/functions/math/_index.md b/content/v2.0/reference/flux/stdlib/math/_index.md similarity index 95% rename from content/v2.0/reference/flux/functions/math/_index.md rename to content/v2.0/reference/flux/stdlib/math/_index.md index bb0ef8f25..1ad8fa2fb 100644 --- a/content/v2.0/reference/flux/functions/math/_index.md +++ b/content/v2.0/reference/flux/stdlib/math/_index.md @@ -4,10 +4,12 @@ list_title: Math package description: > The Flux math package provides basic constants and mathematical functions. Import the `math` package. +aliases: + - /v2.0/reference/flux/functions/math/ menu: v2_0_ref: name: Math - parent: Flux packages and functions + parent: Flux standard library weight: 202 v2.0/tags: [math, functions] --- diff --git a/content/v2.0/reference/flux/functions/math/abs.md b/content/v2.0/reference/flux/stdlib/math/abs.md similarity index 90% rename from content/v2.0/reference/flux/functions/math/abs.md rename to content/v2.0/reference/flux/stdlib/math/abs.md index 8db0c56b7..ac946c108 100644 --- a/content/v2.0/reference/flux/functions/math/abs.md +++ b/content/v2.0/reference/flux/stdlib/math/abs.md @@ -1,6 +1,8 @@ --- title: math.abs() function description: The math.abs() function returns the absolute value of `x`. +aliases: + - /v2.0/reference/flux/functions/math/abs/ menu: v2_0_ref: name: math.abs diff --git a/content/v2.0/reference/flux/functions/math/acos.md b/content/v2.0/reference/flux/stdlib/math/acos.md similarity index 91% rename from content/v2.0/reference/flux/functions/math/acos.md rename to content/v2.0/reference/flux/stdlib/math/acos.md index 5b6b88fd8..528edc827 100644 --- a/content/v2.0/reference/flux/functions/math/acos.md +++ b/content/v2.0/reference/flux/stdlib/math/acos.md @@ -1,6 +1,8 @@ --- title: math.acos() function description: The math.acos() function returns the arccosine of `x` in radians. +aliases: + - /v2.0/reference/flux/functions/math/acos/ menu: v2_0_ref: name: math.acos diff --git a/content/v2.0/reference/flux/functions/math/acosh.md b/content/v2.0/reference/flux/stdlib/math/acosh.md similarity index 91% rename from content/v2.0/reference/flux/functions/math/acosh.md rename to content/v2.0/reference/flux/stdlib/math/acosh.md index 95cead337..80ccad2c2 100644 --- a/content/v2.0/reference/flux/functions/math/acosh.md +++ b/content/v2.0/reference/flux/stdlib/math/acosh.md @@ -1,6 +1,8 @@ --- title: math.acosh() function description: The math.acosh() function returns the inverse hyperbolic cosine of `x`. +aliases: + - /v2.0/reference/flux/functions/math/acosh/ menu: v2_0_ref: name: math.acosh diff --git a/content/v2.0/reference/flux/functions/math/asin.md b/content/v2.0/reference/flux/stdlib/math/asin.md similarity index 92% rename from content/v2.0/reference/flux/functions/math/asin.md rename to content/v2.0/reference/flux/stdlib/math/asin.md index 614e12174..9e667f686 100644 --- a/content/v2.0/reference/flux/functions/math/asin.md +++ b/content/v2.0/reference/flux/stdlib/math/asin.md @@ -1,6 +1,8 @@ --- title: math.asin() function description: The math.asin() function returns the arcsine of `x` in radians. +aliases: + - /v2.0/reference/flux/functions/math/asin/ menu: v2_0_ref: name: math.asin diff --git a/content/v2.0/reference/flux/functions/math/asinh.md b/content/v2.0/reference/flux/stdlib/math/asinh.md similarity index 91% rename from content/v2.0/reference/flux/functions/math/asinh.md rename to content/v2.0/reference/flux/stdlib/math/asinh.md index 9800d3ad0..4ff4ca9bc 100644 --- a/content/v2.0/reference/flux/functions/math/asinh.md +++ b/content/v2.0/reference/flux/stdlib/math/asinh.md @@ -1,6 +1,8 @@ --- title: math.asinh() function description: The math.asinh() function returns the inverse hyperbolic sine of `x`. +aliases: + - /v2.0/reference/flux/functions/math/asinh/ menu: v2_0_ref: name: math.asinh diff --git a/content/v2.0/reference/flux/functions/math/atan.md b/content/v2.0/reference/flux/stdlib/math/atan.md similarity index 90% rename from content/v2.0/reference/flux/functions/math/atan.md rename to content/v2.0/reference/flux/stdlib/math/atan.md index 524a3fe96..77a360dc1 100644 --- a/content/v2.0/reference/flux/functions/math/atan.md +++ b/content/v2.0/reference/flux/stdlib/math/atan.md @@ -1,6 +1,8 @@ --- title: math.atan() function description: The math.atan() function returns the arctangent of `x` in radians. +aliases: + - /v2.0/reference/flux/functions/math/atan/ menu: v2_0_ref: name: math.atan diff --git a/content/v2.0/reference/flux/functions/math/atan2.md b/content/v2.0/reference/flux/stdlib/math/atan2.md similarity index 96% rename from content/v2.0/reference/flux/functions/math/atan2.md rename to content/v2.0/reference/flux/stdlib/math/atan2.md index 1556dcbf5..69049aafc 100644 --- a/content/v2.0/reference/flux/functions/math/atan2.md +++ b/content/v2.0/reference/flux/stdlib/math/atan2.md @@ -3,6 +3,8 @@ title: math.atan2() function description: > The math.atan2() function returns the arc tangent of `y`/`x`, using the signs of the parameters to determine the quadrant of the return value. +aliases: + - /v2.0/reference/flux/functions/math/atan2/ menu: v2_0_ref: name: math.atan2 diff --git a/content/v2.0/reference/flux/functions/math/atanh.md b/content/v2.0/reference/flux/stdlib/math/atanh.md similarity index 93% rename from content/v2.0/reference/flux/functions/math/atanh.md rename to content/v2.0/reference/flux/stdlib/math/atanh.md index d3a551543..ea01f337a 100644 --- a/content/v2.0/reference/flux/functions/math/atanh.md +++ b/content/v2.0/reference/flux/stdlib/math/atanh.md @@ -1,6 +1,8 @@ --- title: math.atanh() function description: The math.atanh() function returns the inverse hyperbolic tangent of `x`. +aliases: + - /v2.0/reference/flux/functions/math/atanh/ menu: v2_0_ref: name: math.atanh diff --git a/content/v2.0/reference/flux/functions/math/cbrt.md b/content/v2.0/reference/flux/stdlib/math/cbrt.md similarity index 90% rename from content/v2.0/reference/flux/functions/math/cbrt.md rename to content/v2.0/reference/flux/stdlib/math/cbrt.md index 6054dacf3..f7018bb68 100644 --- a/content/v2.0/reference/flux/functions/math/cbrt.md +++ b/content/v2.0/reference/flux/stdlib/math/cbrt.md @@ -1,6 +1,8 @@ --- title: math.cbrt() function description: The math.cbrt() function returns the cube root of `x`. +aliases: + - /v2.0/reference/flux/functions/math/cbrt/ menu: v2_0_ref: name: math.cbrt diff --git a/content/v2.0/reference/flux/functions/math/ceil.md b/content/v2.0/reference/flux/stdlib/math/ceil.md similarity index 91% rename from content/v2.0/reference/flux/functions/math/ceil.md rename to content/v2.0/reference/flux/stdlib/math/ceil.md index 091ffbedb..397fd53e3 100644 --- a/content/v2.0/reference/flux/functions/math/ceil.md +++ b/content/v2.0/reference/flux/stdlib/math/ceil.md @@ -1,6 +1,8 @@ --- title: math.ceil() function description: The math.ceil() function returns the least integer value greater than or equal to `x`. +aliases: + - /v2.0/reference/flux/functions/math/ceil/ menu: v2_0_ref: name: math.ceil diff --git a/content/v2.0/reference/flux/functions/math/copysign.md b/content/v2.0/reference/flux/stdlib/math/copysign.md similarity index 90% rename from content/v2.0/reference/flux/functions/math/copysign.md rename to content/v2.0/reference/flux/stdlib/math/copysign.md index 26466573f..ecc4b0267 100644 --- a/content/v2.0/reference/flux/functions/math/copysign.md +++ b/content/v2.0/reference/flux/stdlib/math/copysign.md @@ -1,6 +1,8 @@ --- title: math.copysign() function description: The math.copysign() function returns a value with the magnitude of `x` and the sign of `y`. +aliases: + - /v2.0/reference/flux/functions/math/copysign/ menu: v2_0_ref: name: math.copysign diff --git a/content/v2.0/reference/flux/functions/math/cos.md b/content/v2.0/reference/flux/stdlib/math/cos.md similarity index 90% rename from content/v2.0/reference/flux/functions/math/cos.md rename to content/v2.0/reference/flux/stdlib/math/cos.md index 7c1b6bd2f..f06e07a50 100644 --- a/content/v2.0/reference/flux/functions/math/cos.md +++ b/content/v2.0/reference/flux/stdlib/math/cos.md @@ -1,6 +1,8 @@ --- title: math.cos() function description: The math.cos() function returns the cosine of the radian argument `x`. +aliases: + - /v2.0/reference/flux/functions/math/cos/ menu: v2_0_ref: name: math.cos diff --git a/content/v2.0/reference/flux/functions/math/cosh.md b/content/v2.0/reference/flux/stdlib/math/cosh.md similarity index 90% rename from content/v2.0/reference/flux/functions/math/cosh.md rename to content/v2.0/reference/flux/stdlib/math/cosh.md index 22fff8771..a23477022 100644 --- a/content/v2.0/reference/flux/functions/math/cosh.md +++ b/content/v2.0/reference/flux/stdlib/math/cosh.md @@ -1,6 +1,8 @@ --- title: math.cosh() function description: The math.cosh() function returns the hyperbolic cosine of `x`. +aliases: + - /v2.0/reference/flux/functions/math/cosh/ menu: v2_0_ref: name: math.cosh diff --git a/content/v2.0/reference/flux/functions/math/dim.md b/content/v2.0/reference/flux/stdlib/math/dim.md similarity index 92% rename from content/v2.0/reference/flux/functions/math/dim.md rename to content/v2.0/reference/flux/stdlib/math/dim.md index b52a3c8b2..135bb4356 100644 --- a/content/v2.0/reference/flux/functions/math/dim.md +++ b/content/v2.0/reference/flux/stdlib/math/dim.md @@ -1,6 +1,8 @@ --- title: math.dim() function description: The math.dim() function returns the maximum of `x`-`y` or 0. +aliases: + - /v2.0/reference/flux/functions/math/dim/ menu: v2_0_ref: name: math.dim diff --git a/content/v2.0/reference/flux/functions/math/erf.md b/content/v2.0/reference/flux/stdlib/math/erf.md similarity index 90% rename from content/v2.0/reference/flux/functions/math/erf.md rename to content/v2.0/reference/flux/stdlib/math/erf.md index ebc8cca16..18c23441e 100644 --- a/content/v2.0/reference/flux/functions/math/erf.md +++ b/content/v2.0/reference/flux/stdlib/math/erf.md @@ -1,6 +1,8 @@ --- title: math.erf() function description: The math.erf() function returns the error function of `x`. +aliases: + - /v2.0/reference/flux/functions/math/erf/ menu: v2_0_ref: name: math.erf diff --git a/content/v2.0/reference/flux/functions/math/erfc.md b/content/v2.0/reference/flux/stdlib/math/erfc.md similarity index 91% rename from content/v2.0/reference/flux/functions/math/erfc.md rename to content/v2.0/reference/flux/stdlib/math/erfc.md index a2a7e2ac5..176ccd6bb 100644 --- a/content/v2.0/reference/flux/functions/math/erfc.md +++ b/content/v2.0/reference/flux/stdlib/math/erfc.md @@ -1,6 +1,8 @@ --- title: math.erfc() function description: The math.erfc() function returns the complementary error function of `x`. +aliases: + - /v2.0/reference/flux/functions/math/erfc/ menu: v2_0_ref: name: math.erfc diff --git a/content/v2.0/reference/flux/functions/math/erfcinv.md b/content/v2.0/reference/flux/stdlib/math/erfcinv.md similarity index 92% rename from content/v2.0/reference/flux/functions/math/erfcinv.md rename to content/v2.0/reference/flux/stdlib/math/erfcinv.md index c5f2c473f..4a1ba079e 100644 --- a/content/v2.0/reference/flux/functions/math/erfcinv.md +++ b/content/v2.0/reference/flux/stdlib/math/erfcinv.md @@ -1,6 +1,8 @@ --- title: math.erfcinv() function description: The math.erfcinv() function returns the inverse of `math.erfc()`. +aliases: + - /v2.0/reference/flux/functions/math/erfcinv/ menu: v2_0_ref: name: math.erfcinv diff --git a/content/v2.0/reference/flux/functions/math/erfinv.md b/content/v2.0/reference/flux/stdlib/math/erfinv.md similarity index 92% rename from content/v2.0/reference/flux/functions/math/erfinv.md rename to content/v2.0/reference/flux/stdlib/math/erfinv.md index 2c4511397..1abdc350c 100644 --- a/content/v2.0/reference/flux/functions/math/erfinv.md +++ b/content/v2.0/reference/flux/stdlib/math/erfinv.md @@ -1,6 +1,8 @@ --- title: math.erfinv() function description: The math.erfinv() function returns the inverse error function of `x`. +aliases: + - /v2.0/reference/flux/functions/math/erfinv/ menu: v2_0_ref: name: math.erfinv diff --git a/content/v2.0/reference/flux/functions/math/exp.md b/content/v2.0/reference/flux/stdlib/math/exp.md similarity index 91% rename from content/v2.0/reference/flux/functions/math/exp.md rename to content/v2.0/reference/flux/stdlib/math/exp.md index 14228533a..5d530b556 100644 --- a/content/v2.0/reference/flux/functions/math/exp.md +++ b/content/v2.0/reference/flux/stdlib/math/exp.md @@ -1,6 +1,8 @@ --- title: math.exp() function description: The math.exp() function returns `e**x`, the base-e exponential of `x`. +aliases: + - /v2.0/reference/flux/functions/math/exp/ menu: v2_0_ref: name: math.exp diff --git a/content/v2.0/reference/flux/functions/math/exp2.md b/content/v2.0/reference/flux/stdlib/math/exp2.md similarity index 91% rename from content/v2.0/reference/flux/functions/math/exp2.md rename to content/v2.0/reference/flux/stdlib/math/exp2.md index d66b572d0..599bf86ff 100644 --- a/content/v2.0/reference/flux/functions/math/exp2.md +++ b/content/v2.0/reference/flux/stdlib/math/exp2.md @@ -1,6 +1,8 @@ --- title: math.exp2() function description: The math.exp2() function returns `2**x`, the base-2 exponential of `x`. +aliases: + - /v2.0/reference/flux/functions/math/exp2/ menu: v2_0_ref: name: math.exp2 diff --git a/content/v2.0/reference/flux/functions/math/expm1.md b/content/v2.0/reference/flux/stdlib/math/expm1.md similarity index 93% rename from content/v2.0/reference/flux/functions/math/expm1.md rename to content/v2.0/reference/flux/stdlib/math/expm1.md index 953926420..02df8ce1a 100644 --- a/content/v2.0/reference/flux/functions/math/expm1.md +++ b/content/v2.0/reference/flux/stdlib/math/expm1.md @@ -3,6 +3,8 @@ title: math.expm1() function description: > The math.expm1() function returns `e**x - 1`, the base-e exponential of `x` minus 1. It is more accurate than `math.exp(x:x) - 1` when `x` is near zero. +aliases: + - /v2.0/reference/flux/functions/math/expm1/ menu: v2_0_ref: name: math.expm1 diff --git a/content/v2.0/reference/flux/functions/math/float64bits.md b/content/v2.0/reference/flux/stdlib/math/float64bits.md similarity index 91% rename from content/v2.0/reference/flux/functions/math/float64bits.md rename to content/v2.0/reference/flux/stdlib/math/float64bits.md index 95a16dcb9..20d233052 100644 --- a/content/v2.0/reference/flux/functions/math/float64bits.md +++ b/content/v2.0/reference/flux/stdlib/math/float64bits.md @@ -1,6 +1,8 @@ --- title: math.float64bits() function description: The math.float64bits() function returns the IEEE 754 binary representation of `f`, with the sign bit of `f` and the result in the same bit position. +aliases: + - /v2.0/reference/flux/functions/math/float64bits/ menu: v2_0_ref: name: math.float64bits diff --git a/content/v2.0/reference/flux/functions/math/floor.md b/content/v2.0/reference/flux/stdlib/math/floor.md similarity index 91% rename from content/v2.0/reference/flux/functions/math/floor.md rename to content/v2.0/reference/flux/stdlib/math/floor.md index bea8631d9..4e87ee103 100644 --- a/content/v2.0/reference/flux/functions/math/floor.md +++ b/content/v2.0/reference/flux/stdlib/math/floor.md @@ -1,6 +1,8 @@ --- title: math.floor() function description: The math.floor() function returns the greatest integer value less than or equal to `x`. +aliases: + - /v2.0/reference/flux/functions/math/floor/ menu: v2_0_ref: name: math.floor diff --git a/content/v2.0/reference/flux/functions/math/frexp.md b/content/v2.0/reference/flux/stdlib/math/frexp.md similarity index 94% rename from content/v2.0/reference/flux/functions/math/frexp.md rename to content/v2.0/reference/flux/stdlib/math/frexp.md index 622a1006c..6b4a043f7 100644 --- a/content/v2.0/reference/flux/functions/math/frexp.md +++ b/content/v2.0/reference/flux/stdlib/math/frexp.md @@ -4,6 +4,8 @@ description: > The math.frexp() function breaks `f` into a normalized fraction and an integral power of two. It returns `frac` and `exp` satisfying `f == frac × 2**exp`, with the absolute value of `frac` in the interval [½, 1). +aliases: + - /v2.0/reference/flux/functions/math/frexp/ menu: v2_0_ref: name: math.frexp diff --git a/content/v2.0/reference/flux/functions/math/gamma.md b/content/v2.0/reference/flux/stdlib/math/gamma.md similarity index 91% rename from content/v2.0/reference/flux/functions/math/gamma.md rename to content/v2.0/reference/flux/stdlib/math/gamma.md index 744d5cdc8..81fb2f936 100644 --- a/content/v2.0/reference/flux/functions/math/gamma.md +++ b/content/v2.0/reference/flux/stdlib/math/gamma.md @@ -1,6 +1,8 @@ --- title: math.gamma() function description: The math.gamma() function returns the Gamma function of `x`. +aliases: + - /v2.0/reference/flux/functions/math/gamma/ menu: v2_0_ref: name: math.gamma diff --git a/content/v2.0/reference/flux/functions/math/hypot.md b/content/v2.0/reference/flux/stdlib/math/hypot.md similarity index 93% rename from content/v2.0/reference/flux/functions/math/hypot.md rename to content/v2.0/reference/flux/stdlib/math/hypot.md index c9d6af266..459f83f31 100644 --- a/content/v2.0/reference/flux/functions/math/hypot.md +++ b/content/v2.0/reference/flux/stdlib/math/hypot.md @@ -3,6 +3,8 @@ title: math.hypot() function description: > The math.hypot() function returns the square root of `p*p + q*q`, taking care to avoid unnecessary overflow and underflow. +aliases: + - /v2.0/reference/flux/functions/math/hypot/ menu: v2_0_ref: name: math.hypot diff --git a/content/v2.0/reference/flux/functions/math/ilogb.md b/content/v2.0/reference/flux/stdlib/math/ilogb.md similarity index 91% rename from content/v2.0/reference/flux/functions/math/ilogb.md rename to content/v2.0/reference/flux/stdlib/math/ilogb.md index 22b87b558..ec18d023c 100644 --- a/content/v2.0/reference/flux/functions/math/ilogb.md +++ b/content/v2.0/reference/flux/stdlib/math/ilogb.md @@ -1,6 +1,8 @@ --- title: math.ilogb() function description: The math.ilogb() function returns the binary exponent of `x` as an integer. +aliases: + - /v2.0/reference/flux/functions/math/ilogb/ menu: v2_0_ref: name: math.ilogb diff --git a/content/v2.0/reference/flux/functions/math/isinf.md b/content/v2.0/reference/flux/stdlib/math/isinf.md similarity index 93% rename from content/v2.0/reference/flux/functions/math/isinf.md rename to content/v2.0/reference/flux/stdlib/math/isinf.md index 900dc54cf..e1d69151b 100644 --- a/content/v2.0/reference/flux/functions/math/isinf.md +++ b/content/v2.0/reference/flux/stdlib/math/isinf.md @@ -1,6 +1,8 @@ --- title: math.isInf() function description: The math.isInf() function reports whether `f` is an infinity, according to `sign`. +aliases: + - /v2.0/reference/flux/functions/math/isinf/ menu: v2_0_ref: name: math.isInf diff --git a/content/v2.0/reference/flux/functions/math/isnan.md b/content/v2.0/reference/flux/stdlib/math/isnan.md similarity index 89% rename from content/v2.0/reference/flux/functions/math/isnan.md rename to content/v2.0/reference/flux/stdlib/math/isnan.md index dfcf73ae1..2d9424592 100644 --- a/content/v2.0/reference/flux/functions/math/isnan.md +++ b/content/v2.0/reference/flux/stdlib/math/isnan.md @@ -1,6 +1,8 @@ --- title: math.isNaN() function description: The math.isNaN() function reports whether `f` is an IEEE 754 “not-a-number” value. +aliases: + - /v2.0/reference/flux/functions/math/isnan/ menu: v2_0_ref: name: math.isNaN diff --git a/content/v2.0/reference/flux/functions/math/j0.md b/content/v2.0/reference/flux/stdlib/math/j0.md similarity index 91% rename from content/v2.0/reference/flux/functions/math/j0.md rename to content/v2.0/reference/flux/stdlib/math/j0.md index 74338fd03..1d8faf6fe 100644 --- a/content/v2.0/reference/flux/functions/math/j0.md +++ b/content/v2.0/reference/flux/stdlib/math/j0.md @@ -1,6 +1,8 @@ --- title: math.j0() function description: The math.j0() function returns the order-zero Bessel function of the first kind. +aliases: + - /v2.0/reference/flux/functions/math/j0/ menu: v2_0_ref: name: math.j0 diff --git a/content/v2.0/reference/flux/functions/math/j1.md b/content/v2.0/reference/flux/stdlib/math/j1.md similarity index 91% rename from content/v2.0/reference/flux/functions/math/j1.md rename to content/v2.0/reference/flux/stdlib/math/j1.md index 594b3c81d..0160d3915 100644 --- a/content/v2.0/reference/flux/functions/math/j1.md +++ b/content/v2.0/reference/flux/stdlib/math/j1.md @@ -1,6 +1,8 @@ --- title: math.j1() function description: The math.j1() function returns the order-one Bessel function of the first kind. +aliases: + - /v2.0/reference/flux/functions/math/j1/ menu: v2_0_ref: name: math.j1 diff --git a/content/v2.0/reference/flux/functions/math/jn.md b/content/v2.0/reference/flux/stdlib/math/jn.md similarity index 92% rename from content/v2.0/reference/flux/functions/math/jn.md rename to content/v2.0/reference/flux/stdlib/math/jn.md index 80e0f6acf..2bda3bc79 100644 --- a/content/v2.0/reference/flux/functions/math/jn.md +++ b/content/v2.0/reference/flux/stdlib/math/jn.md @@ -1,6 +1,8 @@ --- title: math.jn() function description: The math.jn() function returns the order-n Bessel function of the first kind. +aliases: + - /v2.0/reference/flux/functions/math/jn/ menu: v2_0_ref: name: math.jn diff --git a/content/v2.0/reference/flux/functions/math/ldexp.md b/content/v2.0/reference/flux/stdlib/math/ldexp.md similarity index 88% rename from content/v2.0/reference/flux/functions/math/ldexp.md rename to content/v2.0/reference/flux/stdlib/math/ldexp.md index 8ecfb26eb..9213320a7 100644 --- a/content/v2.0/reference/flux/functions/math/ldexp.md +++ b/content/v2.0/reference/flux/stdlib/math/ldexp.md @@ -1,6 +1,8 @@ --- title: math.ldexp() function description: The math.ldexp() function is the inverse of `math.frexp()`. It returns `frac × 2**exp`. +aliases: + - /v2.0/reference/flux/functions/math/ldexp/ menu: v2_0_ref: name: math.ldexp @@ -8,7 +10,7 @@ menu: weight: 301 --- -The `math.ldexp()` function is the inverse of [`math.frexp()`](/v2.0/reference/flux/functions/math/frexp). +The `math.ldexp()` function is the inverse of [`math.frexp()`](/v2.0/reference/flux/stdlib/math/frexp). It returns `frac × 2**exp`. _**Output data type:** Float_ diff --git a/content/v2.0/reference/flux/functions/math/lgamma.md b/content/v2.0/reference/flux/stdlib/math/lgamma.md similarity index 93% rename from content/v2.0/reference/flux/functions/math/lgamma.md rename to content/v2.0/reference/flux/stdlib/math/lgamma.md index 2be3b19e5..327505a88 100644 --- a/content/v2.0/reference/flux/functions/math/lgamma.md +++ b/content/v2.0/reference/flux/stdlib/math/lgamma.md @@ -1,6 +1,8 @@ --- title: math.lgamma() function description: The math.lgamma() function returns the natural logarithm and sign (-1 or +1) of `math.gamma(x:x)`. +aliases: + - /v2.0/reference/flux/functions/math/lgamma/ menu: v2_0_ref: name: math.lgamma diff --git a/content/v2.0/reference/flux/functions/math/log.md b/content/v2.0/reference/flux/stdlib/math/log.md similarity index 91% rename from content/v2.0/reference/flux/functions/math/log.md rename to content/v2.0/reference/flux/stdlib/math/log.md index 84eb17fc8..8e2672f6d 100644 --- a/content/v2.0/reference/flux/functions/math/log.md +++ b/content/v2.0/reference/flux/stdlib/math/log.md @@ -1,6 +1,8 @@ --- title: math.log() function description: The math.log() function returns the natural logarithm of `x`. +aliases: + - /v2.0/reference/flux/functions/math/log/ menu: v2_0_ref: name: math.log diff --git a/content/v2.0/reference/flux/functions/math/log10.md b/content/v2.0/reference/flux/stdlib/math/log10.md similarity index 91% rename from content/v2.0/reference/flux/functions/math/log10.md rename to content/v2.0/reference/flux/stdlib/math/log10.md index 1b3a7ed72..7f6ab2843 100644 --- a/content/v2.0/reference/flux/functions/math/log10.md +++ b/content/v2.0/reference/flux/stdlib/math/log10.md @@ -1,6 +1,8 @@ --- title: math.log10() function description: The math.log10() function returns the decimal logarithm of `x`. +aliases: + - /v2.0/reference/flux/functions/math/log10/ menu: v2_0_ref: name: math.log10 diff --git a/content/v2.0/reference/flux/functions/math/log1p.md b/content/v2.0/reference/flux/stdlib/math/log1p.md similarity index 93% rename from content/v2.0/reference/flux/functions/math/log1p.md rename to content/v2.0/reference/flux/stdlib/math/log1p.md index 463ccc078..a5ced2f8b 100644 --- a/content/v2.0/reference/flux/functions/math/log1p.md +++ b/content/v2.0/reference/flux/stdlib/math/log1p.md @@ -3,6 +3,8 @@ title: math.log1p() function description: > The math.log1p() function returns the natural logarithm of 1 plus its argument `x`. It is more accurate than `math.log(x: 1 + x)` when `x` is near zero. +aliases: + - /v2.0/reference/flux/functions/math/log1p/ menu: v2_0_ref: name: math.log1p diff --git a/content/v2.0/reference/flux/functions/math/log2.md b/content/v2.0/reference/flux/stdlib/math/log2.md similarity index 91% rename from content/v2.0/reference/flux/functions/math/log2.md rename to content/v2.0/reference/flux/stdlib/math/log2.md index a44fd54f0..f61944d2f 100644 --- a/content/v2.0/reference/flux/functions/math/log2.md +++ b/content/v2.0/reference/flux/stdlib/math/log2.md @@ -1,6 +1,8 @@ --- title: math.log2() function description: The math.log2() function returns the binary logarithm of `x`. +aliases: + - /v2.0/reference/flux/functions/math/log2/ menu: v2_0_ref: name: math.log2 diff --git a/content/v2.0/reference/flux/functions/math/logb.md b/content/v2.0/reference/flux/stdlib/math/logb.md similarity index 90% rename from content/v2.0/reference/flux/functions/math/logb.md rename to content/v2.0/reference/flux/stdlib/math/logb.md index cd5049a70..313c116be 100644 --- a/content/v2.0/reference/flux/functions/math/logb.md +++ b/content/v2.0/reference/flux/stdlib/math/logb.md @@ -1,6 +1,8 @@ --- title: math.logb() function description: The math.logb() function returns the binary exponent of `x`. +aliases: + - /v2.0/reference/flux/functions/math/logb/ menu: v2_0_ref: name: math.logb diff --git a/content/v2.0/reference/flux/functions/math/m_inf.md b/content/v2.0/reference/flux/stdlib/math/m_inf.md similarity index 90% rename from content/v2.0/reference/flux/functions/math/m_inf.md rename to content/v2.0/reference/flux/stdlib/math/m_inf.md index da77b79ec..91aa392ec 100644 --- a/content/v2.0/reference/flux/functions/math/m_inf.md +++ b/content/v2.0/reference/flux/stdlib/math/m_inf.md @@ -1,8 +1,8 @@ --- title: math.m_inf() function description: The math.m_inf() function returns positive infinity if `sign >= 0`, negative infinity if `sign < 0`. - - +aliases: + - /v2.0/reference/flux/functions/math/m_inf/ menu: v2_0_ref: name: math.m_inf diff --git a/content/v2.0/reference/flux/functions/math/m_max.md b/content/v2.0/reference/flux/stdlib/math/m_max.md similarity index 93% rename from content/v2.0/reference/flux/functions/math/m_max.md rename to content/v2.0/reference/flux/stdlib/math/m_max.md index 3dd4c422e..408f3bc33 100644 --- a/content/v2.0/reference/flux/functions/math/m_max.md +++ b/content/v2.0/reference/flux/stdlib/math/m_max.md @@ -1,6 +1,8 @@ --- title: math.m_max() function description: The math.m_max() function returns the larger of `x` or `y`. +aliases: + - /v2.0/reference/flux/functions/math/m_max/ menu: v2_0_ref: name: math.m_max diff --git a/content/v2.0/reference/flux/functions/math/m_min.md b/content/v2.0/reference/flux/stdlib/math/m_min.md similarity index 92% rename from content/v2.0/reference/flux/functions/math/m_min.md rename to content/v2.0/reference/flux/stdlib/math/m_min.md index 404982967..ef12e6cb1 100644 --- a/content/v2.0/reference/flux/functions/math/m_min.md +++ b/content/v2.0/reference/flux/stdlib/math/m_min.md @@ -1,6 +1,8 @@ --- title: math.m_min() function description: The math.m_min() function returns the smaller of `x` or `y`. +aliases: + - /v2.0/reference/flux/functions/math/m_min/ menu: v2_0_ref: name: math.m_min diff --git a/content/v2.0/reference/flux/functions/math/mod.md b/content/v2.0/reference/flux/stdlib/math/mod.md similarity index 94% rename from content/v2.0/reference/flux/functions/math/mod.md rename to content/v2.0/reference/flux/stdlib/math/mod.md index e23493865..afef0a1ba 100644 --- a/content/v2.0/reference/flux/functions/math/mod.md +++ b/content/v2.0/reference/flux/stdlib/math/mod.md @@ -3,6 +3,8 @@ title: math.mod() function description: > The math.mod() function returns the floating-point remainder of `x`/`y`. The magnitude of the result is less than `y` and its sign agrees with that of `x`. +aliases: + - /v2.0/reference/flux/functions/math/mod/ menu: v2_0_ref: name: math.mod diff --git a/content/v2.0/reference/flux/functions/math/modf.md b/content/v2.0/reference/flux/stdlib/math/modf.md similarity index 93% rename from content/v2.0/reference/flux/functions/math/modf.md rename to content/v2.0/reference/flux/stdlib/math/modf.md index 78e4ef7fd..94cf32fe9 100644 --- a/content/v2.0/reference/flux/functions/math/modf.md +++ b/content/v2.0/reference/flux/stdlib/math/modf.md @@ -3,6 +3,8 @@ title: math.modf() function description: > The math.modf() function returns integer and fractional floating-point numbers that sum to `f`. Both values have the same sign as `f`. +aliases: + - /v2.0/reference/flux/functions/math/modf/ menu: v2_0_ref: name: math.modf diff --git a/content/v2.0/reference/flux/functions/math/nan.md b/content/v2.0/reference/flux/stdlib/math/nan.md similarity index 85% rename from content/v2.0/reference/flux/functions/math/nan.md rename to content/v2.0/reference/flux/stdlib/math/nan.md index ebb54f06b..714f3f676 100644 --- a/content/v2.0/reference/flux/functions/math/nan.md +++ b/content/v2.0/reference/flux/stdlib/math/nan.md @@ -1,6 +1,8 @@ --- title: math.NaN() function description: The math.NaN() function returns an IEEE 754 “not-a-number” value. +aliases: + - /v2.0/reference/flux/functions/math/nan/ menu: v2_0_ref: name: math.NaN diff --git a/content/v2.0/reference/flux/functions/math/nextafter.md b/content/v2.0/reference/flux/stdlib/math/nextafter.md similarity index 92% rename from content/v2.0/reference/flux/functions/math/nextafter.md rename to content/v2.0/reference/flux/stdlib/math/nextafter.md index bb6f0ae27..21810bda2 100644 --- a/content/v2.0/reference/flux/functions/math/nextafter.md +++ b/content/v2.0/reference/flux/stdlib/math/nextafter.md @@ -1,6 +1,8 @@ --- title: math.nextafter() function description: The math.nextafter() function returns the next representable float value after `x` towards `y`. +aliases: + - /v2.0/reference/flux/functions/math/nextafter/ menu: v2_0_ref: name: math.nextafter diff --git a/content/v2.0/reference/flux/functions/math/pow.md b/content/v2.0/reference/flux/stdlib/math/pow.md similarity index 96% rename from content/v2.0/reference/flux/functions/math/pow.md rename to content/v2.0/reference/flux/stdlib/math/pow.md index 3921a8fa1..af935c750 100644 --- a/content/v2.0/reference/flux/functions/math/pow.md +++ b/content/v2.0/reference/flux/stdlib/math/pow.md @@ -1,6 +1,8 @@ --- title: math.pow() function description: The math.pow() function returns `x**y`, the base-x exponential of y. +aliases: + - /v2.0/reference/flux/functions/math/pow/ menu: v2_0_ref: name: math.pow diff --git a/content/v2.0/reference/flux/functions/math/pow10.md b/content/v2.0/reference/flux/stdlib/math/pow10.md similarity index 90% rename from content/v2.0/reference/flux/functions/math/pow10.md rename to content/v2.0/reference/flux/stdlib/math/pow10.md index bfd8f1f63..234fb5e5b 100644 --- a/content/v2.0/reference/flux/functions/math/pow10.md +++ b/content/v2.0/reference/flux/stdlib/math/pow10.md @@ -1,6 +1,8 @@ --- title: math.pow10() function description: The math.pow10() function returns `10**n`, the base-10 exponential of `n`. +aliases: + - /v2.0/reference/flux/functions/math/pow10/ menu: v2_0_ref: name: math.pow10 diff --git a/content/v2.0/reference/flux/functions/math/remainder.md b/content/v2.0/reference/flux/stdlib/math/remainder.md similarity index 93% rename from content/v2.0/reference/flux/functions/math/remainder.md rename to content/v2.0/reference/flux/stdlib/math/remainder.md index c7056aef3..84563bf28 100644 --- a/content/v2.0/reference/flux/functions/math/remainder.md +++ b/content/v2.0/reference/flux/stdlib/math/remainder.md @@ -1,6 +1,8 @@ --- title: math.remainder() function description: The math.remainder() function returns the IEEE 754 floating-point remainder of `x / y`. +aliases: + - /v2.0/reference/flux/functions/math/remainder/ menu: v2_0_ref: name: math.remainder diff --git a/content/v2.0/reference/flux/functions/math/round.md b/content/v2.0/reference/flux/stdlib/math/round.md similarity index 91% rename from content/v2.0/reference/flux/functions/math/round.md rename to content/v2.0/reference/flux/stdlib/math/round.md index 92e040360..c4c60d2ab 100644 --- a/content/v2.0/reference/flux/functions/math/round.md +++ b/content/v2.0/reference/flux/stdlib/math/round.md @@ -1,6 +1,8 @@ --- title: math.round() function description: The math.round() function returns the nearest integer, rounding half away from zero. +aliases: + - /v2.0/reference/flux/functions/math/round/ menu: v2_0_ref: name: math.round diff --git a/content/v2.0/reference/flux/functions/math/roundtoeven.md b/content/v2.0/reference/flux/stdlib/math/roundtoeven.md similarity index 91% rename from content/v2.0/reference/flux/functions/math/roundtoeven.md rename to content/v2.0/reference/flux/stdlib/math/roundtoeven.md index 5f78da74a..381470463 100644 --- a/content/v2.0/reference/flux/functions/math/roundtoeven.md +++ b/content/v2.0/reference/flux/stdlib/math/roundtoeven.md @@ -1,6 +1,8 @@ --- title: math.roundtoeven() function description: The math.roundtoeven() function returns the nearest integer, rounding ties to even. +aliases: + - /v2.0/reference/flux/functions/math/roundtoeven/ menu: v2_0_ref: name: math.roundtoeven diff --git a/content/v2.0/reference/flux/functions/math/signbit.md b/content/v2.0/reference/flux/stdlib/math/signbit.md similarity index 88% rename from content/v2.0/reference/flux/functions/math/signbit.md rename to content/v2.0/reference/flux/stdlib/math/signbit.md index cefb73d90..9826c4e75 100644 --- a/content/v2.0/reference/flux/functions/math/signbit.md +++ b/content/v2.0/reference/flux/stdlib/math/signbit.md @@ -1,6 +1,8 @@ --- title: math.signbit() function description: The math.signbit() function reports whether `x` is negative or negative zero. +aliases: + - /v2.0/reference/flux/functions/math/signbit/ menu: v2_0_ref: name: math.signbit diff --git a/content/v2.0/reference/flux/functions/math/sin.md b/content/v2.0/reference/flux/stdlib/math/sin.md similarity index 91% rename from content/v2.0/reference/flux/functions/math/sin.md rename to content/v2.0/reference/flux/stdlib/math/sin.md index 033a005e8..e06aaec4c 100644 --- a/content/v2.0/reference/flux/functions/math/sin.md +++ b/content/v2.0/reference/flux/stdlib/math/sin.md @@ -1,6 +1,8 @@ --- title: math.sin() function description: The math.sin() function returns the sine of the radian argument `x`. +aliases: + - /v2.0/reference/flux/functions/math/sin/ menu: v2_0_ref: name: math.sin diff --git a/content/v2.0/reference/flux/functions/math/sincos.md b/content/v2.0/reference/flux/stdlib/math/sincos.md similarity index 92% rename from content/v2.0/reference/flux/functions/math/sincos.md rename to content/v2.0/reference/flux/stdlib/math/sincos.md index 7d1e25ff2..5536d6001 100644 --- a/content/v2.0/reference/flux/functions/math/sincos.md +++ b/content/v2.0/reference/flux/stdlib/math/sincos.md @@ -1,6 +1,8 @@ --- title: math.sincos() function description: The math.sincos() function returns the values of `math.sin(x:x)` and `math.cos(x:x)`. +aliases: + - /v2.0/reference/flux/functions/math/sincos/ menu: v2_0_ref: name: math.sincos diff --git a/content/v2.0/reference/flux/functions/math/sinh.md b/content/v2.0/reference/flux/stdlib/math/sinh.md similarity index 91% rename from content/v2.0/reference/flux/functions/math/sinh.md rename to content/v2.0/reference/flux/stdlib/math/sinh.md index 7dd4def04..800ae94a2 100644 --- a/content/v2.0/reference/flux/functions/math/sinh.md +++ b/content/v2.0/reference/flux/stdlib/math/sinh.md @@ -1,6 +1,8 @@ --- title: math.sinh() function description: The math.sinh() function returns the hyperbolic sine of `x`. +aliases: + - /v2.0/reference/flux/functions/math/sinh/ menu: v2_0_ref: name: math.sinh diff --git a/content/v2.0/reference/flux/functions/math/sqrt.md b/content/v2.0/reference/flux/stdlib/math/sqrt.md similarity index 91% rename from content/v2.0/reference/flux/functions/math/sqrt.md rename to content/v2.0/reference/flux/stdlib/math/sqrt.md index f09e59fa2..88e650c06 100644 --- a/content/v2.0/reference/flux/functions/math/sqrt.md +++ b/content/v2.0/reference/flux/stdlib/math/sqrt.md @@ -1,6 +1,8 @@ --- title: math.sqrt() function description: The math.sqrt() function returns the square root of `x`. +aliases: + - /v2.0/reference/flux/functions/math/sqrt/ menu: v2_0_ref: name: math.sqrt diff --git a/content/v2.0/reference/flux/functions/math/tan.md b/content/v2.0/reference/flux/stdlib/math/tan.md similarity index 91% rename from content/v2.0/reference/flux/functions/math/tan.md rename to content/v2.0/reference/flux/stdlib/math/tan.md index 3fbb9d970..f55bb765f 100644 --- a/content/v2.0/reference/flux/functions/math/tan.md +++ b/content/v2.0/reference/flux/stdlib/math/tan.md @@ -1,6 +1,8 @@ --- title: math.tan() function description: The math.tan() function returns the tangent of the radian argument `x`. +aliases: + - /v2.0/reference/flux/functions/math/tan/ menu: v2_0_ref: name: math.tan diff --git a/content/v2.0/reference/flux/functions/math/tanh.md b/content/v2.0/reference/flux/stdlib/math/tanh.md similarity index 91% rename from content/v2.0/reference/flux/functions/math/tanh.md rename to content/v2.0/reference/flux/stdlib/math/tanh.md index a468720b0..884972b1d 100644 --- a/content/v2.0/reference/flux/functions/math/tanh.md +++ b/content/v2.0/reference/flux/stdlib/math/tanh.md @@ -1,6 +1,8 @@ --- title: math.tanh() function description: The math.tanh() function returns the hyperbolic tangent of `x`. +aliases: + - /v2.0/reference/flux/functions/math/tanh/ menu: v2_0_ref: name: math.tanh diff --git a/content/v2.0/reference/flux/functions/math/trunc.md b/content/v2.0/reference/flux/stdlib/math/trunc.md similarity index 90% rename from content/v2.0/reference/flux/functions/math/trunc.md rename to content/v2.0/reference/flux/stdlib/math/trunc.md index e787dbd80..a4c98d682 100644 --- a/content/v2.0/reference/flux/functions/math/trunc.md +++ b/content/v2.0/reference/flux/stdlib/math/trunc.md @@ -1,6 +1,8 @@ --- title: math.trunc() function description: The math.trunc() function returns the integer value of `x`. +aliases: + - /v2.0/reference/flux/functions/math/trunc/ menu: v2_0_ref: name: math.trunc diff --git a/content/v2.0/reference/flux/functions/math/y0.md b/content/v2.0/reference/flux/stdlib/math/y0.md similarity index 92% rename from content/v2.0/reference/flux/functions/math/y0.md rename to content/v2.0/reference/flux/stdlib/math/y0.md index 7dc7fab13..4dff9fdb7 100644 --- a/content/v2.0/reference/flux/functions/math/y0.md +++ b/content/v2.0/reference/flux/stdlib/math/y0.md @@ -1,6 +1,8 @@ --- title: math.y0() function description: The math.y0() function returns the order-zero Bessel function of the second kind. +aliases: + - /v2.0/reference/flux/functions/math/y0/ menu: v2_0_ref: name: math.y0 diff --git a/content/v2.0/reference/flux/functions/math/y1.md b/content/v2.0/reference/flux/stdlib/math/y1.md similarity index 92% rename from content/v2.0/reference/flux/functions/math/y1.md rename to content/v2.0/reference/flux/stdlib/math/y1.md index b16a38c99..84b79ca1e 100644 --- a/content/v2.0/reference/flux/functions/math/y1.md +++ b/content/v2.0/reference/flux/stdlib/math/y1.md @@ -1,6 +1,8 @@ --- title: math.y1() function description: The math.y1() function returns the order-one Bessel function of the second kind. +aliases: + - /v2.0/reference/flux/functions/math/y1/ menu: v2_0_ref: name: math.y1 diff --git a/content/v2.0/reference/flux/functions/math/yn.md b/content/v2.0/reference/flux/stdlib/math/yn.md similarity index 93% rename from content/v2.0/reference/flux/functions/math/yn.md rename to content/v2.0/reference/flux/stdlib/math/yn.md index 56b951ca5..63e9e14ce 100644 --- a/content/v2.0/reference/flux/functions/math/yn.md +++ b/content/v2.0/reference/flux/stdlib/math/yn.md @@ -1,6 +1,8 @@ --- title: math.yn() function description: The math.yn() function returns the order-n Bessel function of the second kind. +aliases: + - /v2.0/reference/flux/functions/math/yn/ menu: v2_0_ref: name: math.yn diff --git a/content/v2.0/reference/flux/functions/monitor/_index.md b/content/v2.0/reference/flux/stdlib/monitor/_index.md similarity index 86% rename from content/v2.0/reference/flux/functions/monitor/_index.md rename to content/v2.0/reference/flux/stdlib/monitor/_index.md index 12271be11..b5296bc87 100644 --- a/content/v2.0/reference/flux/functions/monitor/_index.md +++ b/content/v2.0/reference/flux/stdlib/monitor/_index.md @@ -4,10 +4,12 @@ list_title: InfluxDB Monitor package description: > The Flux Monitor package provides tools for monitoring and alerting with InfluxDB. Import the `influxdata/influxdb/monitor` package. +aliases: + - /v2.0/reference/flux/functions/monitor/ menu: v2_0_ref: name: InfluxDB Monitor - parent: Flux packages and functions + parent: Flux standard library weight: 202 v2.0/tags: [functions, monitor, alerts, package] --- diff --git a/content/v2.0/reference/flux/functions/monitor/check.md b/content/v2.0/reference/flux/stdlib/monitor/check.md similarity index 97% rename from content/v2.0/reference/flux/functions/monitor/check.md rename to content/v2.0/reference/flux/stdlib/monitor/check.md index ce8de7b7f..5963d46f6 100644 --- a/content/v2.0/reference/flux/functions/monitor/check.md +++ b/content/v2.0/reference/flux/stdlib/monitor/check.md @@ -3,6 +3,8 @@ title: monitor.check() function description: > The `monitor.check()` function function checks input data and assigns a level (`ok`, `info`, `warn`, or `crit`) to each row based on predicate functions. +aliases: + - /v2.0/reference/flux/functions/monitor/check/ menu: v2_0_ref: name: monitor.check diff --git a/content/v2.0/reference/flux/functions/monitor/deadman.md b/content/v2.0/reference/flux/stdlib/monitor/deadman.md similarity index 94% rename from content/v2.0/reference/flux/functions/monitor/deadman.md rename to content/v2.0/reference/flux/stdlib/monitor/deadman.md index 6f52a49a1..870c90ae7 100644 --- a/content/v2.0/reference/flux/functions/monitor/deadman.md +++ b/content/v2.0/reference/flux/stdlib/monitor/deadman.md @@ -2,6 +2,8 @@ title: monitor.deadman() function description: > The `monitor.deadman()` function detects when a group stops reporting data. +aliases: + - /v2.0/reference/flux/functions/monitor/deadman/ menu: v2_0_ref: name: monitor.deadman diff --git a/content/v2.0/reference/flux/functions/monitor/from.md b/content/v2.0/reference/flux/stdlib/monitor/from.md similarity index 96% rename from content/v2.0/reference/flux/functions/monitor/from.md rename to content/v2.0/reference/flux/stdlib/monitor/from.md index cffde8c9c..0dcf3c575 100644 --- a/content/v2.0/reference/flux/functions/monitor/from.md +++ b/content/v2.0/reference/flux/stdlib/monitor/from.md @@ -3,6 +3,8 @@ title: monitor.from() function description: > The `monitor.from()` function retrieves check statuses stored in the `statuses` measurement in the `_monitoring` bucket. +aliases: + - /v2.0/reference/flux/functions/monitor/from/ menu: v2_0_ref: name: monitor.from diff --git a/content/v2.0/reference/flux/functions/monitor/logs.md b/content/v2.0/reference/flux/stdlib/monitor/logs.md similarity index 96% rename from content/v2.0/reference/flux/functions/monitor/logs.md rename to content/v2.0/reference/flux/stdlib/monitor/logs.md index a27b6bc0d..bcf6c4861 100644 --- a/content/v2.0/reference/flux/functions/monitor/logs.md +++ b/content/v2.0/reference/flux/stdlib/monitor/logs.md @@ -3,6 +3,8 @@ title: monitor.logs() function description: > The `monitor.logs()` function retrieves notification events stored in the `notifications` measurement in the `_monitoring` bucket. +aliases: + - /v2.0/reference/flux/functions/monitor/logs/ menu: v2_0_ref: name: monitor.logs diff --git a/content/v2.0/reference/flux/functions/monitor/notify.md b/content/v2.0/reference/flux/stdlib/monitor/notify.md similarity index 94% rename from content/v2.0/reference/flux/functions/monitor/notify.md rename to content/v2.0/reference/flux/stdlib/monitor/notify.md index 5f7dfec22..8d845a80c 100644 --- a/content/v2.0/reference/flux/functions/monitor/notify.md +++ b/content/v2.0/reference/flux/stdlib/monitor/notify.md @@ -3,6 +3,8 @@ title: monitor.notify() function description: > The `monitor.notify()` function sends a notification to an endpoint and logs it in the `notifications` measurement in the `_monitoring` bucket. +aliases: + - /v2.0/reference/flux/functions/monitor/notify/ menu: v2_0_ref: name: monitor.notify diff --git a/content/v2.0/reference/flux/functions/monitor/statechanges.md b/content/v2.0/reference/flux/stdlib/monitor/statechanges.md similarity index 94% rename from content/v2.0/reference/flux/functions/monitor/statechanges.md rename to content/v2.0/reference/flux/stdlib/monitor/statechanges.md index fd3b0dc0d..b2e4573a8 100644 --- a/content/v2.0/reference/flux/functions/monitor/statechanges.md +++ b/content/v2.0/reference/flux/stdlib/monitor/statechanges.md @@ -3,6 +3,8 @@ title: monitor.stateChanges() function description: > The `monitor.stateChanges()` function detects state changes in a stream of data and outputs records that change from `fromLevel` to `toLevel`. +aliases: + - /v2.0/reference/flux/functions/monitor/statechanges/ menu: v2_0_ref: name: monitor.stateChanges diff --git a/content/v2.0/reference/flux/functions/mqtt/_index.md b/content/v2.0/reference/flux/stdlib/mqtt/_index.md similarity index 92% rename from content/v2.0/reference/flux/functions/mqtt/_index.md rename to content/v2.0/reference/flux/stdlib/mqtt/_index.md index 2b53b4519..4c9232f67 100644 --- a/content/v2.0/reference/flux/functions/mqtt/_index.md +++ b/content/v2.0/reference/flux/stdlib/mqtt/_index.md @@ -7,7 +7,7 @@ description: > menu: v2_0_ref: name: MQTT - parent: Flux packages and functions + parent: Flux standard library weight: 202 v2.0/tags: [functions, mqtt, package] draft: true diff --git a/content/v2.0/reference/flux/functions/mqtt/to.md b/content/v2.0/reference/flux/stdlib/mqtt/to.md similarity index 100% rename from content/v2.0/reference/flux/functions/mqtt/to.md rename to content/v2.0/reference/flux/stdlib/mqtt/to.md diff --git a/content/v2.0/reference/flux/functions/pagerduty/_index.md b/content/v2.0/reference/flux/stdlib/pagerduty/_index.md similarity index 84% rename from content/v2.0/reference/flux/functions/pagerduty/_index.md rename to content/v2.0/reference/flux/stdlib/pagerduty/_index.md index 8a8a1fd13..a84ddf85d 100644 --- a/content/v2.0/reference/flux/functions/pagerduty/_index.md +++ b/content/v2.0/reference/flux/stdlib/pagerduty/_index.md @@ -4,10 +4,12 @@ list_title: PagerDuty package description: > The Flux PagerDuty package provides functions for sending data to PagerDuty. Import the `pagerduty` package. +aliases: + - /v2.0/reference/flux/functions/pagerduty/ menu: v2_0_ref: name: PagerDuty - parent: Flux packages and functions + parent: Flux standard library weight: 202 v2.0/tags: [functions, pagerduty, package] --- diff --git a/content/v2.0/reference/flux/functions/pagerduty/actionfromseverity.md b/content/v2.0/reference/flux/stdlib/pagerduty/actionfromseverity.md similarity index 91% rename from content/v2.0/reference/flux/functions/pagerduty/actionfromseverity.md rename to content/v2.0/reference/flux/stdlib/pagerduty/actionfromseverity.md index 6ac966f05..641083e8c 100644 --- a/content/v2.0/reference/flux/functions/pagerduty/actionfromseverity.md +++ b/content/v2.0/reference/flux/stdlib/pagerduty/actionfromseverity.md @@ -2,6 +2,8 @@ title: pagerduty.actionFromSeverity() function description: > The `pagerduty.actionFromSeverity()` function converts a severity to a PagerDuty action. +aliases: + - /v2.0/reference/flux/functions/pagerduty/actionfromseverity/ menu: v2_0_ref: name: pagerduty.actionFromSeverity diff --git a/content/v2.0/reference/flux/functions/pagerduty/dedupkey.md b/content/v2.0/reference/flux/stdlib/pagerduty/dedupkey.md similarity index 93% rename from content/v2.0/reference/flux/functions/pagerduty/dedupkey.md rename to content/v2.0/reference/flux/stdlib/pagerduty/dedupkey.md index a49792e6d..f34873a08 100644 --- a/content/v2.0/reference/flux/functions/pagerduty/dedupkey.md +++ b/content/v2.0/reference/flux/stdlib/pagerduty/dedupkey.md @@ -3,6 +3,8 @@ title: pagerduty.dedupKey() function description: > The `pagerduty.dedupKey()` function uses the group key of an input table to generate and store a deduplication key in the `_pagerdutyDedupKey` column. +aliases: + - /v2.0/reference/flux/functions/pagerduty/dedupkey/ menu: v2_0_ref: name: pagerduty.dedupKey diff --git a/content/v2.0/reference/flux/functions/pagerduty/endpoint.md b/content/v2.0/reference/flux/stdlib/pagerduty/endpoint.md similarity index 90% rename from content/v2.0/reference/flux/functions/pagerduty/endpoint.md rename to content/v2.0/reference/flux/stdlib/pagerduty/endpoint.md index 70fb7cf83..e42bd1e7a 100644 --- a/content/v2.0/reference/flux/functions/pagerduty/endpoint.md +++ b/content/v2.0/reference/flux/stdlib/pagerduty/endpoint.md @@ -2,6 +2,8 @@ title: pagerduty.endpoint() function description: > The `pagerduty.endpoint()` function sends a message to PagerDuty that includes output data. +aliases: + - /v2.0/reference/flux/functions/pagerduty/endpoint/ menu: v2_0_ref: name: pagerduty.endpoint @@ -54,7 +56,7 @@ The returned object must include the following fields: - `summary` - `timestamp` -_For more information, see [`pagerduty.message()`](/v2.0/reference/flux/functions/pagerduty/message/)_ +_For more information, see [`pagerduty.sendEvent()`](/v2.0/reference/flux/stdlib/pagerduty/sendevent/)_ ## Examples diff --git a/content/v2.0/reference/flux/functions/pagerduty/sendevent.md b/content/v2.0/reference/flux/stdlib/pagerduty/sendevent.md similarity index 91% rename from content/v2.0/reference/flux/functions/pagerduty/sendevent.md rename to content/v2.0/reference/flux/stdlib/pagerduty/sendevent.md index a3fb2b7d0..51bf4abaf 100644 --- a/content/v2.0/reference/flux/functions/pagerduty/sendevent.md +++ b/content/v2.0/reference/flux/stdlib/pagerduty/sendevent.md @@ -2,6 +2,8 @@ title: pagerduty.sendEvent() function description: > The `pagerduty.sendEvent()` function sends an event to PagerDuty. +aliases: + - /v2.0/reference/flux/functions/pagerduty/sendevent/ menu: v2_0_ref: name: pagerduty.sendEvent @@ -61,8 +63,8 @@ change the severity of previous messages. Supports a maximum of 255 characters. {{% note %}} -When using [`pagerduty.endpoint()`](/v2.0/reference/flux/functions/pagerduty/endpoint/) -to send data to PagerDuty, the function uses the [`pagerduty.dedupKey()` function](/v2.0/reference/flux/functions/pagerduty/dedupkey/) to populate the `dedupkey` parameter. +When using [`pagerduty.endpoint()`](/v2.0/reference/flux/stdlib/pagerduty/endpoint/) +to send data to PagerDuty, the function uses the [`pagerduty.dedupKey()` function](/v2.0/reference/flux/stdlib/pagerduty/dedupkey/) to populate the `dedupkey` parameter. {{% /note %}} _**Data type:** String_ diff --git a/content/v2.0/reference/flux/functions/pagerduty/severityfromlevel.md b/content/v2.0/reference/flux/stdlib/pagerduty/severityfromlevel.md similarity index 94% rename from content/v2.0/reference/flux/functions/pagerduty/severityfromlevel.md rename to content/v2.0/reference/flux/stdlib/pagerduty/severityfromlevel.md index a70fd76b6..7e1d829ad 100644 --- a/content/v2.0/reference/flux/functions/pagerduty/severityfromlevel.md +++ b/content/v2.0/reference/flux/stdlib/pagerduty/severityfromlevel.md @@ -3,6 +3,8 @@ title: pagerduty.severityFromLevel() function description: > The `pagerduty.severityFromLevel()` function converts an InfluxDB status level to a PagerDuty severity. +aliases: + - /v2.0/reference/flux/functions/pagerduty/severityfromlevel/ menu: v2_0_ref: name: pagerduty.severityFromLevel diff --git a/content/v2.0/reference/flux/functions/regexp/_index.md b/content/v2.0/reference/flux/stdlib/regexp/_index.md similarity index 86% rename from content/v2.0/reference/flux/functions/regexp/_index.md rename to content/v2.0/reference/flux/stdlib/regexp/_index.md index c1107742a..079929ca2 100644 --- a/content/v2.0/reference/flux/functions/regexp/_index.md +++ b/content/v2.0/reference/flux/stdlib/regexp/_index.md @@ -4,10 +4,12 @@ list_title: Regular expressions package description: > The Flux regular expressions package includes functions that provide enhanced regular expression functionality. Import the `regexp` package. +aliases: + - /v2.0/reference/flux/functions/regexp/ menu: v2_0_ref: name: Regular expressions - parent: Flux packages and functions + parent: Flux standard library weight: 202 v2.0/tags: [regex, functions] --- diff --git a/content/v2.0/reference/flux/functions/regexp/compile.md b/content/v2.0/reference/flux/stdlib/regexp/compile.md similarity index 94% rename from content/v2.0/reference/flux/functions/regexp/compile.md rename to content/v2.0/reference/flux/stdlib/regexp/compile.md index 8a5f45cca..93dea117d 100644 --- a/content/v2.0/reference/flux/functions/regexp/compile.md +++ b/content/v2.0/reference/flux/stdlib/regexp/compile.md @@ -3,6 +3,8 @@ title: regexp.compile() function description: > The `regexp.compile()` function parses a regular expression and, if successful, returns a Regexp object that can be used to match against text. +aliases: + - /v2.0/reference/flux/functions/regexp/compile/ menu: v2_0_ref: name: regexp.compile diff --git a/content/v2.0/reference/flux/functions/regexp/findstring.md b/content/v2.0/reference/flux/stdlib/regexp/findstring.md similarity index 88% rename from content/v2.0/reference/flux/functions/regexp/findstring.md rename to content/v2.0/reference/flux/stdlib/regexp/findstring.md index ac0f98e86..d26a1a688 100644 --- a/content/v2.0/reference/flux/functions/regexp/findstring.md +++ b/content/v2.0/reference/flux/stdlib/regexp/findstring.md @@ -1,13 +1,15 @@ --- title: regexp.findString() function description: The `regexp.findString()` function returns the left-most regular expression match in a string. +aliases: + - /v2.0/reference/flux/functions/regexp/findstring/ menu: v2_0_ref: name: regexp.findString parent: Regular expressions weight: 301 related: - - /v2.0/reference/flux/functions/regexp/splitregexp + - /v2.0/reference/flux/stdlib/regexp/splitregexp --- The `regexp.findString()` function returns the left-most regular expression match in a string. diff --git a/content/v2.0/reference/flux/functions/regexp/findstringindex.md b/content/v2.0/reference/flux/stdlib/regexp/findstringindex.md similarity index 90% rename from content/v2.0/reference/flux/functions/regexp/findstringindex.md rename to content/v2.0/reference/flux/stdlib/regexp/findstringindex.md index 49a1d7a47..80e4d4ff1 100644 --- a/content/v2.0/reference/flux/functions/regexp/findstringindex.md +++ b/content/v2.0/reference/flux/stdlib/regexp/findstringindex.md @@ -3,13 +3,15 @@ title: regexp.findStringIndex() function description: > The `regexp.findStringIndex()` function returns a two-element array of integers defining the beginning and ending indexes of the left-most regular expression match in a string. +aliases: + - /v2.0/reference/flux/functions/regexp/findstringindex/ menu: v2_0_ref: name: regexp.findStringIndex parent: Regular expressions weight: 301 related: - - /v2.0/reference/flux/functions/regexp/compile + - /v2.0/reference/flux/stdlib/regexp/compile --- The `regexp.findStringIndex()` function returns a two-element array of integers defining diff --git a/content/v2.0/reference/flux/functions/regexp/getstring.md b/content/v2.0/reference/flux/stdlib/regexp/getstring.md similarity index 87% rename from content/v2.0/reference/flux/functions/regexp/getstring.md rename to content/v2.0/reference/flux/stdlib/regexp/getstring.md index f4528a091..7c3c39992 100644 --- a/content/v2.0/reference/flux/functions/regexp/getstring.md +++ b/content/v2.0/reference/flux/stdlib/regexp/getstring.md @@ -1,13 +1,15 @@ --- title: regexp.getString() function description: The `regexp.getString()` function returns the source string used to compile a regular expression. +aliases: + - /v2.0/reference/flux/functions/regexp/getstring/ menu: v2_0_ref: name: regexp.getString parent: Regular expressions weight: 301 related: - - /v2.0/reference/flux/functions/regexp/compile + - /v2.0/reference/flux/stdlib/regexp/compile --- The `regexp.getString()` function returns the source string used to compile a regular expression. diff --git a/content/v2.0/reference/flux/functions/regexp/matchregexpstring.md b/content/v2.0/reference/flux/stdlib/regexp/matchregexpstring.md similarity index 92% rename from content/v2.0/reference/flux/functions/regexp/matchregexpstring.md rename to content/v2.0/reference/flux/stdlib/regexp/matchregexpstring.md index 4a5c39cf7..ec8c6a113 100644 --- a/content/v2.0/reference/flux/functions/regexp/matchregexpstring.md +++ b/content/v2.0/reference/flux/stdlib/regexp/matchregexpstring.md @@ -3,6 +3,8 @@ title: regexp.matchRegexpString() function description: > The `regexp.matchRegexpString()` function tests if a string contains any match to a regular expression. +aliases: + - /v2.0/reference/flux/functions/regexp/matchregexpstring/ menu: v2_0_ref: name: regexp.matchRegexpString diff --git a/content/v2.0/reference/flux/functions/regexp/quotemeta.md b/content/v2.0/reference/flux/stdlib/regexp/quotemeta.md similarity index 93% rename from content/v2.0/reference/flux/functions/regexp/quotemeta.md rename to content/v2.0/reference/flux/stdlib/regexp/quotemeta.md index 7a02a2f3e..92916a540 100644 --- a/content/v2.0/reference/flux/functions/regexp/quotemeta.md +++ b/content/v2.0/reference/flux/stdlib/regexp/quotemeta.md @@ -2,6 +2,8 @@ title: regexp.quoteMeta() function description: > The `regexp.quoteMeta()` function escapes all regular expression metacharacters inside of a string. +aliases: + - /v2.0/reference/flux/functions/regexp/quotemeta/ menu: v2_0_ref: name: regexp.quoteMeta diff --git a/content/v2.0/reference/flux/functions/regexp/replaceallstring.md b/content/v2.0/reference/flux/stdlib/regexp/replaceallstring.md similarity index 93% rename from content/v2.0/reference/flux/functions/regexp/replaceallstring.md rename to content/v2.0/reference/flux/stdlib/regexp/replaceallstring.md index 04c7383f7..7a84dd44c 100644 --- a/content/v2.0/reference/flux/functions/regexp/replaceallstring.md +++ b/content/v2.0/reference/flux/stdlib/regexp/replaceallstring.md @@ -3,6 +3,8 @@ title: regexp.replaceAllString() function description: > The `regexp.replaceAllString()` function replaces all regular expression matches in a string with a specified replacement. +aliases: + - /v2.0/reference/flux/functions/regexp/replaceallstring/ menu: v2_0_ref: name: regexp.replaceAllString diff --git a/content/v2.0/reference/flux/functions/regexp/splitregexp.md b/content/v2.0/reference/flux/stdlib/regexp/splitregexp.md similarity index 93% rename from content/v2.0/reference/flux/functions/regexp/splitregexp.md rename to content/v2.0/reference/flux/stdlib/regexp/splitregexp.md index 28d25fdad..eaddf0add 100644 --- a/content/v2.0/reference/flux/functions/regexp/splitregexp.md +++ b/content/v2.0/reference/flux/stdlib/regexp/splitregexp.md @@ -3,6 +3,8 @@ title: regexp.splitRegexp() function description: > The `regexp.splitRegexp()` function splits a string into substrings separated by regular expression matches and returns an array of `i` substrings between matches. +aliases: + - /v2.0/reference/flux/functions/regexp/splitregexp/ menu: v2_0_ref: name: regexp.splitRegexp diff --git a/content/v2.0/reference/flux/functions/runtime/_index.md b/content/v2.0/reference/flux/stdlib/runtime/_index.md similarity index 85% rename from content/v2.0/reference/flux/functions/runtime/_index.md rename to content/v2.0/reference/flux/stdlib/runtime/_index.md index b940e379a..690559ff1 100644 --- a/content/v2.0/reference/flux/functions/runtime/_index.md +++ b/content/v2.0/reference/flux/stdlib/runtime/_index.md @@ -4,10 +4,12 @@ list_title: Runtime package description: > The Flux runtime package includes functions that provide information about the current Flux runtime. Import the `runtime` package. +aliases: + - /v2.0/reference/flux/functions/runtime/ menu: v2_0_ref: name: Runtime - parent: Flux packages and functions + parent: Flux standard library weight: 202 v2.0/tags: [runtime, functions, package] --- diff --git a/content/v2.0/reference/flux/functions/runtime/version.md b/content/v2.0/reference/flux/stdlib/runtime/version.md similarity index 86% rename from content/v2.0/reference/flux/functions/runtime/version.md rename to content/v2.0/reference/flux/stdlib/runtime/version.md index 84333887b..f7aaddf27 100644 --- a/content/v2.0/reference/flux/functions/runtime/version.md +++ b/content/v2.0/reference/flux/stdlib/runtime/version.md @@ -1,6 +1,8 @@ --- title: runtime.version() function description: The `runtime.version()` function returns the current Flux version. +aliases: + - /v2.0/reference/flux/functions/runtime/version/ menu: v2_0_ref: name: runtime.version diff --git a/content/v2.0/reference/flux/functions/secrets/_index.md b/content/v2.0/reference/flux/stdlib/secrets/_index.md similarity index 87% rename from content/v2.0/reference/flux/functions/secrets/_index.md rename to content/v2.0/reference/flux/stdlib/secrets/_index.md index d27834ccf..fb9a57a5b 100644 --- a/content/v2.0/reference/flux/functions/secrets/_index.md +++ b/content/v2.0/reference/flux/stdlib/secrets/_index.md @@ -4,10 +4,12 @@ list_title: InfluxDB Secrets package description: > The Flux InfluxDB Secrets package provides functions for working with sensitive secrets managed by InfluxDB. Import the `influxdata/influxdb/secrets` package. +aliases: + - /v2.0/reference/flux/functions/secrets/ menu: v2_0_ref: name: InfluxDB Secrets - parent: Flux packages and functions + parent: Flux standard library weight: 202 v2.0/tags: [functions, secrets, package] --- diff --git a/content/v2.0/reference/flux/functions/secrets/get.md b/content/v2.0/reference/flux/stdlib/secrets/get.md similarity index 93% rename from content/v2.0/reference/flux/functions/secrets/get.md rename to content/v2.0/reference/flux/stdlib/secrets/get.md index 342e6d380..1ce2fcb2b 100644 --- a/content/v2.0/reference/flux/functions/secrets/get.md +++ b/content/v2.0/reference/flux/stdlib/secrets/get.md @@ -2,6 +2,8 @@ title: secrets.get() function description: > The `secrets.get()` function retrieves a secret from the InfluxDB secret store. +aliases: + - /v2.0/reference/flux/functions/secrets/get/ menu: v2_0_ref: name: secrets.get diff --git a/content/v2.0/reference/flux/functions/slack/_index.md b/content/v2.0/reference/flux/stdlib/slack/_index.md similarity index 83% rename from content/v2.0/reference/flux/functions/slack/_index.md rename to content/v2.0/reference/flux/stdlib/slack/_index.md index 82e48c738..14c73c63b 100644 --- a/content/v2.0/reference/flux/functions/slack/_index.md +++ b/content/v2.0/reference/flux/stdlib/slack/_index.md @@ -4,10 +4,12 @@ list_title: Slack package description: > The Flux Slack package provides functions for sending data to Slack. Import the `slack` package. +aliases: + - /v2.0/reference/flux/functions/slack/ menu: v2_0_ref: name: Slack - parent: Flux packages and functions + parent: Flux standard library weight: 202 v2.0/tags: [functions, slack, package] --- diff --git a/content/v2.0/reference/flux/functions/slack/endpoint.md b/content/v2.0/reference/flux/stdlib/slack/endpoint.md similarity index 95% rename from content/v2.0/reference/flux/functions/slack/endpoint.md rename to content/v2.0/reference/flux/stdlib/slack/endpoint.md index a4940de1a..22b99da8e 100644 --- a/content/v2.0/reference/flux/functions/slack/endpoint.md +++ b/content/v2.0/reference/flux/stdlib/slack/endpoint.md @@ -2,6 +2,8 @@ title: slack.endpoint() function description: > The `slack.endpoint()` function sends a message to Slack that includes output data. +aliases: + - /v2.0/reference/flux/functions/slack/endpoint/ menu: v2_0_ref: name: slack.endpoint @@ -67,7 +69,7 @@ The returned object must include the following fields: - `iconEmoji` - `color` -_For more information, see [`slack.message()`](/v2.0/reference/flux/functions/slack/message/)_ +_For more information, see [`slack.message()`](/v2.0/reference/flux/stdlib/slack/message/)_ ## Examples diff --git a/content/v2.0/reference/flux/functions/slack/message.md b/content/v2.0/reference/flux/stdlib/slack/message.md similarity index 98% rename from content/v2.0/reference/flux/functions/slack/message.md rename to content/v2.0/reference/flux/stdlib/slack/message.md index 70606b866..28b0ddcb8 100644 --- a/content/v2.0/reference/flux/functions/slack/message.md +++ b/content/v2.0/reference/flux/stdlib/slack/message.md @@ -3,6 +3,8 @@ title: slack.message() function description: > The `slack.message()` function sends a single message to a Slack channel. The function works with either with the chat.postMessage API or with a Slack webhook. +aliases: + - /v2.0/reference/flux/functions/slack/message/ menu: v2_0_ref: name: slack.message diff --git a/content/v2.0/reference/flux/functions/sql/_index.md b/content/v2.0/reference/flux/stdlib/sql/_index.md similarity index 85% rename from content/v2.0/reference/flux/functions/sql/_index.md rename to content/v2.0/reference/flux/stdlib/sql/_index.md index 77004614c..14574013c 100644 --- a/content/v2.0/reference/flux/functions/sql/_index.md +++ b/content/v2.0/reference/flux/stdlib/sql/_index.md @@ -4,10 +4,12 @@ list_title: SQL package description: > The Flux SQL package provides tools for working with data in SQL databases such as MySQL and PostgreSQL. Import the `sql` package. +aliases: + - /v2.0/reference/flux/functions/sql/ menu: v2_0_ref: name: SQL - parent: Flux packages and functions + parent: Flux standard library weight: 202 v2.0/tags: [functions, sql, package, mysql, postgres] --- diff --git a/content/v2.0/reference/flux/functions/sql/from.md b/content/v2.0/reference/flux/stdlib/sql/from.md similarity index 96% rename from content/v2.0/reference/flux/functions/sql/from.md rename to content/v2.0/reference/flux/stdlib/sql/from.md index fedbe981f..1931f2fc5 100644 --- a/content/v2.0/reference/flux/functions/sql/from.md +++ b/content/v2.0/reference/flux/stdlib/sql/from.md @@ -1,6 +1,8 @@ --- title: sql.from() function description: The `sql.from()` function retrieves data from a SQL data source. +aliases: + - /v2.0/reference/flux/functions/sql/from/ menu: v2_0_ref: name: sql.from diff --git a/content/v2.0/reference/flux/functions/sql/to.md b/content/v2.0/reference/flux/stdlib/sql/to.md similarity index 96% rename from content/v2.0/reference/flux/functions/sql/to.md rename to content/v2.0/reference/flux/stdlib/sql/to.md index f8aa134ba..6b9e7a0b4 100644 --- a/content/v2.0/reference/flux/functions/sql/to.md +++ b/content/v2.0/reference/flux/stdlib/sql/to.md @@ -1,6 +1,8 @@ --- title: sql.to() function description: The `sql.to()` function writes data to a SQL database. +aliases: + - /v2.0/reference/flux/functions/sql/to/ menu: v2_0_ref: name: sql.to diff --git a/content/v2.0/reference/flux/functions/strings/_index.md b/content/v2.0/reference/flux/stdlib/strings/_index.md similarity index 84% rename from content/v2.0/reference/flux/functions/strings/_index.md rename to content/v2.0/reference/flux/stdlib/strings/_index.md index 0adee39c4..9cdc9225c 100644 --- a/content/v2.0/reference/flux/functions/strings/_index.md +++ b/content/v2.0/reference/flux/stdlib/strings/_index.md @@ -4,10 +4,12 @@ list_title: Strings package description: > The Flux strings package provides functions to manipulate UTF-8 encoded strings. Import the `strings` package. +aliases: + - /v2.0/reference/flux/functions/strings/ menu: v2_0_ref: name: Strings - parent: Flux packages and functions + parent: Flux standard library weight: 202 v2.0/tags: [strings, functions, package] --- diff --git a/content/v2.0/reference/flux/functions/strings/compare.md b/content/v2.0/reference/flux/stdlib/strings/compare.md similarity index 93% rename from content/v2.0/reference/flux/functions/strings/compare.md rename to content/v2.0/reference/flux/stdlib/strings/compare.md index c1496f2eb..2f265cf1d 100644 --- a/content/v2.0/reference/flux/functions/strings/compare.md +++ b/content/v2.0/reference/flux/stdlib/strings/compare.md @@ -1,6 +1,8 @@ --- title: strings.compare() function description: The strings.compare() function compares the lexicographical order of two strings. +aliases: + - /v2.0/reference/flux/functions/strings/compare/ menu: v2_0_ref: name: strings.compare diff --git a/content/v2.0/reference/flux/functions/strings/containsany.md b/content/v2.0/reference/flux/stdlib/strings/containsany.md similarity index 88% rename from content/v2.0/reference/flux/functions/strings/containsany.md rename to content/v2.0/reference/flux/stdlib/strings/containsany.md index 43eade2ea..1398d51e0 100644 --- a/content/v2.0/reference/flux/functions/strings/containsany.md +++ b/content/v2.0/reference/flux/stdlib/strings/containsany.md @@ -3,13 +3,15 @@ title: strings.containsAny() function description: > The strings.containsAny() function reports whether a specified string contains any characters from from another string. +aliases: + - /v2.0/reference/flux/functions/strings/containsany/ menu: v2_0_ref: name: strings.containsAny parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/containsstr + - /v2.0/reference/flux/stdlib/strings/containsstr --- The `strings.containsAny()` function reports whether a specified string contains diff --git a/content/v2.0/reference/flux/functions/strings/containsstr.md b/content/v2.0/reference/flux/stdlib/strings/containsstr.md similarity index 87% rename from content/v2.0/reference/flux/functions/strings/containsstr.md rename to content/v2.0/reference/flux/stdlib/strings/containsstr.md index fcb1edd75..fded2ed3a 100644 --- a/content/v2.0/reference/flux/functions/strings/containsstr.md +++ b/content/v2.0/reference/flux/stdlib/strings/containsstr.md @@ -1,13 +1,15 @@ --- title: strings.containsStr() function description: The strings.containsStr() function reports whether a string contains a specified substring. +aliases: + - /v2.0/reference/flux/functions/strings/containsstr/ menu: v2_0_ref: name: strings.containsStr parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/containsany + - /v2.0/reference/flux/stdlib/strings/containsany --- The `strings.containsStr()` function reports whether a string contains a specified substring. diff --git a/content/v2.0/reference/flux/functions/strings/countstr.md b/content/v2.0/reference/flux/stdlib/strings/countstr.md similarity index 94% rename from content/v2.0/reference/flux/functions/strings/countstr.md rename to content/v2.0/reference/flux/stdlib/strings/countstr.md index 2639a9285..f7b71a4a0 100644 --- a/content/v2.0/reference/flux/functions/strings/countstr.md +++ b/content/v2.0/reference/flux/stdlib/strings/countstr.md @@ -3,6 +3,8 @@ title: strings.countStr() function description: > The strings.countStr() function counts the number of non-overlapping instances of a substring appears in a string. +aliases: + - /v2.0/reference/flux/functions/strings/countstr/ menu: v2_0_ref: name: strings.countStr diff --git a/content/v2.0/reference/flux/functions/strings/equalfold.md b/content/v2.0/reference/flux/stdlib/strings/equalfold.md similarity index 93% rename from content/v2.0/reference/flux/functions/strings/equalfold.md rename to content/v2.0/reference/flux/stdlib/strings/equalfold.md index 4e42e30c9..d49d0c4cb 100644 --- a/content/v2.0/reference/flux/functions/strings/equalfold.md +++ b/content/v2.0/reference/flux/stdlib/strings/equalfold.md @@ -3,6 +3,8 @@ title: strings.equalFold() function description: > The strings.equalFold() function reports whether two UTF-8 strings are equal under Unicode case-folding. +aliases: + - /v2.0/reference/flux/functions/strings/equalfold/ menu: v2_0_ref: name: strings.equalFold diff --git a/content/v2.0/reference/flux/functions/strings/hasprefix.md b/content/v2.0/reference/flux/stdlib/strings/hasprefix.md similarity index 86% rename from content/v2.0/reference/flux/functions/strings/hasprefix.md rename to content/v2.0/reference/flux/stdlib/strings/hasprefix.md index f76eea9f4..200aca3cf 100644 --- a/content/v2.0/reference/flux/functions/strings/hasprefix.md +++ b/content/v2.0/reference/flux/stdlib/strings/hasprefix.md @@ -1,13 +1,15 @@ --- title: strings.hasPrefix() function description: The strings.hasPrefix() function indicates if a string begins with a specific prefix. +aliases: + - /v2.0/reference/flux/functions/strings/hasprefix/ menu: v2_0_ref: name: strings.hasPrefix parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/hassuffix + - /v2.0/reference/flux/stdlib/strings/hassuffix --- The `strings.hasPrefix()` function indicates if a string begins with a specified prefix. diff --git a/content/v2.0/reference/flux/functions/strings/hassuffix.md b/content/v2.0/reference/flux/stdlib/strings/hassuffix.md similarity index 86% rename from content/v2.0/reference/flux/functions/strings/hassuffix.md rename to content/v2.0/reference/flux/stdlib/strings/hassuffix.md index 0647ad192..dfc66563a 100644 --- a/content/v2.0/reference/flux/functions/strings/hassuffix.md +++ b/content/v2.0/reference/flux/stdlib/strings/hassuffix.md @@ -1,13 +1,15 @@ --- title: strings.hasSuffix() function description: The strings.hasSuffix() function indicates if a string ends with a specified suffix. +aliases: + - /v2.0/reference/flux/functions/strings/hassuffix/ menu: v2_0_ref: name: strings.hasSuffix parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/hasprefix + - /v2.0/reference/flux/stdlib/strings/hasprefix --- The `strings.hasSuffix()` function indicates if a string ends with a specified suffix. diff --git a/content/v2.0/reference/flux/functions/strings/index-func.md b/content/v2.0/reference/flux/stdlib/strings/index-func.md similarity index 79% rename from content/v2.0/reference/flux/functions/strings/index-func.md rename to content/v2.0/reference/flux/stdlib/strings/index-func.md index c0d290cc3..7e7119871 100644 --- a/content/v2.0/reference/flux/functions/strings/index-func.md +++ b/content/v2.0/reference/flux/stdlib/strings/index-func.md @@ -3,15 +3,17 @@ title: strings.index() function description: > The strings.index() function returns the index of the first instance of a substring in another string. +aliases: + - /v2.0/reference/flux/functions/strings/index-func/ menu: v2_0_ref: name: strings.index parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/indexany/ - - /v2.0/reference/flux/functions/strings/lastindex/ - - /v2.0/reference/flux/functions/strings/lastindexany/ + - /v2.0/reference/flux/stdlib/strings/indexany/ + - /v2.0/reference/flux/stdlib/strings/lastindex/ + - /v2.0/reference/flux/stdlib/strings/lastindexany/ --- The `strings.index()` function returns the index of the first instance of a substring diff --git a/content/v2.0/reference/flux/functions/strings/indexany.md b/content/v2.0/reference/flux/stdlib/strings/indexany.md similarity index 80% rename from content/v2.0/reference/flux/functions/strings/indexany.md rename to content/v2.0/reference/flux/stdlib/strings/indexany.md index 6884dde4e..e72b922fa 100644 --- a/content/v2.0/reference/flux/functions/strings/indexany.md +++ b/content/v2.0/reference/flux/stdlib/strings/indexany.md @@ -2,15 +2,17 @@ title: strings.indexAny() function description: > The strings.indexAny() function returns the index of the first instance of specified characters in a string. +aliases: + - /v2.0/reference/flux/functions/strings/indexany/ menu: v2_0_ref: name: strings.indexAny parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/index-func/ - - /v2.0/reference/flux/functions/strings/lastindex/ - - /v2.0/reference/flux/functions/strings/lastindexany/ + - /v2.0/reference/flux/stdlib/strings/index-func/ + - /v2.0/reference/flux/stdlib/strings/lastindex/ + - /v2.0/reference/flux/stdlib/strings/lastindexany/ --- The `strings.indexAny()` function returns the index of the first instance of specified characters in a string. diff --git a/content/v2.0/reference/flux/functions/strings/isdigit.md b/content/v2.0/reference/flux/stdlib/strings/isdigit.md similarity index 85% rename from content/v2.0/reference/flux/functions/strings/isdigit.md rename to content/v2.0/reference/flux/stdlib/strings/isdigit.md index 5cd7530bd..1fb0b4c63 100644 --- a/content/v2.0/reference/flux/functions/strings/isdigit.md +++ b/content/v2.0/reference/flux/stdlib/strings/isdigit.md @@ -1,13 +1,15 @@ --- title: strings.isDigit() function description: The strings.isDigit() function tests if a single character string is a digit (0-9). +aliases: + - /v2.0/reference/flux/functions/strings/isdigit/ menu: v2_0_ref: name: strings.isDigit parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/isletter/ + - /v2.0/reference/flux/stdlib/strings/isletter/ --- The `strings.isDigit()` function tests if a single-character string is a digit (0-9). diff --git a/content/v2.0/reference/flux/functions/strings/isletter.md b/content/v2.0/reference/flux/stdlib/strings/isletter.md similarity index 85% rename from content/v2.0/reference/flux/functions/strings/isletter.md rename to content/v2.0/reference/flux/stdlib/strings/isletter.md index 3772a2ff6..1ba665e0c 100644 --- a/content/v2.0/reference/flux/functions/strings/isletter.md +++ b/content/v2.0/reference/flux/stdlib/strings/isletter.md @@ -1,13 +1,15 @@ --- title: strings.isLetter() function description: The strings.isLetter() function tests if a single character string is a letter (a-z, A-Z). +aliases: + - /v2.0/reference/flux/functions/strings/isletter/ menu: v2_0_ref: name: strings.isLetter parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/isdigit/ + - /v2.0/reference/flux/stdlib/strings/isdigit/ --- The `strings.isLetter()` function tests if a single character string is a letter (a-z, A-Z). diff --git a/content/v2.0/reference/flux/functions/strings/islower.md b/content/v2.0/reference/flux/stdlib/strings/islower.md similarity index 85% rename from content/v2.0/reference/flux/functions/strings/islower.md rename to content/v2.0/reference/flux/stdlib/strings/islower.md index db87b0587..1f06c7ff8 100644 --- a/content/v2.0/reference/flux/functions/strings/islower.md +++ b/content/v2.0/reference/flux/stdlib/strings/islower.md @@ -1,13 +1,15 @@ --- title: strings.isLower() function description: The strings.isLower() function tests if a single-character string is lowercase. +aliases: + - /v2.0/reference/flux/functions/strings/islower/ menu: v2_0_ref: name: strings.isLower parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/isupper + - /v2.0/reference/flux/stdlib/strings/isupper --- The `strings.isLower()` function tests if a single-character string is lowercase. diff --git a/content/v2.0/reference/flux/functions/strings/isupper.md b/content/v2.0/reference/flux/stdlib/strings/isupper.md similarity index 85% rename from content/v2.0/reference/flux/functions/strings/isupper.md rename to content/v2.0/reference/flux/stdlib/strings/isupper.md index c2dfcc30a..389faecf9 100644 --- a/content/v2.0/reference/flux/functions/strings/isupper.md +++ b/content/v2.0/reference/flux/stdlib/strings/isupper.md @@ -1,13 +1,15 @@ --- title: strings.isUpper() function description: The strings.isUpper() function tests if a single character string is uppercase. +aliases: + - /v2.0/reference/flux/functions/strings/isupper/ menu: v2_0_ref: name: strings.isUpper parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/islower + - /v2.0/reference/flux/stdlib/strings/islower --- The `strings.isUpper()` function tests if a single character string is uppercase. diff --git a/content/v2.0/reference/flux/functions/strings/joinstr.md b/content/v2.0/reference/flux/stdlib/strings/joinstr.md similarity index 93% rename from content/v2.0/reference/flux/functions/strings/joinstr.md rename to content/v2.0/reference/flux/stdlib/strings/joinstr.md index 7aa2c7bdb..19708d29b 100644 --- a/content/v2.0/reference/flux/functions/strings/joinstr.md +++ b/content/v2.0/reference/flux/stdlib/strings/joinstr.md @@ -3,6 +3,8 @@ title: strings.joinStr() function description: > The strings.joinStr() function concatenates the elements of a string array into a single string using a specified separator. +aliases: + - /v2.0/reference/flux/functions/strings/joinstr/ menu: v2_0_ref: name: strings.joinStr diff --git a/content/v2.0/reference/flux/functions/strings/lastindex.md b/content/v2.0/reference/flux/stdlib/strings/lastindex.md similarity index 81% rename from content/v2.0/reference/flux/functions/strings/lastindex.md rename to content/v2.0/reference/flux/stdlib/strings/lastindex.md index afe38b790..de47b378c 100644 --- a/content/v2.0/reference/flux/functions/strings/lastindex.md +++ b/content/v2.0/reference/flux/stdlib/strings/lastindex.md @@ -3,15 +3,17 @@ title: strings.lastIndex() function description: > The strings.lastIndex() function returns the index of the last instance of a substring in a string or `-1` if substring is not present. +aliases: + - /v2.0/reference/flux/functions/strings/lastindex/ menu: v2_0_ref: name: strings.lastIndex parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/index/ - - /v2.0/reference/flux/functions/strings/indexany/ - - /v2.0/reference/flux/functions/strings/lastindexany/ + - /v2.0/reference/flux/stdlib/strings/index/ + - /v2.0/reference/flux/stdlib/strings/indexany/ + - /v2.0/reference/flux/stdlib/strings/lastindexany/ --- The `strings.lastIndex()` function returns the index of the last instance of a substring diff --git a/content/v2.0/reference/flux/functions/strings/lastindexany.md b/content/v2.0/reference/flux/stdlib/strings/lastindexany.md similarity index 81% rename from content/v2.0/reference/flux/functions/strings/lastindexany.md rename to content/v2.0/reference/flux/stdlib/strings/lastindexany.md index 8fa0cdf75..3f93e97a6 100644 --- a/content/v2.0/reference/flux/functions/strings/lastindexany.md +++ b/content/v2.0/reference/flux/stdlib/strings/lastindexany.md @@ -1,15 +1,17 @@ --- title: strings.lastIndexAny() function description: The `strings.lastIndexAny()` function returns the index of the last instance of any specified characters in a string. +aliases: + - /v2.0/reference/flux/functions/strings/lastindexany/ menu: v2_0_ref: name: strings.lastIndexAny parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/index/ - - /v2.0/reference/flux/functions/strings/indexany/ - - /v2.0/reference/flux/functions/strings/lastindex/ + - /v2.0/reference/flux/stdlib/strings/index/ + - /v2.0/reference/flux/stdlib/strings/indexany/ + - /v2.0/reference/flux/stdlib/strings/lastindex/ --- The `strings.lastIndexAny()` function returns the index of the last instance of any specified characters in a string. diff --git a/content/v2.0/reference/flux/functions/strings/repeat.md b/content/v2.0/reference/flux/stdlib/strings/repeat.md similarity index 93% rename from content/v2.0/reference/flux/functions/strings/repeat.md rename to content/v2.0/reference/flux/stdlib/strings/repeat.md index a369afcec..07084055c 100644 --- a/content/v2.0/reference/flux/functions/strings/repeat.md +++ b/content/v2.0/reference/flux/stdlib/strings/repeat.md @@ -1,6 +1,8 @@ --- title: strings.repeat() function description: The strings.repeat() function returns a string consisting of `i` copies of a specified string. +aliases: + - /v2.0/reference/flux/functions/strings/repeat/ menu: v2_0_ref: name: strings.repeat diff --git a/content/v2.0/reference/flux/functions/strings/replace.md b/content/v2.0/reference/flux/stdlib/strings/replace.md similarity index 90% rename from content/v2.0/reference/flux/functions/strings/replace.md rename to content/v2.0/reference/flux/stdlib/strings/replace.md index 60aab2a20..caa1bcbd1 100644 --- a/content/v2.0/reference/flux/functions/strings/replace.md +++ b/content/v2.0/reference/flux/stdlib/strings/replace.md @@ -3,13 +3,15 @@ title: strings.replace() function description: > The strings.replace() function replaces the first `i` non-overlapping instances of a substring with a specified replacement. +aliases: + - /v2.0/reference/flux/functions/strings/replace/ menu: v2_0_ref: name: strings.replace parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/replaceall + - /v2.0/reference/flux/stdlib/strings/replaceall --- The `strings.replace()` function replaces the first `i` non-overlapping instances diff --git a/content/v2.0/reference/flux/functions/strings/replaceall.md b/content/v2.0/reference/flux/stdlib/strings/replaceall.md similarity index 89% rename from content/v2.0/reference/flux/functions/strings/replaceall.md rename to content/v2.0/reference/flux/stdlib/strings/replaceall.md index 0209850db..e129c6405 100644 --- a/content/v2.0/reference/flux/functions/strings/replaceall.md +++ b/content/v2.0/reference/flux/stdlib/strings/replaceall.md @@ -3,13 +3,15 @@ title: strings.replaceAll() function description: > The strings.replaceAll() function replaces all non-overlapping instances of a substring with a specified replacement. +aliases: + - /v2.0/reference/flux/functions/strings/replaceall/ menu: v2_0_ref: name: strings.replaceAll parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/replace + - /v2.0/reference/flux/stdlib/strings/replace --- The `strings.replaceAll()` function replaces all non-overlapping instances of a diff --git a/content/v2.0/reference/flux/functions/strings/split.md b/content/v2.0/reference/flux/stdlib/strings/split.md similarity index 79% rename from content/v2.0/reference/flux/functions/strings/split.md rename to content/v2.0/reference/flux/stdlib/strings/split.md index 705ebac48..aeea22df0 100644 --- a/content/v2.0/reference/flux/functions/strings/split.md +++ b/content/v2.0/reference/flux/stdlib/strings/split.md @@ -3,15 +3,17 @@ title: strings.split() function description: > The strings.split() function splits a string on a specified separator and returns an array of substrings. +aliases: + - /v2.0/reference/flux/functions/strings/split/ menu: v2_0_ref: name: strings.split parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/splitafter - - /v2.0/reference/flux/functions/strings/splitaftern - - /v2.0/reference/flux/functions/strings/splitn + - /v2.0/reference/flux/stdlib/strings/splitafter + - /v2.0/reference/flux/stdlib/strings/splitaftern + - /v2.0/reference/flux/stdlib/strings/splitn --- The `strings.split()` function splits a string on a specified separator and returns diff --git a/content/v2.0/reference/flux/functions/strings/splitafter.md b/content/v2.0/reference/flux/stdlib/strings/splitafter.md similarity index 80% rename from content/v2.0/reference/flux/functions/strings/splitafter.md rename to content/v2.0/reference/flux/stdlib/strings/splitafter.md index dd5e8e1c1..65e0542c7 100644 --- a/content/v2.0/reference/flux/functions/strings/splitafter.md +++ b/content/v2.0/reference/flux/stdlib/strings/splitafter.md @@ -3,15 +3,17 @@ title: strings.splitAfter() function description: > The strings.splitAfter() function splits a string after a specified separator and returns an array of substrings. +aliases: + - /v2.0/reference/flux/functions/strings/splitafter/ menu: v2_0_ref: name: strings.splitAfter parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/split - - /v2.0/reference/flux/functions/strings/splitaftern - - /v2.0/reference/flux/functions/strings/splitn + - /v2.0/reference/flux/stdlib/strings/split + - /v2.0/reference/flux/stdlib/strings/splitaftern + - /v2.0/reference/flux/stdlib/strings/splitn --- The `strings.splitAfter()` function splits a string after a specified separator and returns diff --git a/content/v2.0/reference/flux/functions/strings/splitaftern.md b/content/v2.0/reference/flux/stdlib/strings/splitaftern.md similarity index 81% rename from content/v2.0/reference/flux/functions/strings/splitaftern.md rename to content/v2.0/reference/flux/stdlib/strings/splitaftern.md index 213ee7814..f37feef5c 100644 --- a/content/v2.0/reference/flux/functions/strings/splitaftern.md +++ b/content/v2.0/reference/flux/stdlib/strings/splitaftern.md @@ -3,15 +3,17 @@ title: strings.splitAfterN() function description: > The strings.splitAfterN() function splits a string after a specified separator and returns an array of `i` substrings. +aliases: + - /v2.0/reference/flux/functions/strings/splitaftern/ menu: v2_0_ref: name: strings.splitAfterN parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/split - - /v2.0/reference/flux/functions/strings/splitafter - - /v2.0/reference/flux/functions/strings/splitn + - /v2.0/reference/flux/stdlib/strings/split + - /v2.0/reference/flux/stdlib/strings/splitafter + - /v2.0/reference/flux/stdlib/strings/splitn --- The `strings.splitAfterN()` function splits a string after a specified separator and returns diff --git a/content/v2.0/reference/flux/functions/strings/splitn.md b/content/v2.0/reference/flux/stdlib/strings/splitn.md similarity index 81% rename from content/v2.0/reference/flux/functions/strings/splitn.md rename to content/v2.0/reference/flux/stdlib/strings/splitn.md index 5575bb742..c3481beb6 100644 --- a/content/v2.0/reference/flux/functions/strings/splitn.md +++ b/content/v2.0/reference/flux/stdlib/strings/splitn.md @@ -3,15 +3,17 @@ title: strings.splitN() function description: > The strings.splitN() function splits a string on a specified separator and returns an array of `i` substrings. +aliases: + - /v2.0/reference/flux/functions/strings/splitn/ menu: v2_0_ref: name: strings.splitN parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/split - - /v2.0/reference/flux/functions/strings/splitafter - - /v2.0/reference/flux/functions/strings/splitaftern + - /v2.0/reference/flux/stdlib/strings/split + - /v2.0/reference/flux/stdlib/strings/splitafter + - /v2.0/reference/flux/stdlib/strings/splitaftern --- The `strings.splitN()` function splits a string on a specified separator and returns diff --git a/content/v2.0/reference/flux/functions/strings/strlen.md b/content/v2.0/reference/flux/stdlib/strings/strlen.md similarity index 93% rename from content/v2.0/reference/flux/functions/strings/strlen.md rename to content/v2.0/reference/flux/stdlib/strings/strlen.md index 7f07b6639..0e92561c9 100644 --- a/content/v2.0/reference/flux/functions/strings/strlen.md +++ b/content/v2.0/reference/flux/stdlib/strings/strlen.md @@ -3,6 +3,8 @@ title: strings.strlen() function description: > The strings.strlen() function returns the length of a string. String length is determined by the number of UTF code points a string contains. +aliases: + - /v2.0/reference/flux/functions/strings/strlen/ menu: v2_0_ref: name: strings.strlen diff --git a/content/v2.0/reference/flux/functions/strings/substring.md b/content/v2.0/reference/flux/stdlib/strings/substring.md similarity index 94% rename from content/v2.0/reference/flux/functions/strings/substring.md rename to content/v2.0/reference/flux/stdlib/strings/substring.md index 78d3f9cf6..64cc621fd 100644 --- a/content/v2.0/reference/flux/functions/strings/substring.md +++ b/content/v2.0/reference/flux/stdlib/strings/substring.md @@ -3,6 +3,8 @@ title: strings.substring() function description: > The strings.substring() function returns a substring based on `start` and `end` parameters. Indices are based on UTF code points. +aliases: + - /v2.0/reference/flux/functions/strings/substring/ menu: v2_0_ref: name: strings.substring diff --git a/content/v2.0/reference/flux/functions/strings/title.md b/content/v2.0/reference/flux/stdlib/strings/title.md similarity index 75% rename from content/v2.0/reference/flux/functions/strings/title.md rename to content/v2.0/reference/flux/stdlib/strings/title.md index 5122fb7ea..53357507b 100644 --- a/content/v2.0/reference/flux/functions/strings/title.md +++ b/content/v2.0/reference/flux/stdlib/strings/title.md @@ -1,15 +1,17 @@ --- title: strings.title() function description: The strings.title() function converts a string to title case. +aliases: + - /v2.0/reference/flux/functions/strings/title/ menu: v2_0_ref: name: strings.title parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/tolower - - /v2.0/reference/flux/functions/strings/totitle - - /v2.0/reference/flux/functions/strings/toupper + - /v2.0/reference/flux/stdlib/strings/tolower + - /v2.0/reference/flux/stdlib/strings/totitle + - /v2.0/reference/flux/stdlib/strings/toupper --- The `strings.title()` function converts a string to title case. diff --git a/content/v2.0/reference/flux/functions/strings/tolower.md b/content/v2.0/reference/flux/stdlib/strings/tolower.md similarity index 76% rename from content/v2.0/reference/flux/functions/strings/tolower.md rename to content/v2.0/reference/flux/stdlib/strings/tolower.md index e64ef7ac3..1a58ccdc8 100644 --- a/content/v2.0/reference/flux/functions/strings/tolower.md +++ b/content/v2.0/reference/flux/stdlib/strings/tolower.md @@ -1,15 +1,17 @@ --- title: strings.toLower() function description: The strings.toLower() function converts a string to lowercase. +aliases: + - /v2.0/reference/flux/functions/strings/tolower/ menu: v2_0_ref: name: strings.toLower parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/totitle - - /v2.0/reference/flux/functions/strings/toupper - - /v2.0/reference/flux/functions/strings/title + - /v2.0/reference/flux/stdlib/strings/totitle + - /v2.0/reference/flux/stdlib/strings/toupper + - /v2.0/reference/flux/stdlib/strings/title --- The `strings.toLower()` function converts a string to lowercase. diff --git a/content/v2.0/reference/flux/functions/strings/totitle.md b/content/v2.0/reference/flux/stdlib/strings/totitle.md similarity index 82% rename from content/v2.0/reference/flux/functions/strings/totitle.md rename to content/v2.0/reference/flux/stdlib/strings/totitle.md index 197aa72ba..733219824 100644 --- a/content/v2.0/reference/flux/functions/strings/totitle.md +++ b/content/v2.0/reference/flux/stdlib/strings/totitle.md @@ -1,15 +1,17 @@ --- title: strings.toTitle() function description: The strings.toTitle() function converts all characters in a string to title case. +aliases: + - /v2.0/reference/flux/functions/strings/totitle/ menu: v2_0_ref: name: strings.toTitle parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/toupper - - /v2.0/reference/flux/functions/strings/tolower - - /v2.0/reference/flux/functions/strings/title + - /v2.0/reference/flux/stdlib/strings/toupper + - /v2.0/reference/flux/stdlib/strings/tolower + - /v2.0/reference/flux/stdlib/strings/title --- The `strings.toTitle()` function converts all characters in a string to title case. diff --git a/content/v2.0/reference/flux/functions/strings/toupper.md b/content/v2.0/reference/flux/stdlib/strings/toupper.md similarity index 82% rename from content/v2.0/reference/flux/functions/strings/toupper.md rename to content/v2.0/reference/flux/stdlib/strings/toupper.md index 620cc2d19..948f520a1 100644 --- a/content/v2.0/reference/flux/functions/strings/toupper.md +++ b/content/v2.0/reference/flux/stdlib/strings/toupper.md @@ -1,15 +1,17 @@ --- title: strings.toUpper() function description: The strings.toUpper() function converts a string to uppercase. +aliases: + - /v2.0/reference/flux/functions/strings/toupper/ menu: v2_0_ref: name: strings.toUpper parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/totitle - - /v2.0/reference/flux/functions/strings/tolower - - /v2.0/reference/flux/functions/strings/title + - /v2.0/reference/flux/stdlib/strings/totitle + - /v2.0/reference/flux/stdlib/strings/tolower + - /v2.0/reference/flux/stdlib/strings/title --- The `strings.toUpper()` function converts a string to uppercase. diff --git a/content/v2.0/reference/flux/functions/strings/trim.md b/content/v2.0/reference/flux/stdlib/strings/trim.md similarity index 75% rename from content/v2.0/reference/flux/functions/strings/trim.md rename to content/v2.0/reference/flux/stdlib/strings/trim.md index 8c9a31ece..c9ba4fc0c 100644 --- a/content/v2.0/reference/flux/functions/strings/trim.md +++ b/content/v2.0/reference/flux/stdlib/strings/trim.md @@ -3,17 +3,19 @@ title: strings.trim() function description: > The strings.trim() function removes leading and trailing characters specified in the cutset from a string. +aliases: + - /v2.0/reference/flux/functions/strings/trim/ menu: v2_0_ref: name: strings.trim parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/trimleft - - /v2.0/reference/flux/functions/strings/trimright - - /v2.0/reference/flux/functions/strings/trimprefix - - /v2.0/reference/flux/functions/strings/trimsuffix - - /v2.0/reference/flux/functions/strings/trimspace + - /v2.0/reference/flux/stdlib/strings/trimleft + - /v2.0/reference/flux/stdlib/strings/trimright + - /v2.0/reference/flux/stdlib/strings/trimprefix + - /v2.0/reference/flux/stdlib/strings/trimsuffix + - /v2.0/reference/flux/stdlib/strings/trimspace --- The `strings.trim()` function removes leading and trailing characters specified diff --git a/content/v2.0/reference/flux/functions/strings/trimleft.md b/content/v2.0/reference/flux/stdlib/strings/trimleft.md similarity index 74% rename from content/v2.0/reference/flux/functions/strings/trimleft.md rename to content/v2.0/reference/flux/stdlib/strings/trimleft.md index 5cae24ad7..f4cf088bc 100644 --- a/content/v2.0/reference/flux/functions/strings/trimleft.md +++ b/content/v2.0/reference/flux/stdlib/strings/trimleft.md @@ -2,17 +2,19 @@ title: strings.trimLeft() function description: > The strings.trimLeft() function removes specified leading characters from a string. +aliases: + - /v2.0/reference/flux/functions/strings/trimleft/ menu: v2_0_ref: name: strings.trimLeft parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/trim - - /v2.0/reference/flux/functions/strings/trimright - - /v2.0/reference/flux/functions/strings/trimprefix - - /v2.0/reference/flux/functions/strings/trimsuffix - - /v2.0/reference/flux/functions/strings/trimspace + - /v2.0/reference/flux/stdlib/strings/trim + - /v2.0/reference/flux/stdlib/strings/trimright + - /v2.0/reference/flux/stdlib/strings/trimprefix + - /v2.0/reference/flux/stdlib/strings/trimsuffix + - /v2.0/reference/flux/stdlib/strings/trimspace --- The `strings.trimLeft()` function removes specified leading characters from a string. diff --git a/content/v2.0/reference/flux/functions/strings/trimprefix.md b/content/v2.0/reference/flux/stdlib/strings/trimprefix.md similarity index 74% rename from content/v2.0/reference/flux/functions/strings/trimprefix.md rename to content/v2.0/reference/flux/stdlib/strings/trimprefix.md index 4c5ee718b..441b64823 100644 --- a/content/v2.0/reference/flux/functions/strings/trimprefix.md +++ b/content/v2.0/reference/flux/stdlib/strings/trimprefix.md @@ -3,17 +3,19 @@ title: strings.trimPrefix() function description: > The `strings.trimPrefix()` function removes a prefix from a string. Strings that do not start with the prefix are returned unchanged. +aliases: + - /v2.0/reference/flux/functions/strings/trimprefix/ menu: v2_0_ref: name: strings.trimPrefix parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/trim - - /v2.0/reference/flux/functions/strings/trimleft - - /v2.0/reference/flux/functions/strings/trimright - - /v2.0/reference/flux/functions/strings/trimsuffix - - /v2.0/reference/flux/functions/strings/trimspace + - /v2.0/reference/flux/stdlib/strings/trim + - /v2.0/reference/flux/stdlib/strings/trimleft + - /v2.0/reference/flux/stdlib/strings/trimright + - /v2.0/reference/flux/stdlib/strings/trimsuffix + - /v2.0/reference/flux/stdlib/strings/trimspace --- The `strings.trimPrefix()` function removes a prefix from a string. diff --git a/content/v2.0/reference/flux/functions/strings/trimright.md b/content/v2.0/reference/flux/stdlib/strings/trimright.md similarity index 75% rename from content/v2.0/reference/flux/functions/strings/trimright.md rename to content/v2.0/reference/flux/stdlib/strings/trimright.md index c48d02e8d..35419498d 100644 --- a/content/v2.0/reference/flux/functions/strings/trimright.md +++ b/content/v2.0/reference/flux/stdlib/strings/trimright.md @@ -2,17 +2,19 @@ title: strings.trimRight() function description: > The strings.trimRight() function removes trailing characters specified in the cutset from a string. +aliases: + - /v2.0/reference/flux/functions/strings/trimright/ menu: v2_0_ref: name: strings.trimRight parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/trim - - /v2.0/reference/flux/functions/strings/trimleft - - /v2.0/reference/flux/functions/strings/trimprefix - - /v2.0/reference/flux/functions/strings/trimsuffix - - /v2.0/reference/flux/functions/strings/trimspace + - /v2.0/reference/flux/stdlib/strings/trim + - /v2.0/reference/flux/stdlib/strings/trimleft + - /v2.0/reference/flux/stdlib/strings/trimprefix + - /v2.0/reference/flux/stdlib/strings/trimsuffix + - /v2.0/reference/flux/stdlib/strings/trimspace --- The `strings.trimRight()` function removes trailing characters specified in the diff --git a/content/v2.0/reference/flux/functions/strings/trimspace.md b/content/v2.0/reference/flux/stdlib/strings/trimspace.md similarity index 69% rename from content/v2.0/reference/flux/functions/strings/trimspace.md rename to content/v2.0/reference/flux/stdlib/strings/trimspace.md index 03b13c638..0645b8b71 100644 --- a/content/v2.0/reference/flux/functions/strings/trimspace.md +++ b/content/v2.0/reference/flux/stdlib/strings/trimspace.md @@ -1,17 +1,19 @@ --- title: strings.trimSpace() function description: The strings.trimSpace() function removes leading and trailing spaces from a string. +aliases: + - /v2.0/reference/flux/functions/strings/trimspace/ menu: v2_0_ref: name: strings.trimSpace parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/trim - - /v2.0/reference/flux/functions/strings/trimleft - - /v2.0/reference/flux/functions/strings/trimright - - /v2.0/reference/flux/functions/strings/trimprefix - - /v2.0/reference/flux/functions/strings/trimsuffix + - /v2.0/reference/flux/stdlib/strings/trim + - /v2.0/reference/flux/stdlib/strings/trimleft + - /v2.0/reference/flux/stdlib/strings/trimright + - /v2.0/reference/flux/stdlib/strings/trimprefix + - /v2.0/reference/flux/stdlib/strings/trimsuffix --- The `strings.trimSpace()` function removes leading and trailing spaces from a string. diff --git a/content/v2.0/reference/flux/functions/strings/trimsuffix.md b/content/v2.0/reference/flux/stdlib/strings/trimsuffix.md similarity index 74% rename from content/v2.0/reference/flux/functions/strings/trimsuffix.md rename to content/v2.0/reference/flux/stdlib/strings/trimsuffix.md index a486d50ba..7d6d12f79 100644 --- a/content/v2.0/reference/flux/functions/strings/trimsuffix.md +++ b/content/v2.0/reference/flux/stdlib/strings/trimsuffix.md @@ -3,17 +3,19 @@ title: strings.trimSuffix() function description: > The `strings.trimSuffix()` function removes a suffix from a string. Strings that do not end with the suffix are returned unchanged. +aliases: + - /v2.0/reference/flux/functions/strings/trimsuffix/ menu: v2_0_ref: name: strings.trimSuffix parent: Strings weight: 301 related: - - /v2.0/reference/flux/functions/strings/trim - - /v2.0/reference/flux/functions/strings/trimleft - - /v2.0/reference/flux/functions/strings/trimright - - /v2.0/reference/flux/functions/strings/trimprefix - - /v2.0/reference/flux/functions/strings/trimspace + - /v2.0/reference/flux/stdlib/strings/trim + - /v2.0/reference/flux/stdlib/strings/trimleft + - /v2.0/reference/flux/stdlib/strings/trimright + - /v2.0/reference/flux/stdlib/strings/trimprefix + - /v2.0/reference/flux/stdlib/strings/trimspace --- The `strings.trimSuffix()` function removes a suffix from a string. diff --git a/content/v2.0/reference/flux/functions/system/_index.md b/content/v2.0/reference/flux/stdlib/system/_index.md similarity index 84% rename from content/v2.0/reference/flux/functions/system/_index.md rename to content/v2.0/reference/flux/stdlib/system/_index.md index 2fd7c4527..8bd1d6c9f 100644 --- a/content/v2.0/reference/flux/functions/system/_index.md +++ b/content/v2.0/reference/flux/stdlib/system/_index.md @@ -4,10 +4,12 @@ list_title: System package description: > The Flux system package provides functions for reading values from the system. Import the `system` package. +aliases: + - /v2.0/reference/flux/functions/system/ menu: v2_0_ref: name: System - parent: Flux packages and functions + parent: Flux standard library weight: 202 v2.0/tags: [system, functions, package] --- diff --git a/content/v2.0/reference/flux/functions/system/time.md b/content/v2.0/reference/flux/stdlib/system/time.md similarity index 92% rename from content/v2.0/reference/flux/functions/system/time.md rename to content/v2.0/reference/flux/stdlib/system/time.md index 59a768a92..9d29a2ff9 100644 --- a/content/v2.0/reference/flux/functions/system/time.md +++ b/content/v2.0/reference/flux/stdlib/system/time.md @@ -4,6 +4,7 @@ description: The `system.time()` function returns the current system time. aliases: - /v2.0/reference/flux/functions/misc/systemtime - /v2.0/reference/flux/functions/built-in/misc/systemtime + - /v2.0/reference/flux/functions/system/time/ menu: v2_0_ref: name: system.time diff --git a/content/v2.0/reference/flux/functions/testing/_index.md b/content/v2.0/reference/flux/stdlib/testing/_index.md similarity index 85% rename from content/v2.0/reference/flux/functions/testing/_index.md rename to content/v2.0/reference/flux/stdlib/testing/_index.md index 284c9b070..e74845d88 100644 --- a/content/v2.0/reference/flux/functions/testing/_index.md +++ b/content/v2.0/reference/flux/stdlib/testing/_index.md @@ -4,10 +4,12 @@ list_title: Testing package description: > The Flux testing package provides functions that test piped-forward data in specific ways. Import the `testing` package. +aliases: + - /v2.0/reference/flux/functions/testing/ menu: v2_0_ref: name: Testing - parent: Flux packages and functions + parent: Flux standard library weight: 202 v2.0/tags: [testing, functions, package] --- diff --git a/content/v2.0/reference/flux/functions/testing/assertempty.md b/content/v2.0/reference/flux/stdlib/testing/assertempty.md similarity index 91% rename from content/v2.0/reference/flux/functions/testing/assertempty.md rename to content/v2.0/reference/flux/stdlib/testing/assertempty.md index 33b7a30b1..f5d56d680 100644 --- a/content/v2.0/reference/flux/functions/testing/assertempty.md +++ b/content/v2.0/reference/flux/stdlib/testing/assertempty.md @@ -1,6 +1,8 @@ --- title: testing.assertEmpty() function description: The testing.assertEmpty() function tests if an input stream is empty. +aliases: + - /v2.0/reference/flux/functions/testing/assertempty/ menu: v2_0_ref: name: testing.assertEmpty @@ -24,7 +26,7 @@ _The `testing.assertEmpty()` function can be used to perform in-line tests in a ## Examples #### Check if there is a difference between streams -This example uses the [`testing.diff()` function](/v2.0/reference/flux/functions/testing/diff) +This example uses the [`testing.diff()` function](/v2.0/reference/flux/stdlib/testing/diff) which outputs the diff for the two streams. The `.testing.assertEmpty()` function checks to see if the diff is empty. diff --git a/content/v2.0/reference/flux/functions/testing/assertequals.md b/content/v2.0/reference/flux/stdlib/testing/assertequals.md similarity index 96% rename from content/v2.0/reference/flux/functions/testing/assertequals.md rename to content/v2.0/reference/flux/stdlib/testing/assertequals.md index 0c6fb733e..8fdee95ee 100644 --- a/content/v2.0/reference/flux/functions/testing/assertequals.md +++ b/content/v2.0/reference/flux/stdlib/testing/assertequals.md @@ -3,6 +3,7 @@ title: testing.assertEquals() function description: The testing.assertEquals() function tests whether two streams have identical data. aliases: - /v2.0/reference/flux/functions/tests/assertequals + - /v2.0/reference/flux/functions/testing/assertequals/ menu: v2_0_ref: name: testing.assertEquals diff --git a/content/v2.0/reference/flux/functions/testing/diff.md b/content/v2.0/reference/flux/stdlib/testing/diff.md similarity index 96% rename from content/v2.0/reference/flux/functions/testing/diff.md rename to content/v2.0/reference/flux/stdlib/testing/diff.md index db2e0af5f..8e3dd1e37 100644 --- a/content/v2.0/reference/flux/functions/testing/diff.md +++ b/content/v2.0/reference/flux/stdlib/testing/diff.md @@ -1,6 +1,8 @@ --- title: testing.diff() function description: The testing.diff() function produces a diff between two streams. +aliases: + - /v2.0/reference/flux/functions/testing/diff/ menu: v2_0_ref: name: testing.diff diff --git a/content/v2.0/reference/glossary.md b/content/v2.0/reference/glossary.md index 1111627d2..9f3fd3243 100644 --- a/content/v2.0/reference/glossary.md +++ b/content/v2.0/reference/glossary.md @@ -30,7 +30,7 @@ Related entries: [input plugin](#input-plugin), [output plugin](#output-plugin), ### aggregate A function that returns an aggregated value across a set of points. -For a list of available aggregation functions, see [Flux built-in aggregate functions](/v2.0/reference/flux/functions/built-in/transformations/aggregates/). +For a list of available aggregation functions, see [Flux built-in aggregate functions](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/). Related entries: [function](#function), [selector](#selector), [transformation](#transformation) @@ -336,7 +336,7 @@ A lightweight scripting language for querying databases (like InfluxDB) and work ### function -Flux functions aggregate, select, and transform time series data. For a complete list of Flux functions, see [Flux functions](/v2.0/reference/flux/functions/all-functions/). +Flux functions aggregate, select, and transform time series data. For a complete list of Flux functions, see [Flux functions](/v2.0/reference/flux/stdlib/all-functions/). Related entries: [aggregation](#aggregation), [selector](#selector), [transformation](#transformation) @@ -711,7 +711,7 @@ InfluxDB scrapes data from specified targets at regular intervals and writes the ### selector A Flux function that returns a single point from the range of specified points. -See [Flux built-in selector functions](/v2.0/reference/flux/functions/built-in/transformations/selectors/) for a complete list of available built-in selector functions. +See [Flux built-in selector functions](/v2.0/reference/flux/stdlib/built-in/transformations/selectors/) for a complete list of available built-in selector functions. Related entries: [aggregation](#aggregation), [function](#function), [transformation](#transformation) @@ -755,7 +755,7 @@ The series cardinality would remain unchanged at 6, as `firstname` is already sc | cliff@influxdata.com| start | clifford | | cliff@influxdata.com| finish | clifford | - + Related entries: [field key](#field-key),[measurement](#measurement), [tag key](#tag-key), [tag set](#tag-set) @@ -786,7 +786,7 @@ Related entries: [series](#series), [shard duration](#shard-duration), [shard gr The shard duration determines how much time each shard group spans. The specific interval is determined by the `SHARD DURATION` of the retention policy. -