Merge pull request #421 from influxdata/flux/function-corrections

Various flux function fixes
pull/426/head
Scott Anderson 2019-08-29 09:28:50 -06:00 committed by GitHub
commit 2cb32d166a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 8 deletions

View File

@ -8,6 +8,7 @@ menu:
name: intervals name: intervals
parent: built-in-misc parent: built-in-misc
weight: 401 weight: 401
draft: true
--- ---
The `intervals()` function generates a set of time intervals over a range of time. The `intervals()` function generates a set of time intervals over a range of time.

View File

@ -75,7 +75,7 @@ _**Data type:** String_
The assumed minimum value of the dataset. The assumed minimum value of the dataset.
When the quantile falls below the lowest upper bound, interpolation is performed between `minValue` and the lowest upper bound. When the quantile falls below the lowest upper bound, interpolation is performed between `minValue` and the lowest upper bound.
When `minValue` is equal to negative infinity, the lowest upper bound is used. When `minValue` is equal to negative infinity, the lowest upper bound is used.
Defaults to `0`. Defaults to `0.0`.
_**Data type:** Float_ _**Data type:** Float_

View File

@ -10,7 +10,8 @@ menu:
weight: 501 weight: 501
--- ---
The `increase()` function calculates the total non-negative difference between values in a table. The `increase()` function calculates the total non-negative difference between
subsequent values.
A main use case is tracking changes in counter values which may wrap over time A main use case is tracking changes in counter values which may wrap over time
when they hit a threshold or are reset. when they hit a threshold or are reset.
In the case of a wrap/reset, we can assume that the absolute delta between two In the case of a wrap/reset, we can assume that the absolute delta between two
@ -20,16 +21,16 @@ _**Function type:** Aggregate_
_**Output data type:** Float_ _**Output data type:** Float_
```js ```js
increase(column: "_values") increase(columns: ["_value"])
``` ```
## Parameters ## Parameters
### column ### columns
The column for which the increase is calculated. The columns to use in the operation.
Defaults to `"_value"`. Defaults to `["_value"]`.
_**Data type:** Strings_ _**Data type:** Array of strings_
## Examples ## Examples
```js ```js

View File

@ -66,7 +66,7 @@ A selector method that returns the data point for which at least `q` points are
### compression ### compression
Indicates how many centroids to use when compressing the dataset. Indicates how many centroids to use when compressing the dataset.
A larger number produces a more accurate result at the cost of increased memory requirements. A larger number produces a more accurate result at the cost of increased memory requirements.
Defaults to 1000. Defaults to `1000.0`.
_**Data type:** Float_ _**Data type:** Float_