updated links to flux functions

pull/454/head
Scott Anderson 2019-09-10 12:38:38 -06:00
parent a0d46bb7b1
commit af4b99b188
96 changed files with 271 additions and 271 deletions

View File

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

View File

@ -32,7 +32,7 @@ A separate bucket where aggregated, downsampled data is stored.
To downsample data, it must be aggregated in some way.
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.

View File

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

View File

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

View File

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

View File

@ -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")

View File

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

View File

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

View File

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

View File

@ -28,7 +28,7 @@ Understanding how modifying group keys shapes output data is key to successfully
grouping and transforming data into your desired output.
## 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

View File

@ -14,7 +14,7 @@ Histograms provide valuable insight into the distribution of your data.
This guide walks through using Flux's `histogram()` function to transform your data into a **cumulative histogram**.
## 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)

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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).

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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()
---

View File

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

View File

@ -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()
---

View File

@ -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()
---

View File

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

View File

@ -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()
---

View File

@ -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()
---

View File

@ -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()
---

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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)_

View File

@ -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)_

View File

@ -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)_

View File

@ -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)_

View File

@ -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)_

View File

@ -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)_

View File

@ -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)_

View File

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

View File

@ -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)_

View File

@ -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)_

View File

@ -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)_

View File

@ -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)_

View File

@ -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/)_

View File

@ -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/)_

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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).

View File

@ -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).

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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