Merge pull request #421 from influxdata/flux/function-corrections
Various flux function fixespull/426/head
commit
2cb32d166a
|
@ -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.
|
||||||
|
|
|
@ -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_
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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_
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue