From af4b99b188a14a05da26921ccf6a68f86552b784 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Tue, 10 Sep 2019 12:38:38 -0600 Subject: [PATCH] updated links to flux functions --- content/v2.0/monitor-alert/checks/create.md | 2 +- .../common-tasks/downsample-data.md | 4 +-- content/v2.0/process-data/get-started.md | 8 ++--- content/v2.0/query-data/get-started/_index.md | 2 +- .../query-data/get-started/query-influxdb.md | 12 ++++---- .../query-data/get-started/transform-data.md | 18 +++++------ .../query-data/guides/conditional-logic.md | 12 ++++---- .../guides/custom-functions/_index.md | 6 ++-- .../custom-functions/custom-aggregate.md | 12 ++++---- content/v2.0/query-data/guides/group-data.md | 2 +- content/v2.0/query-data/guides/histograms.md | 6 ++-- content/v2.0/query-data/guides/join.md | 4 +-- .../guides/mathematic-operations.md | 6 ++-- content/v2.0/query-data/guides/sort-limit.md | 8 ++--- content/v2.0/query-data/guides/sql.md | 4 +-- .../query-data/guides/window-aggregate.md | 10 +++---- content/v2.0/reference/annotated-csv.md | 2 +- content/v2.0/reference/flux/_index.md | 4 +-- .../flux/language/string-interpolation.md | 2 +- .../flux/stdlib/built-in/misc/intervals.md | 2 +- .../flux/stdlib/built-in/misc/linearbins.md | 2 +- .../stdlib/built-in/misc/logarithmicbins.md | 2 +- .../transformations/aggregates/_index.md | 14 ++++----- .../aggregates/aggregatewindow.md | 2 +- .../transformations/aggregates/doubleema.md | 12 ++++---- .../aggregates/exponentialmovingaverage.md | 8 ++--- .../transformations/aggregates/holtwinters.md | 8 ++--- .../transformations/aggregates/kaufmansama.md | 2 +- .../transformations/aggregates/kaufmanser.md | 2 +- .../transformations/aggregates/median.md | 6 ++-- .../aggregates/movingaverage.md | 8 ++--- .../aggregates/relativestrengthindex.md | 6 ++-- .../aggregates/timedmovingaverage.md | 8 ++--- .../transformations/aggregates/tripleema.md | 14 ++++----- .../aggregates/tripleexponentialderivative.md | 12 ++++---- .../built-in/transformations/histogram.md | 4 +-- .../stdlib/built-in/transformations/keep.md | 2 +- .../stdlib/built-in/transformations/limit.md | 2 +- .../transformations/selectors/_index.md | 4 +-- .../transformations/stream-table/tablefind.md | 4 +-- .../transformations/truncatetimecolumn.md | 2 +- .../type-conversions/tobool.md | 4 +-- .../type-conversions/toduration.md | 4 +-- .../type-conversions/tofloat.md | 4 +-- .../transformations/type-conversions/toint.md | 4 +-- .../type-conversions/tostring.md | 4 +-- .../type-conversions/totime.md | 4 +-- .../type-conversions/touint.md | 4 +-- .../reference/flux/stdlib/http/endpoint.md | 2 +- .../flux/stdlib/influxdb-v1/fieldsascols.md | 2 +- .../flux/stdlib/influxdb-v1/measurements.md | 2 +- .../stdlib/influxdb-v1/measurementtagkeys.md | 2 +- .../influxdb-v1/measurementtagvalues.md | 2 +- .../flux/stdlib/influxdb-v1/tagkeys.md | 12 ++++---- .../flux/stdlib/influxdb-v1/tagvalues.md | 12 ++++---- .../v2.0/reference/flux/stdlib/math/ldexp.md | 2 +- .../flux/stdlib/pagerduty/endpoint.md | 2 +- .../flux/stdlib/pagerduty/sendevent.md | 4 +-- .../flux/stdlib/regexp/findstring.md | 2 +- .../flux/stdlib/regexp/findstringindex.md | 2 +- .../reference/flux/stdlib/regexp/getstring.md | 2 +- .../reference/flux/stdlib/slack/endpoint.md | 2 +- .../flux/stdlib/strings/containsany.md | 2 +- .../flux/stdlib/strings/containsstr.md | 2 +- .../flux/stdlib/strings/hasprefix.md | 2 +- .../flux/stdlib/strings/hassuffix.md | 2 +- .../flux/stdlib/strings/index-func.md | 6 ++-- .../reference/flux/stdlib/strings/indexany.md | 6 ++-- .../reference/flux/stdlib/strings/isdigit.md | 2 +- .../reference/flux/stdlib/strings/isletter.md | 2 +- .../reference/flux/stdlib/strings/islower.md | 5 ++-- .../reference/flux/stdlib/strings/isupper.md | 2 +- .../flux/stdlib/strings/lastindex.md | 6 ++-- .../flux/stdlib/strings/lastindexany.md | 6 ++-- .../reference/flux/stdlib/strings/replace.md | 2 +- .../flux/stdlib/strings/replaceall.md | 2 +- .../reference/flux/stdlib/strings/split.md | 6 ++-- .../flux/stdlib/strings/splitafter.md | 6 ++-- .../flux/stdlib/strings/splitaftern.md | 6 ++-- .../reference/flux/stdlib/strings/splitn.md | 6 ++-- .../reference/flux/stdlib/strings/title.md | 6 ++-- .../reference/flux/stdlib/strings/tolower.md | 6 ++-- .../reference/flux/stdlib/strings/totitle.md | 6 ++-- .../reference/flux/stdlib/strings/toupper.md | 6 ++-- .../reference/flux/stdlib/strings/trim.md | 10 +++---- .../reference/flux/stdlib/strings/trimleft.md | 10 +++---- .../flux/stdlib/strings/trimprefix.md | 10 +++---- .../flux/stdlib/strings/trimright.md | 10 +++---- .../flux/stdlib/strings/trimspace.md | 10 +++---- .../flux/stdlib/strings/trimsuffix.md | 10 +++---- .../flux/stdlib/testing/assertempty.md | 5 ++-- content/v2.0/reference/glossary.md | 6 ++-- content/v2.0/reference/release-notes/flux.md | 6 ++-- .../v2.0/visualize-data/variables/_index.md | 6 ++-- .../variables/common-variables.md | 30 +++++++++---------- .../variables/variable-types.md | 6 ++-- 96 files changed, 271 insertions(+), 271 deletions(-) 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/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/built-in/misc/intervals.md b/content/v2.0/reference/flux/stdlib/built-in/misc/intervals.md index 2a05e6179..3ee4a7f6c 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/misc/intervals.md +++ b/content/v2.0/reference/flux/stdlib/built-in/misc/intervals.md @@ -21,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/stdlib/built-in/misc/linearbins.md b/content/v2.0/reference/flux/stdlib/built-in/misc/linearbins.md index 10d031879..658ec2d5a 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/misc/linearbins.md +++ b/content/v2.0/reference/flux/stdlib/built-in/misc/linearbins.md @@ -13,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/stdlib/built-in/misc/logarithmicbins.md b/content/v2.0/reference/flux/stdlib/built-in/misc/logarithmicbins.md index 9604a6008..5a6c2d59e 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/misc/logarithmicbins.md +++ b/content/v2.0/reference/flux/stdlib/built-in/misc/logarithmicbins.md @@ -13,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/stdlib/built-in/transformations/aggregates/_index.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/_index.md index 4b0caccc6..9fa9aea45 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/_index.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/_index.md @@ -30,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. @@ -44,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/transformations/selectors/highestaverage) +- [highestCurrent](/v2.0/reference/flux/stdlib/transformations/selectors/highestcurrent) +- [highestMax](/v2.0/reference/flux/stdlib/transformations/selectors/highestmax) +- [lowestAverage](/v2.0/reference/flux/stdlib/transformations/selectors/lowestaverage) +- [lowestCurrent](/v2.0/reference/flux/stdlib/transformations/selectors/lowestcurrent) +- [lowestMin](/v2.0/reference/flux/stdlib/transformations/selectors/lowestmin) diff --git a/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/aggregatewindow.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/aggregatewindow.md index 9901cf15e..ce15d9685 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/aggregatewindow.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/aggregatewindow.md @@ -49,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/stdlib/built-in/transformations/aggregates/doubleema.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/doubleema.md index ee230e4a2..33661396e 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/doubleema.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/doubleema.md @@ -12,16 +12,16 @@ menu: 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/ + - /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/v1.7/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_ @@ -35,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/stdlib/built-in/transformations/aggregates/exponentialmovingaverage.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/exponentialmovingaverage.md index 4a57a1e55..c8394a2a1 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/exponentialmovingaverage.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/exponentialmovingaverage.md @@ -11,10 +11,10 @@ menu: 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/ + - /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/v1.7/query_language/functions/#exponential-moving-average, InfluxQL EXPONENTIAL_MOVING_AVERAGE() --- diff --git a/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/holtwinters.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/holtwinters.md index 632a0eb61..2fd9bc218 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/holtwinters.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/holtwinters.md @@ -52,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/stdlib/built-in/transformations/aggregates/kaufmansama.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/kaufmansama.md index eb4bb39f7..d5c937d97 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/kaufmansama.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/kaufmansama.md @@ -11,7 +11,7 @@ menu: parent: built-in-aggregates weight: 501 related: - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/kaufmanser/ + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/kaufmanser/ - https://docs.influxdata.com/influxdb/v1.7/query_language/functions/#kaufmans-adaptive-moving-average, InfluxQL KAUFMANS_ADAPTIVE_MOVING_AVERAGE() --- diff --git a/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/kaufmanser.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/kaufmanser.md index 6a54686ca..f135b1fc2 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/kaufmanser.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/kaufmanser.md @@ -11,7 +11,7 @@ menu: parent: built-in-aggregates weight: 501 related: - - /v2.0/reference/flux/functions/built-in/transformations/aggregates/kaufmansama/ + - /v2.0/reference/flux/stdlib/built-in/transformations/aggregates/kaufmansama/ - https://docs.influxdata.com/influxdb/v1.7/query_language/functions/#kaufmans-efficiency-ratio, InfluxQL KAUFMANS_EFFICIENCY_RATIO() --- diff --git a/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/median.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/median.md index af65f83c0..271ca394f 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/median.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/median.md @@ -13,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. @@ -37,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/stdlib/built-in/transformations/aggregates/movingaverage.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/movingaverage.md index 5f87f19d5..7daeee63c 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/movingaverage.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/movingaverage.md @@ -10,10 +10,10 @@ menu: 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/stdlib/built-in/transformations/aggregates/relativestrengthindex.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/relativestrengthindex.md index 4e3bc1fb1..58f3e283d 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/relativestrengthindex.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/relativestrengthindex.md @@ -11,9 +11,9 @@ menu: 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/ + - /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/v1.7/query_language/functions/#relative-strength-index, InfluxQL RELATIVE_STRENGTH_INDEX() --- diff --git a/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/timedmovingaverage.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/timedmovingaverage.md index be44b38dc..2d1b0be01 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/timedmovingaverage.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/timedmovingaverage.md @@ -11,10 +11,10 @@ menu: 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/stdlib/built-in/transformations/aggregates/tripleema.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/tripleema.md index 70d71c0c4..aa55e2527 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/tripleema.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/tripleema.md @@ -12,18 +12,18 @@ menu: 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/ + - /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/v1.7/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_ @@ -38,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/stdlib/built-in/transformations/aggregates/tripleexponentialderivative.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/tripleexponentialderivative.md index 4ebaa982d..15380d849 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/tripleexponentialderivative.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/tripleexponentialderivative.md @@ -12,11 +12,11 @@ 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/ + - /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/v1.7/query_language/functions/#triple-exponential-derivative, InfluxQL TRIPLE_EXPONENTIAL_DERIVATIVE() --- @@ -48,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/stdlib/built-in/transformations/histogram.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/histogram.md index bc98d44ed..a4e04bb96 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/histogram.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/histogram.md @@ -57,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/stdlib/built-in/transformations/keep.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/keep.md index c54f3a62b..6c4f0dada 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/keep.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/keep.md @@ -13,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/stdlib/built-in/transformations/limit.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/limit.md index b7036f282..dd7915862 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/limit.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/limit.md @@ -10,7 +10,7 @@ menu: 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/stdlib/built-in/transformations/selectors/_index.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/_index.md index 2739e6036..62cbf6955 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/_index.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/selectors/_index.md @@ -26,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/stdlib/built-in/transformations/stream-table/tablefind.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/stream-table/tablefind.md index 69b89798d..8d7fc25f4 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/stream-table/tablefind.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/stream-table/tablefind.md @@ -54,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/stdlib/built-in/transformations/truncatetimecolumn.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/truncatetimecolumn.md index 6813d0730..6b0a0b053 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/truncatetimecolumn.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/truncatetimecolumn.md @@ -10,7 +10,7 @@ menu: 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/stdlib/built-in/transformations/type-conversions/tobool.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/tobool.md index 41a97df96..2cad528d3 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/tobool.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/tobool.md @@ -44,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/stdlib/built-in/transformations/type-conversions/toduration.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/toduration.md index 78967cf1c..6ffa8ad51 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/toduration.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/toduration.md @@ -48,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/stdlib/built-in/transformations/type-conversions/tofloat.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/tofloat.md index f5f233414..cabaf654b 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/tofloat.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/tofloat.md @@ -44,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/stdlib/built-in/transformations/type-conversions/toint.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/toint.md index 39a14ed37..4053d716b 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/toint.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/toint.md @@ -44,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/stdlib/built-in/transformations/type-conversions/tostring.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/tostring.md index c9256b8f9..99645fa1e 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/tostring.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/tostring.md @@ -44,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/stdlib/built-in/transformations/type-conversions/totime.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/totime.md index 5b6b2a6c8..ea36402ee 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/totime.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/totime.md @@ -44,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/stdlib/built-in/transformations/type-conversions/touint.md b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/touint.md index d50ac5a7e..d113d28a1 100644 --- a/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/touint.md +++ b/content/v2.0/reference/flux/stdlib/built-in/transformations/type-conversions/touint.md @@ -44,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/stdlib/http/endpoint.md b/content/v2.0/reference/flux/stdlib/http/endpoint.md index 7dd176e99..054f6b54b 100644 --- a/content/v2.0/reference/flux/stdlib/http/endpoint.md +++ b/content/v2.0/reference/flux/stdlib/http/endpoint.md @@ -47,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/stdlib/influxdb-v1/fieldsascols.md b/content/v2.0/reference/flux/stdlib/influxdb-v1/fieldsascols.md index 93a94f978..a1596f8a6 100644 --- a/content/v2.0/reference/flux/stdlib/influxdb-v1/fieldsascols.md +++ b/content/v2.0/reference/flux/stdlib/influxdb-v1/fieldsascols.md @@ -46,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/stdlib/influxdb-v1/measurements.md b/content/v2.0/reference/flux/stdlib/influxdb-v1/measurements.md index 9034836ee..8ffd2b9bb 100644 --- a/content/v2.0/reference/flux/stdlib/influxdb-v1/measurements.md +++ b/content/v2.0/reference/flux/stdlib/influxdb-v1/measurements.md @@ -34,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/stdlib/influxdb-v1/measurementtagkeys.md b/content/v2.0/reference/flux/stdlib/influxdb-v1/measurementtagkeys.md index 84b1b74f2..460908f39 100644 --- a/content/v2.0/reference/flux/stdlib/influxdb-v1/measurementtagkeys.md +++ b/content/v2.0/reference/flux/stdlib/influxdb-v1/measurementtagkeys.md @@ -44,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/stdlib/influxdb-v1/measurementtagvalues.md b/content/v2.0/reference/flux/stdlib/influxdb-v1/measurementtagvalues.md index 90643cd64..89a2281c7 100644 --- a/content/v2.0/reference/flux/stdlib/influxdb-v1/measurementtagvalues.md +++ b/content/v2.0/reference/flux/stdlib/influxdb-v1/measurementtagvalues.md @@ -55,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/stdlib/influxdb-v1/tagkeys.md b/content/v2.0/reference/flux/stdlib/influxdb-v1/tagkeys.md index 154a261dc..63d8a370d 100644 --- a/content/v2.0/reference/flux/stdlib/influxdb-v1/tagkeys.md +++ b/content/v2.0/reference/flux/stdlib/influxdb-v1/tagkeys.md @@ -67,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/stdlib/influxdb-v1/tagvalues.md b/content/v2.0/reference/flux/stdlib/influxdb-v1/tagvalues.md index 47525e8bd..51266ccce 100644 --- a/content/v2.0/reference/flux/stdlib/influxdb-v1/tagvalues.md +++ b/content/v2.0/reference/flux/stdlib/influxdb-v1/tagvalues.md @@ -75,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/stdlib/math/ldexp.md b/content/v2.0/reference/flux/stdlib/math/ldexp.md index 207ef02dc..9213320a7 100644 --- a/content/v2.0/reference/flux/stdlib/math/ldexp.md +++ b/content/v2.0/reference/flux/stdlib/math/ldexp.md @@ -10,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/stdlib/pagerduty/endpoint.md b/content/v2.0/reference/flux/stdlib/pagerduty/endpoint.md index 3fa4fde63..e42bd1e7a 100644 --- a/content/v2.0/reference/flux/stdlib/pagerduty/endpoint.md +++ b/content/v2.0/reference/flux/stdlib/pagerduty/endpoint.md @@ -56,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/stdlib/pagerduty/sendevent.md b/content/v2.0/reference/flux/stdlib/pagerduty/sendevent.md index 46ee68120..51bf4abaf 100644 --- a/content/v2.0/reference/flux/stdlib/pagerduty/sendevent.md +++ b/content/v2.0/reference/flux/stdlib/pagerduty/sendevent.md @@ -63,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/stdlib/regexp/findstring.md b/content/v2.0/reference/flux/stdlib/regexp/findstring.md index 979d69a33..d26a1a688 100644 --- a/content/v2.0/reference/flux/stdlib/regexp/findstring.md +++ b/content/v2.0/reference/flux/stdlib/regexp/findstring.md @@ -9,7 +9,7 @@ menu: 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/stdlib/regexp/findstringindex.md b/content/v2.0/reference/flux/stdlib/regexp/findstringindex.md index bc9ee1ddb..80e4d4ff1 100644 --- a/content/v2.0/reference/flux/stdlib/regexp/findstringindex.md +++ b/content/v2.0/reference/flux/stdlib/regexp/findstringindex.md @@ -11,7 +11,7 @@ menu: 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/stdlib/regexp/getstring.md b/content/v2.0/reference/flux/stdlib/regexp/getstring.md index 34dbaf2b0..7c3c39992 100644 --- a/content/v2.0/reference/flux/stdlib/regexp/getstring.md +++ b/content/v2.0/reference/flux/stdlib/regexp/getstring.md @@ -9,7 +9,7 @@ menu: 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/stdlib/slack/endpoint.md b/content/v2.0/reference/flux/stdlib/slack/endpoint.md index ebfa28e0b..22b99da8e 100644 --- a/content/v2.0/reference/flux/stdlib/slack/endpoint.md +++ b/content/v2.0/reference/flux/stdlib/slack/endpoint.md @@ -69,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/stdlib/strings/containsany.md b/content/v2.0/reference/flux/stdlib/strings/containsany.md index 0630f688d..1398d51e0 100644 --- a/content/v2.0/reference/flux/stdlib/strings/containsany.md +++ b/content/v2.0/reference/flux/stdlib/strings/containsany.md @@ -11,7 +11,7 @@ menu: 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/stdlib/strings/containsstr.md b/content/v2.0/reference/flux/stdlib/strings/containsstr.md index 82cef5e8e..fded2ed3a 100644 --- a/content/v2.0/reference/flux/stdlib/strings/containsstr.md +++ b/content/v2.0/reference/flux/stdlib/strings/containsstr.md @@ -9,7 +9,7 @@ menu: 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/stdlib/strings/hasprefix.md b/content/v2.0/reference/flux/stdlib/strings/hasprefix.md index 143ddf162..200aca3cf 100644 --- a/content/v2.0/reference/flux/stdlib/strings/hasprefix.md +++ b/content/v2.0/reference/flux/stdlib/strings/hasprefix.md @@ -9,7 +9,7 @@ menu: 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/stdlib/strings/hassuffix.md b/content/v2.0/reference/flux/stdlib/strings/hassuffix.md index 6ca5b6cc9..dfc66563a 100644 --- a/content/v2.0/reference/flux/stdlib/strings/hassuffix.md +++ b/content/v2.0/reference/flux/stdlib/strings/hassuffix.md @@ -9,7 +9,7 @@ menu: 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/stdlib/strings/index-func.md b/content/v2.0/reference/flux/stdlib/strings/index-func.md index 45985e168..7e7119871 100644 --- a/content/v2.0/reference/flux/stdlib/strings/index-func.md +++ b/content/v2.0/reference/flux/stdlib/strings/index-func.md @@ -11,9 +11,9 @@ menu: 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/stdlib/strings/indexany.md b/content/v2.0/reference/flux/stdlib/strings/indexany.md index 7a4931d58..e72b922fa 100644 --- a/content/v2.0/reference/flux/stdlib/strings/indexany.md +++ b/content/v2.0/reference/flux/stdlib/strings/indexany.md @@ -10,9 +10,9 @@ menu: 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/stdlib/strings/isdigit.md b/content/v2.0/reference/flux/stdlib/strings/isdigit.md index 152b189b8..1fb0b4c63 100644 --- a/content/v2.0/reference/flux/stdlib/strings/isdigit.md +++ b/content/v2.0/reference/flux/stdlib/strings/isdigit.md @@ -9,7 +9,7 @@ menu: 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/stdlib/strings/isletter.md b/content/v2.0/reference/flux/stdlib/strings/isletter.md index 92d04ec3c..1ba665e0c 100644 --- a/content/v2.0/reference/flux/stdlib/strings/isletter.md +++ b/content/v2.0/reference/flux/stdlib/strings/isletter.md @@ -9,7 +9,7 @@ menu: 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/stdlib/strings/islower.md b/content/v2.0/reference/flux/stdlib/strings/islower.md index 28591137f..1f06c7ff8 100644 --- a/content/v2.0/reference/flux/stdlib/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. @@ -38,4 +40,3 @@ import "strings" data |> filter(fn: (r) => strings.isLower(v: r.host)) ``` -- /v2.0/reference/flux/functions/strings/islower/ diff --git a/content/v2.0/reference/flux/stdlib/strings/isupper.md b/content/v2.0/reference/flux/stdlib/strings/isupper.md index 4335052cd..389faecf9 100644 --- a/content/v2.0/reference/flux/stdlib/strings/isupper.md +++ b/content/v2.0/reference/flux/stdlib/strings/isupper.md @@ -9,7 +9,7 @@ menu: 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/stdlib/strings/lastindex.md b/content/v2.0/reference/flux/stdlib/strings/lastindex.md index 46b460c30..de47b378c 100644 --- a/content/v2.0/reference/flux/stdlib/strings/lastindex.md +++ b/content/v2.0/reference/flux/stdlib/strings/lastindex.md @@ -11,9 +11,9 @@ menu: 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/stdlib/strings/lastindexany.md b/content/v2.0/reference/flux/stdlib/strings/lastindexany.md index e1b0c804e..3f93e97a6 100644 --- a/content/v2.0/reference/flux/stdlib/strings/lastindexany.md +++ b/content/v2.0/reference/flux/stdlib/strings/lastindexany.md @@ -9,9 +9,9 @@ menu: 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/stdlib/strings/replace.md b/content/v2.0/reference/flux/stdlib/strings/replace.md index 89d372af2..caa1bcbd1 100644 --- a/content/v2.0/reference/flux/stdlib/strings/replace.md +++ b/content/v2.0/reference/flux/stdlib/strings/replace.md @@ -11,7 +11,7 @@ menu: 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/stdlib/strings/replaceall.md b/content/v2.0/reference/flux/stdlib/strings/replaceall.md index 95eb56f92..e129c6405 100644 --- a/content/v2.0/reference/flux/stdlib/strings/replaceall.md +++ b/content/v2.0/reference/flux/stdlib/strings/replaceall.md @@ -11,7 +11,7 @@ menu: 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/stdlib/strings/split.md b/content/v2.0/reference/flux/stdlib/strings/split.md index c6096c0cd..aeea22df0 100644 --- a/content/v2.0/reference/flux/stdlib/strings/split.md +++ b/content/v2.0/reference/flux/stdlib/strings/split.md @@ -11,9 +11,9 @@ menu: 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/stdlib/strings/splitafter.md b/content/v2.0/reference/flux/stdlib/strings/splitafter.md index fe6fb092b..65e0542c7 100644 --- a/content/v2.0/reference/flux/stdlib/strings/splitafter.md +++ b/content/v2.0/reference/flux/stdlib/strings/splitafter.md @@ -11,9 +11,9 @@ menu: 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/stdlib/strings/splitaftern.md b/content/v2.0/reference/flux/stdlib/strings/splitaftern.md index 54e26208f..f37feef5c 100644 --- a/content/v2.0/reference/flux/stdlib/strings/splitaftern.md +++ b/content/v2.0/reference/flux/stdlib/strings/splitaftern.md @@ -11,9 +11,9 @@ menu: 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/stdlib/strings/splitn.md b/content/v2.0/reference/flux/stdlib/strings/splitn.md index cd027bc92..c3481beb6 100644 --- a/content/v2.0/reference/flux/stdlib/strings/splitn.md +++ b/content/v2.0/reference/flux/stdlib/strings/splitn.md @@ -11,9 +11,9 @@ menu: 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/stdlib/strings/title.md b/content/v2.0/reference/flux/stdlib/strings/title.md index e438b82b3..53357507b 100644 --- a/content/v2.0/reference/flux/stdlib/strings/title.md +++ b/content/v2.0/reference/flux/stdlib/strings/title.md @@ -9,9 +9,9 @@ menu: 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/stdlib/strings/tolower.md b/content/v2.0/reference/flux/stdlib/strings/tolower.md index 7de34c079..1a58ccdc8 100644 --- a/content/v2.0/reference/flux/stdlib/strings/tolower.md +++ b/content/v2.0/reference/flux/stdlib/strings/tolower.md @@ -9,9 +9,9 @@ menu: 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/stdlib/strings/totitle.md b/content/v2.0/reference/flux/stdlib/strings/totitle.md index 8b9b2c5dc..733219824 100644 --- a/content/v2.0/reference/flux/stdlib/strings/totitle.md +++ b/content/v2.0/reference/flux/stdlib/strings/totitle.md @@ -9,9 +9,9 @@ menu: 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/stdlib/strings/toupper.md b/content/v2.0/reference/flux/stdlib/strings/toupper.md index 6935824a2..948f520a1 100644 --- a/content/v2.0/reference/flux/stdlib/strings/toupper.md +++ b/content/v2.0/reference/flux/stdlib/strings/toupper.md @@ -9,9 +9,9 @@ menu: 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/stdlib/strings/trim.md b/content/v2.0/reference/flux/stdlib/strings/trim.md index 7e20fd510..c9ba4fc0c 100644 --- a/content/v2.0/reference/flux/stdlib/strings/trim.md +++ b/content/v2.0/reference/flux/stdlib/strings/trim.md @@ -11,11 +11,11 @@ menu: 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/stdlib/strings/trimleft.md b/content/v2.0/reference/flux/stdlib/strings/trimleft.md index 513d1a262..f4cf088bc 100644 --- a/content/v2.0/reference/flux/stdlib/strings/trimleft.md +++ b/content/v2.0/reference/flux/stdlib/strings/trimleft.md @@ -10,11 +10,11 @@ menu: 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/stdlib/strings/trimprefix.md b/content/v2.0/reference/flux/stdlib/strings/trimprefix.md index ae5d4dc2b..441b64823 100644 --- a/content/v2.0/reference/flux/stdlib/strings/trimprefix.md +++ b/content/v2.0/reference/flux/stdlib/strings/trimprefix.md @@ -11,11 +11,11 @@ menu: 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/stdlib/strings/trimright.md b/content/v2.0/reference/flux/stdlib/strings/trimright.md index 51e1d9bfa..35419498d 100644 --- a/content/v2.0/reference/flux/stdlib/strings/trimright.md +++ b/content/v2.0/reference/flux/stdlib/strings/trimright.md @@ -10,11 +10,11 @@ menu: 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/stdlib/strings/trimspace.md b/content/v2.0/reference/flux/stdlib/strings/trimspace.md index e35c34809..0645b8b71 100644 --- a/content/v2.0/reference/flux/stdlib/strings/trimspace.md +++ b/content/v2.0/reference/flux/stdlib/strings/trimspace.md @@ -9,11 +9,11 @@ menu: 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/stdlib/strings/trimsuffix.md b/content/v2.0/reference/flux/stdlib/strings/trimsuffix.md index 262c496ce..7d6d12f79 100644 --- a/content/v2.0/reference/flux/stdlib/strings/trimsuffix.md +++ b/content/v2.0/reference/flux/stdlib/strings/trimsuffix.md @@ -11,11 +11,11 @@ menu: 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/stdlib/testing/assertempty.md b/content/v2.0/reference/flux/stdlib/testing/assertempty.md index d85afa1de..f5d56d680 100644 --- a/content/v2.0/reference/flux/stdlib/testing/assertempty.md +++ b/content/v2.0/reference/flux/stdlib/testing/assertempty.md @@ -2,7 +2,7 @@ title: testing.assertEmpty() function description: The testing.assertEmpty() function tests if an input stream is empty. aliases: - - /v2.0/reference/flux/functions/testing/ + - /v2.0/reference/flux/functions/testing/assertempty/ menu: v2_0_ref: name: testing.assertEmpty @@ -26,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. @@ -41,4 +41,3 @@ got |> testing.diff(want: want) |> testing.assertEmpty() ``` -- /v2.0/reference/flux/functions/testing/assertempty/ diff --git a/content/v2.0/reference/glossary.md b/content/v2.0/reference/glossary.md index 1111627d2..285fe1278 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) diff --git a/content/v2.0/reference/release-notes/flux.md b/content/v2.0/reference/release-notes/flux.md index 8d5d09809..87ad2ec31 100644 --- a/content/v2.0/reference/release-notes/flux.md +++ b/content/v2.0/reference/release-notes/flux.md @@ -394,9 +394,9 @@ In Flux 0.39.0, `holtWinters()` can cause the query engine to panic. ### Features - Add stream table index functions ( - [`tableFind()`](/v2.0/reference/flux/functions/built-in/transformations/stream-table/tablefind/), - [`getRecord()`](/v2.0/reference/flux/functions/built-in/transformations/stream-table/getrecord/), - [`getColumn()`](/v2.0/reference/flux/functions/built-in/transformations/stream-table/getcolumn/) + [`tableFind()`](/v2.0/reference/flux/stdlib/built-in/transformations/stream-table/tablefind/), + [`getRecord()`](/v2.0/reference/flux/stdlib/built-in/transformations/stream-table/getrecord/), + [`getColumn()`](/v2.0/reference/flux/stdlib/built-in/transformations/stream-table/getcolumn/) ). - Construct invalid binary expressions when given multiple expressions. diff --git a/content/v2.0/visualize-data/variables/_index.md b/content/v2.0/visualize-data/variables/_index.md index a05853f1a..2ee717f8f 100644 --- a/content/v2.0/visualize-data/variables/_index.md +++ b/content/v2.0/visualize-data/variables/_index.md @@ -40,14 +40,14 @@ The InfluxDB user interface (UI) provides the following predefined dashboard var #### v.timeRangeStart Specifies the beginning of the queried time range. -This variable is typically used to define the [`start` parameter](/v2.0/reference/flux/functions/built-in/transformations/range#start) +This variable is typically used to define the [`start` parameter](/v2.0/reference/flux/stdlib/built-in/transformations/range#start) of the `range()` function. The **Time Range** selector defines the value of this variable. #### v.timeRangeStop Specifies the end of the queried time range. -This variable is typically used to define the [`stop` parameter](/v2.0/reference/flux/functions/built-in/transformations/range#stop) +This variable is typically used to define the [`stop` parameter](/v2.0/reference/flux/stdlib/built-in/transformations/range#stop) of the `range()` function. The **Time Range** selector defines the value of this variable. @@ -56,7 +56,7 @@ It defaults to `now`. #### v.windowPeriod Specifies the period of windowed data. This variable is typically used to define the `every` or `period` parameters of the -[`window()` function](/v2.0/reference/flux/functions/built-in/transformations/window) +[`window()` function](/v2.0/reference/flux/stdlib/built-in/transformations/window) in data aggregation operations. The value of this variable is calculated by analyzing the duration of the Flux diff --git a/content/v2.0/visualize-data/variables/common-variables.md b/content/v2.0/visualize-data/variables/common-variables.md index c05f9065b..77d57e749 100644 --- a/content/v2.0/visualize-data/variables/common-variables.md +++ b/content/v2.0/visualize-data/variables/common-variables.md @@ -13,9 +13,9 @@ weight: 208 List all buckets in the current organization. _**Flux functions:** -[buckets()](/v2.0/reference/flux/functions/built-in/inputs/buckets/), -[rename()](/v2.0/reference/flux/functions/built-in/transformations/rename/), -[keep()](/v2.0/reference/flux/functions/built-in/transformations/keep/)_ +[buckets()](/v2.0/reference/flux/stdlib/built-in/inputs/buckets/), +[rename()](/v2.0/reference/flux/stdlib/built-in/transformations/rename/), +[keep()](/v2.0/reference/flux/stdlib/built-in/transformations/keep/)_ ```js buckets() @@ -26,8 +26,8 @@ buckets() ## List measurements List all measurements in a specified bucket. -_**Flux package:** [InfluxDB v1](/v2.0/reference/flux/functions/influxdb-v1/) -**Flux functions:** [v1.measurements()](/v2.0/reference/flux/functions/influxdb-v1/measurements/)_ +_**Flux package:** [InfluxDB v1](/v2.0/reference/flux/stdlib/influxdb-v1/) +**Flux functions:** [v1.measurements()](/v2.0/reference/flux/stdlib/influxdb-v1/measurements/)_ ```js import "influxdata/influxdb/v1" @@ -37,8 +37,8 @@ v1.measurements(bucket: "bucket-name") ## List fields in a measurement List all fields in a specified bucket and measurement. -_**Flux package:** [InfluxDB v1](/v2.0/reference/flux/functions/influxdb-v1/) -**Flux functions:** [v1.measurementTagValues()](/v2.0/reference/flux/functions/influxdb-v1/measurementtagvalues/)_ +_**Flux package:** [InfluxDB v1](/v2.0/reference/flux/stdlib/influxdb-v1/) +**Flux functions:** [v1.measurementTagValues()](/v2.0/reference/flux/stdlib/influxdb-v1/measurementtagvalues/)_ ```js import "influxdata/influxdb/v1" @@ -53,8 +53,8 @@ v1.measurementTagValues( List all unique tag values for a specific tag in a specified bucket. The example below lists all unique values of the `host` tag. -_**Flux package:** [InfluxDB v1](/v2.0/reference/flux/functions/influxdb-v1/)_ -_**Flux functions:** [v1.measurements()](/v2.0/reference/flux/functions/influxdb-v1/measurements/)_ +_**Flux package:** [InfluxDB v1](/v2.0/reference/flux/stdlib/influxdb-v1/)_ +_**Flux functions:** [v1.measurements()](/v2.0/reference/flux/stdlib/influxdb-v1/measurements/)_ ```js import "influxdata/influxdb/v1" @@ -65,8 +65,8 @@ v1.tagValues(bucket: "bucket-name", tag: "host") List all Docker containers when using the Docker Telegraf plugin. _**Telegraf plugin:** [Docker](https://docs.influxdata.com/telegraf/latest/plugins/inputs/#docker)_ -_**Flux package:** [InfluxDB v1](/v2.0/reference/flux/functions/influxdb-v1/)_ -_**Flux functions:** [v1.tagValues()](/v2.0/reference/flux/functions/influxdb-v1/tagvalues/)_ +_**Flux package:** [InfluxDB v1](/v2.0/reference/flux/stdlib/influxdb-v1/)_ +_**Flux functions:** [v1.tagValues()](/v2.0/reference/flux/stdlib/influxdb-v1/tagvalues/)_ ```js import "influxdata/influxdb/v1" @@ -77,8 +77,8 @@ v1.tagValues(bucket: "bucket-name", tag: "container_name") List all Kubernetes pods when using the Kubernetes Telegraf plugin. _**Telegraf plugin:** [Kubernetes](https://docs.influxdata.com/telegraf/latest/plugins/inputs/#kubernetes)_ -_**Flux package:** [InfluxDB v1](/v2.0/reference/flux/functions/influxdb-v1/)_ -_**Flux functions:** [v1.measurementTagValues()](/v2.0/reference/flux/functions/influxdb-v1/measurementtagvalues/)_ +_**Flux package:** [InfluxDB v1](/v2.0/reference/flux/stdlib/influxdb-v1/)_ +_**Flux functions:** [v1.measurementTagValues()](/v2.0/reference/flux/stdlib/influxdb-v1/measurementtagvalues/)_ ```js import "influxdata/influxdb/v1" @@ -93,8 +93,8 @@ v1.measurementTagValues( List all Kubernetes nodes when using the Kubernetes Telegraf plugin. _**Telegraf plugin:** [Kubernetes](https://docs.influxdata.com/telegraf/latest/plugins/inputs/#kubernetes)_ -_**Flux package:** [InfluxDB v1](/v2.0/reference/flux/functions/influxdb-v1/)_ -_**Flux functions:** [v1.measurementTagValues()](/v2.0/reference/flux/functions/influxdb-v1/measurementtagvalues/)_ +_**Flux package:** [InfluxDB v1](/v2.0/reference/flux/stdlib/influxdb-v1/)_ +_**Flux functions:** [v1.measurementTagValues()](/v2.0/reference/flux/stdlib/influxdb-v1/measurementtagvalues/)_ ```js import "influxdata/influxdb/v1" diff --git a/content/v2.0/visualize-data/variables/variable-types.md b/content/v2.0/visualize-data/variables/variable-types.md index cc771cc68..f84ca59cc 100644 --- a/content/v2.0/visualize-data/variables/variable-types.md +++ b/content/v2.0/visualize-data/variables/variable-types.md @@ -49,11 +49,11 @@ _For examples of dashboard variable queries, see [Common variable queries](/v2.0 #### Important things to note about variable queries - The variable will only use values from the `_value` column. If the data you’re looking for is in a column other than `_value`, use the - [`rename()`](/v2.0/reference/flux/functions/built-in/transformations/rename/) or - [`map()`](/v2.0/reference/flux/functions/built-in/transformations/map/) functions + [`rename()`](/v2.0/reference/flux/stdlib/built-in/transformations/rename/) or + [`map()`](/v2.0/reference/flux/stdlib/built-in/transformations/map/) functions to change the name of that column to `_value`. - The variable will only use the first table in the output stream. - Use the [`group()` function](/v2.0/reference/flux/functions/built-in/transformations/group) + Use the [`group()` function](/v2.0/reference/flux/stdlib/built-in/transformations/group) to group everything into a single table. - Do not use any [predefined dashboard variables](/v2.0/visualize-data/variables/#predefined-dashboard-variables) in variable queries. {{% /note %}}