moved custom functions guide into query data guides

pull/22/head
Scott Anderson 2019-01-22 08:29:28 -07:00
parent 1f3708d13d
commit b07b6544f1
5 changed files with 8 additions and 11 deletions

View File

@ -183,7 +183,7 @@ topN = (tables=<-, n) => tables |> sort(desc: true) |> limit(n: n)
{{% /code-tab-content %}}
{{< /code-tabs-wrapper >}}
_More information about creating custom functions is available in the [Custom functions](/v2.0/reference/flux/functions/custom-functions) documentation._
_More information about creating custom functions is available in the [Custom functions](/v2.0/query-data/flux/guides/custom-functions) documentation._
Using the `cpuUsageUser` data stream variable defined above, find the top five data
points with the custom `topN` function and yield the results.

View File

@ -34,7 +34,7 @@ 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/reference/flux/functions/custom-functions) in your Flux queries.
You can also [create custom functions](/v2.0/query-data/flux/guides/custom-functions) in your Flux queries.
_Functions are covered in detail in the [Flux functions](/v2.0/reference/flux/functions) documentation._
A common type of function used when transforming data queried from InfluxDB is an aggregate function.

View File

@ -1,11 +1,12 @@
---
title: Create custom Flux functions
seotitle: Create custom Flux functions
description: Create your own custom Flux functions to transform and manipulate data.
menu:
v2_0_ref:
name: Custom functions
parent: Flux functions
weight: 6
v2_0:
name: Create custom functions
parent: How-to guides
weight: 8
---
Flux's functional syntax allows for custom functions.

View File

@ -6,7 +6,7 @@ menu:
v2_0:
name: Regular expressions
parent: How-to guides
weight: 7
weight: 9
---
Regular expressions (regexes) are incredibly powerful when matching patterns in large collections of data.

View File

@ -23,7 +23,3 @@ Transformation functions transform or shape your data in specific ways.
## [Miscellaneous functions](/v2.0/reference/flux/functions/misc)
Functions that serve miscellaneous purposes when writing Flux scripts.
## [Custom functions](/v2.0/reference/flux/functions/custom-functions)
Flux's functional syntax allows for custom functions.
This guide walks through the basics of creating your own function.