parent
ddab6084fe
commit
c3d1b63a3d
|
@ -10,6 +10,22 @@ aliases:
|
|||
- /influxdb/cloud/reference/release-notes/flux/
|
||||
---
|
||||
|
||||
## v0.187.0 [2022-10-17]
|
||||
|
||||
### Features
|
||||
|
||||
- Add [`types.isNumeric()`](/flux/v0.x/stdlib/types/isnumeric/) to test for numeric values.
|
||||
- Recommend valid arguments in extra argument errors.
|
||||
- Add dynamic type support to standard type conversion functions.
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- When using `experimental.unpivot()`, don't add the `_field` column to the
|
||||
group key by default.
|
||||
- Fix compilation error when using Rust 1.64.
|
||||
|
||||
---
|
||||
|
||||
## v0.186.0 [2022-10-11]
|
||||
|
||||
### Features
|
||||
|
|
|
@ -21,7 +21,7 @@ documentation is generated.
|
|||
To make updates to this documentation, update the function comments above the
|
||||
function definition in the Flux source code:
|
||||
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L719-L719
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L744-L744
|
||||
|
||||
Contributing to Flux: https://github.com/influxdata/flux#contributing
|
||||
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
||||
|
|
|
@ -20,7 +20,7 @@ documentation is generated.
|
|||
To make updates to this documentation, update the function comments above the
|
||||
function definition in the Flux source code:
|
||||
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L614-L614
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L639-L639
|
||||
|
||||
Contributing to Flux: https://github.com/influxdata/flux#contributing
|
||||
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
||||
|
|
|
@ -20,7 +20,7 @@ documentation is generated.
|
|||
To make updates to this documentation, update the function comments above the
|
||||
function definition in the Flux source code:
|
||||
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L571-L571
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L596-L596
|
||||
|
||||
Contributing to Flux: https://github.com/influxdata/flux#contributing
|
||||
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
||||
|
|
|
@ -19,7 +19,7 @@ documentation is generated.
|
|||
To make updates to this documentation, update the function comments above the
|
||||
function definition in the Flux source code:
|
||||
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L383-L383
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L408-L408
|
||||
|
||||
Contributing to Flux: https://github.com/influxdata/flux#contributing
|
||||
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
||||
|
|
|
@ -20,7 +20,7 @@ documentation is generated.
|
|||
To make updates to this documentation, update the function comments above the
|
||||
function definition in the Flux source code:
|
||||
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L286-L286
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L311-L311
|
||||
|
||||
Contributing to Flux: https://github.com/influxdata/flux#contributing
|
||||
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
||||
|
@ -30,7 +30,20 @@ Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
|||
`date.monthDay()` returns the day of the month for a specified time.
|
||||
Results range from `[1 - 31]`.
|
||||
|
||||
|
||||
| Returned value | Month |
|
||||
| :------------: | :-------- |
|
||||
| 1 | January |
|
||||
| 2 | February |
|
||||
| 3 | March |
|
||||
| 4 | April |
|
||||
| 5 | May |
|
||||
| 6 | June |
|
||||
| 7 | July |
|
||||
| 8 | August |
|
||||
| 9 | September |
|
||||
| 10 | October |
|
||||
| 11 | November |
|
||||
| 12 | December |
|
||||
|
||||
##### Function type signature
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ documentation is generated.
|
|||
To make updates to this documentation, update the function comments above the
|
||||
function definition in the Flux source code:
|
||||
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L657-L657
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L682-L682
|
||||
|
||||
Contributing to Flux: https://github.com/influxdata/flux#contributing
|
||||
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
||||
|
|
|
@ -19,7 +19,7 @@ documentation is generated.
|
|||
To make updates to this documentation, update the function comments above the
|
||||
function definition in the Flux source code:
|
||||
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L528-L528
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L553-L553
|
||||
|
||||
Contributing to Flux: https://github.com/influxdata/flux#contributing
|
||||
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
||||
|
|
|
@ -20,7 +20,7 @@ documentation is generated.
|
|||
To make updates to this documentation, update the function comments above the
|
||||
function definition in the Flux source code:
|
||||
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L906-L906
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L931-L931
|
||||
|
||||
Contributing to Flux: https://github.com/influxdata/flux#contributing
|
||||
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
||||
|
|
|
@ -21,7 +21,7 @@ documentation is generated.
|
|||
To make updates to this documentation, update the function comments above the
|
||||
function definition in the Flux source code:
|
||||
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L782-L782
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L807-L807
|
||||
|
||||
Contributing to Flux: https://github.com/influxdata/flux#contributing
|
||||
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
||||
|
|
|
@ -19,7 +19,7 @@ documentation is generated.
|
|||
To make updates to this documentation, update the function comments above the
|
||||
function definition in the Flux source code:
|
||||
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L869-L869
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L894-L894
|
||||
|
||||
Contributing to Flux: https://github.com/influxdata/flux#contributing
|
||||
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
||||
|
|
|
@ -20,7 +20,7 @@ documentation is generated.
|
|||
To make updates to this documentation, update the function comments above the
|
||||
function definition in the Flux source code:
|
||||
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L480-L480
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L505-L505
|
||||
|
||||
Contributing to Flux: https://github.com/influxdata/flux#contributing
|
||||
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
||||
|
|
|
@ -20,7 +20,7 @@ documentation is generated.
|
|||
To make updates to this documentation, update the function comments above the
|
||||
function definition in the Flux source code:
|
||||
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L237-L237
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L247-L247
|
||||
|
||||
Contributing to Flux: https://github.com/influxdata/flux#contributing
|
||||
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
||||
|
@ -30,7 +30,15 @@ Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
|||
`date.weekDay()` returns the day of the week for a specified time.
|
||||
Results range from `[0 - 6]`.
|
||||
|
||||
|
||||
| Returned value | Day of the week |
|
||||
| :------------: | :-------------- |
|
||||
| 0 | Sunday |
|
||||
| 1 | Monday |
|
||||
| 2 | Tuesday |
|
||||
| 3 | Wednesday |
|
||||
| 4 | Thursday |
|
||||
| 5 | Friday |
|
||||
| 6 | Saturday |
|
||||
|
||||
##### Function type signature
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ documentation is generated.
|
|||
To make updates to this documentation, update the function comments above the
|
||||
function definition in the Flux source code:
|
||||
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L431-L431
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L456-L456
|
||||
|
||||
Contributing to Flux: https://github.com/influxdata/flux#contributing
|
||||
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
||||
|
|
|
@ -20,7 +20,7 @@ documentation is generated.
|
|||
To make updates to this documentation, update the function comments above the
|
||||
function definition in the Flux source code:
|
||||
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L335-L335
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L360-L360
|
||||
|
||||
Contributing to Flux: https://github.com/influxdata/flux#contributing
|
||||
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
||||
|
|
|
@ -88,12 +88,12 @@ requests.peek(response: requests.get(url: "https://api.agify.io", params: ["name
|
|||
Connection: keep-alive,
|
||||
Content-Length: 41,
|
||||
Content-Type: application/json; charset=utf-8,
|
||||
Date: Tue, 11 Oct 2022 19:13:40 GMT,
|
||||
Date: Mon, 17 Oct 2022 17:11:46 GMT,
|
||||
Server: nginx/1.16.1,
|
||||
X-Rate-Limit-Limit: 1000,
|
||||
X-Rate-Limit-Remaining: 998,
|
||||
X-Rate-Limit-Reset: 17180,
|
||||
X-Request-Id: Fx0ZogLRpfOI_V8LUOhy
|
||||
X-Rate-Limit-Reset: 24494,
|
||||
X-Request-Id: Fx7qdmv9xXef1VkgUaVB
|
||||
] | 200 |
|
||||
|
||||
{{% /expand %}}
|
||||
|
|
|
@ -196,10 +196,10 @@ array.from(
|
|||
|
||||
#### Output data
|
||||
|
||||
| id | color | pendingDuration |
|
||||
| -------- | ------ | ---------------- |
|
||||
| 15612462 | red | 3 |
|
||||
| 15612462 | blue | 16 |
|
||||
| pendingDuration | id | color |
|
||||
| ---------------- | -------- | ------ |
|
||||
| 3 | 15612462 | red |
|
||||
| 16 | 15612462 | blue |
|
||||
|
||||
{{% /expand %}}
|
||||
{{< /expand-wrapper >}}
|
||||
|
|
|
@ -107,44 +107,44 @@ data
|
|||
|
||||
| _time | _value |
|
||||
| -------------------- | ------------------- |
|
||||
| 2022-10-11T19:11:00Z | 10.56555566168836 |
|
||||
| 2022-10-11T19:11:10Z | -29.76098586714259 |
|
||||
| 2022-10-11T19:11:20Z | -67.50435038579738 |
|
||||
| 2022-10-11T19:11:30Z | -16.758669047964453 |
|
||||
| 2022-10-11T19:11:40Z | -47.25865245658065 |
|
||||
| 2022-10-11T19:11:50Z | 66.16082461651365 |
|
||||
| 2022-10-11T19:12:00Z | -0.9179216017921821 |
|
||||
| 2022-10-11T19:12:10Z | -56.89169240573004 |
|
||||
| 2022-10-11T19:12:20Z | 11.358605472976624 |
|
||||
| 2022-10-11T19:12:30Z | 28.71147881415803 |
|
||||
| 2022-10-11T19:12:40Z | -30.928830759588756 |
|
||||
| 2022-10-11T19:12:50Z | -22.411848631056067 |
|
||||
| 2022-10-11T19:13:00Z | 17.05503606764129 |
|
||||
| 2022-10-11T19:13:10Z | 9.834382683760559 |
|
||||
| 2022-10-11T19:13:20Z | -12.62058579127679 |
|
||||
| 2022-10-11T19:13:30Z | -44.44668391211515 |
|
||||
| 2022-10-17T17:09:00Z | 10.56555566168836 |
|
||||
| 2022-10-17T17:09:10Z | -29.76098586714259 |
|
||||
| 2022-10-17T17:09:20Z | -67.50435038579738 |
|
||||
| 2022-10-17T17:09:30Z | -16.758669047964453 |
|
||||
| 2022-10-17T17:09:40Z | -47.25865245658065 |
|
||||
| 2022-10-17T17:09:50Z | 66.16082461651365 |
|
||||
| 2022-10-17T17:10:00Z | -0.9179216017921821 |
|
||||
| 2022-10-17T17:10:10Z | -56.89169240573004 |
|
||||
| 2022-10-17T17:10:20Z | 11.358605472976624 |
|
||||
| 2022-10-17T17:10:30Z | 28.71147881415803 |
|
||||
| 2022-10-17T17:10:40Z | -30.928830759588756 |
|
||||
| 2022-10-17T17:10:50Z | -22.411848631056067 |
|
||||
| 2022-10-17T17:11:00Z | 17.05503606764129 |
|
||||
| 2022-10-17T17:11:10Z | 9.834382683760559 |
|
||||
| 2022-10-17T17:11:20Z | -12.62058579127679 |
|
||||
| 2022-10-17T17:11:30Z | -44.44668391211515 |
|
||||
|
||||
|
||||
#### Output data
|
||||
|
||||
| _time | _value |
|
||||
| -------------------- | ------------------- |
|
||||
| 2022-10-11T19:11:00Z | 10.56555566168836 |
|
||||
| 2022-10-11T19:11:10Z | -29.76098586714259 |
|
||||
| 2022-10-11T19:11:20Z | -67.50435038579738 |
|
||||
| 2022-10-11T19:11:30Z | -16.758669047964453 |
|
||||
| 2022-10-11T19:11:40Z | -47.25865245658065 |
|
||||
| 2022-10-11T19:11:50Z | 66.16082461651365 |
|
||||
| 2022-10-11T19:12:00Z | -0.9179216017921821 |
|
||||
| 2022-10-11T19:12:10Z | -56.89169240573004 |
|
||||
| 2022-10-11T19:12:20Z | 11.358605472976624 |
|
||||
| 2022-10-11T19:12:30Z | 28.71147881415803 |
|
||||
| 2022-10-11T19:12:40Z | -30.928830759588756 |
|
||||
| 2022-10-11T19:12:50Z | -22.411848631056067 |
|
||||
| 2022-10-11T19:13:00Z | 17.05503606764129 |
|
||||
| 2022-10-11T19:13:10Z | 9.834382683760559 |
|
||||
| 2022-10-11T19:13:20Z | -12.62058579127679 |
|
||||
| 2022-10-11T19:13:30Z | -44.44668391211515 |
|
||||
| 2022-10-17T17:09:00Z | 10.56555566168836 |
|
||||
| 2022-10-17T17:09:10Z | -29.76098586714259 |
|
||||
| 2022-10-17T17:09:20Z | -67.50435038579738 |
|
||||
| 2022-10-17T17:09:30Z | -16.758669047964453 |
|
||||
| 2022-10-17T17:09:40Z | -47.25865245658065 |
|
||||
| 2022-10-17T17:09:50Z | 66.16082461651365 |
|
||||
| 2022-10-17T17:10:00Z | -0.9179216017921821 |
|
||||
| 2022-10-17T17:10:10Z | -56.89169240573004 |
|
||||
| 2022-10-17T17:10:20Z | 11.358605472976624 |
|
||||
| 2022-10-17T17:10:30Z | 28.71147881415803 |
|
||||
| 2022-10-17T17:10:40Z | -30.928830759588756 |
|
||||
| 2022-10-17T17:10:50Z | -22.411848631056067 |
|
||||
| 2022-10-17T17:11:00Z | 17.05503606764129 |
|
||||
| 2022-10-17T17:11:10Z | 9.834382683760559 |
|
||||
| 2022-10-17T17:11:20Z | -12.62058579127679 |
|
||||
| 2022-10-17T17:11:30Z | -44.44668391211515 |
|
||||
|
||||
{{% /expand %}}
|
||||
{{< /expand-wrapper >}}
|
||||
|
@ -166,43 +166,43 @@ data
|
|||
|
||||
| _time | _value |
|
||||
| -------------------- | ------------------- |
|
||||
| 2022-10-11T19:11:00Z | 10.56555566168836 |
|
||||
| 2022-10-11T19:11:10Z | -29.76098586714259 |
|
||||
| 2022-10-11T19:11:20Z | -67.50435038579738 |
|
||||
| 2022-10-11T19:11:30Z | -16.758669047964453 |
|
||||
| 2022-10-11T19:11:40Z | -47.25865245658065 |
|
||||
| 2022-10-11T19:11:50Z | 66.16082461651365 |
|
||||
| 2022-10-11T19:12:00Z | -0.9179216017921821 |
|
||||
| 2022-10-11T19:12:10Z | -56.89169240573004 |
|
||||
| 2022-10-11T19:12:20Z | 11.358605472976624 |
|
||||
| 2022-10-11T19:12:30Z | 28.71147881415803 |
|
||||
| 2022-10-11T19:12:40Z | -30.928830759588756 |
|
||||
| 2022-10-11T19:12:50Z | -22.411848631056067 |
|
||||
| 2022-10-11T19:13:00Z | 17.05503606764129 |
|
||||
| 2022-10-11T19:13:10Z | 9.834382683760559 |
|
||||
| 2022-10-11T19:13:20Z | -12.62058579127679 |
|
||||
| 2022-10-11T19:13:30Z | -44.44668391211515 |
|
||||
| 2022-10-17T17:09:00Z | 10.56555566168836 |
|
||||
| 2022-10-17T17:09:10Z | -29.76098586714259 |
|
||||
| 2022-10-17T17:09:20Z | -67.50435038579738 |
|
||||
| 2022-10-17T17:09:30Z | -16.758669047964453 |
|
||||
| 2022-10-17T17:09:40Z | -47.25865245658065 |
|
||||
| 2022-10-17T17:09:50Z | 66.16082461651365 |
|
||||
| 2022-10-17T17:10:00Z | -0.9179216017921821 |
|
||||
| 2022-10-17T17:10:10Z | -56.89169240573004 |
|
||||
| 2022-10-17T17:10:20Z | 11.358605472976624 |
|
||||
| 2022-10-17T17:10:30Z | 28.71147881415803 |
|
||||
| 2022-10-17T17:10:40Z | -30.928830759588756 |
|
||||
| 2022-10-17T17:10:50Z | -22.411848631056067 |
|
||||
| 2022-10-17T17:11:00Z | 17.05503606764129 |
|
||||
| 2022-10-17T17:11:10Z | 9.834382683760559 |
|
||||
| 2022-10-17T17:11:20Z | -12.62058579127679 |
|
||||
| 2022-10-17T17:11:30Z | -44.44668391211515 |
|
||||
|
||||
|
||||
#### Output data
|
||||
|
||||
| _time | _value |
|
||||
| -------------------- | ------------------- |
|
||||
| 2022-10-11T19:11:00Z | 10.56555566168836 |
|
||||
| 2022-10-11T19:11:20Z | -67.50435038579738 |
|
||||
| 2022-10-11T19:11:30Z | -16.758669047964453 |
|
||||
| 2022-10-11T19:11:40Z | -47.25865245658065 |
|
||||
| 2022-10-11T19:11:50Z | 66.16082461651365 |
|
||||
| 2022-10-11T19:12:00Z | -0.9179216017921821 |
|
||||
| 2022-10-11T19:12:10Z | -56.89169240573004 |
|
||||
| 2022-10-11T19:12:20Z | 11.358605472976624 |
|
||||
| 2022-10-11T19:12:30Z | 28.71147881415803 |
|
||||
| 2022-10-11T19:12:40Z | -30.928830759588756 |
|
||||
| 2022-10-11T19:12:50Z | -22.411848631056067 |
|
||||
| 2022-10-11T19:13:00Z | 17.05503606764129 |
|
||||
| 2022-10-11T19:13:10Z | 9.834382683760559 |
|
||||
| 2022-10-11T19:13:20Z | -12.62058579127679 |
|
||||
| 2022-10-11T19:13:30Z | -44.44668391211515 |
|
||||
| 2022-10-17T17:09:00Z | 10.56555566168836 |
|
||||
| 2022-10-17T17:09:20Z | -67.50435038579738 |
|
||||
| 2022-10-17T17:09:30Z | -16.758669047964453 |
|
||||
| 2022-10-17T17:09:40Z | -47.25865245658065 |
|
||||
| 2022-10-17T17:09:50Z | 66.16082461651365 |
|
||||
| 2022-10-17T17:10:00Z | -0.9179216017921821 |
|
||||
| 2022-10-17T17:10:10Z | -56.89169240573004 |
|
||||
| 2022-10-17T17:10:20Z | 11.358605472976624 |
|
||||
| 2022-10-17T17:10:30Z | 28.71147881415803 |
|
||||
| 2022-10-17T17:10:40Z | -30.928830759588756 |
|
||||
| 2022-10-17T17:10:50Z | -22.411848631056067 |
|
||||
| 2022-10-17T17:11:00Z | 17.05503606764129 |
|
||||
| 2022-10-17T17:11:10Z | 9.834382683760559 |
|
||||
| 2022-10-17T17:11:20Z | -12.62058579127679 |
|
||||
| 2022-10-17T17:11:30Z | -44.44668391211515 |
|
||||
|
||||
{{% /expand %}}
|
||||
{{< /expand-wrapper >}}
|
||||
|
@ -224,42 +224,42 @@ data
|
|||
|
||||
| _time | _value |
|
||||
| -------------------- | ------------------- |
|
||||
| 2022-10-11T19:11:00Z | 10.56555566168836 |
|
||||
| 2022-10-11T19:11:10Z | -29.76098586714259 |
|
||||
| 2022-10-11T19:11:20Z | -67.50435038579738 |
|
||||
| 2022-10-11T19:11:30Z | -16.758669047964453 |
|
||||
| 2022-10-11T19:11:40Z | -47.25865245658065 |
|
||||
| 2022-10-11T19:11:50Z | 66.16082461651365 |
|
||||
| 2022-10-11T19:12:00Z | -0.9179216017921821 |
|
||||
| 2022-10-11T19:12:10Z | -56.89169240573004 |
|
||||
| 2022-10-11T19:12:20Z | 11.358605472976624 |
|
||||
| 2022-10-11T19:12:30Z | 28.71147881415803 |
|
||||
| 2022-10-11T19:12:40Z | -30.928830759588756 |
|
||||
| 2022-10-11T19:12:50Z | -22.411848631056067 |
|
||||
| 2022-10-11T19:13:00Z | 17.05503606764129 |
|
||||
| 2022-10-11T19:13:10Z | 9.834382683760559 |
|
||||
| 2022-10-11T19:13:20Z | -12.62058579127679 |
|
||||
| 2022-10-11T19:13:30Z | -44.44668391211515 |
|
||||
| 2022-10-17T17:09:00Z | 10.56555566168836 |
|
||||
| 2022-10-17T17:09:10Z | -29.76098586714259 |
|
||||
| 2022-10-17T17:09:20Z | -67.50435038579738 |
|
||||
| 2022-10-17T17:09:30Z | -16.758669047964453 |
|
||||
| 2022-10-17T17:09:40Z | -47.25865245658065 |
|
||||
| 2022-10-17T17:09:50Z | 66.16082461651365 |
|
||||
| 2022-10-17T17:10:00Z | -0.9179216017921821 |
|
||||
| 2022-10-17T17:10:10Z | -56.89169240573004 |
|
||||
| 2022-10-17T17:10:20Z | 11.358605472976624 |
|
||||
| 2022-10-17T17:10:30Z | 28.71147881415803 |
|
||||
| 2022-10-17T17:10:40Z | -30.928830759588756 |
|
||||
| 2022-10-17T17:10:50Z | -22.411848631056067 |
|
||||
| 2022-10-17T17:11:00Z | 17.05503606764129 |
|
||||
| 2022-10-17T17:11:10Z | 9.834382683760559 |
|
||||
| 2022-10-17T17:11:20Z | -12.62058579127679 |
|
||||
| 2022-10-17T17:11:30Z | -44.44668391211515 |
|
||||
|
||||
|
||||
#### Output data
|
||||
|
||||
| _time | _value |
|
||||
| -------------------- | ------------------- |
|
||||
| 2022-10-11T19:11:00Z | 10.56555566168836 |
|
||||
| 2022-10-11T19:11:20Z | -67.50435038579738 |
|
||||
| 2022-10-11T19:11:30Z | -16.758669047964453 |
|
||||
| 2022-10-11T19:11:40Z | -47.25865245658065 |
|
||||
| 2022-10-11T19:11:50Z | 66.16082461651365 |
|
||||
| 2022-10-11T19:12:00Z | -0.9179216017921821 |
|
||||
| 2022-10-11T19:12:10Z | -56.89169240573004 |
|
||||
| 2022-10-11T19:12:20Z | 11.358605472976624 |
|
||||
| 2022-10-11T19:12:30Z | 28.71147881415803 |
|
||||
| 2022-10-11T19:12:40Z | -30.928830759588756 |
|
||||
| 2022-10-11T19:12:50Z | -22.411848631056067 |
|
||||
| 2022-10-11T19:13:00Z | 17.05503606764129 |
|
||||
| 2022-10-11T19:13:10Z | 9.834382683760559 |
|
||||
| 2022-10-11T19:13:30Z | -44.44668391211515 |
|
||||
| 2022-10-17T17:09:00Z | 10.56555566168836 |
|
||||
| 2022-10-17T17:09:20Z | -67.50435038579738 |
|
||||
| 2022-10-17T17:09:30Z | -16.758669047964453 |
|
||||
| 2022-10-17T17:09:40Z | -47.25865245658065 |
|
||||
| 2022-10-17T17:09:50Z | 66.16082461651365 |
|
||||
| 2022-10-17T17:10:00Z | -0.9179216017921821 |
|
||||
| 2022-10-17T17:10:10Z | -56.89169240573004 |
|
||||
| 2022-10-17T17:10:20Z | 11.358605472976624 |
|
||||
| 2022-10-17T17:10:30Z | 28.71147881415803 |
|
||||
| 2022-10-17T17:10:40Z | -30.928830759588756 |
|
||||
| 2022-10-17T17:10:50Z | -22.411848631056067 |
|
||||
| 2022-10-17T17:11:00Z | 17.05503606764129 |
|
||||
| 2022-10-17T17:11:10Z | 9.834382683760559 |
|
||||
| 2022-10-17T17:11:30Z | -44.44668391211515 |
|
||||
|
||||
{{% /expand %}}
|
||||
{{< /expand-wrapper >}}
|
||||
|
|
|
@ -83,12 +83,12 @@ requests.peek(response: requests.get(url: "https://api.agify.io", params: ["name
|
|||
Connection: keep-alive,
|
||||
Content-Length: 41,
|
||||
Content-Type: application/json; charset=utf-8,
|
||||
Date: Tue, 11 Oct 2022 19:13:42 GMT,
|
||||
Date: Mon, 17 Oct 2022 17:11:48 GMT,
|
||||
Server: nginx/1.16.1,
|
||||
X-Rate-Limit-Limit: 1000,
|
||||
X-Rate-Limit-Remaining: 996,
|
||||
X-Rate-Limit-Reset: 17178,
|
||||
X-Request-Id: Fx0ZolT3zzLkoOcL3I3h
|
||||
X-Rate-Limit-Reset: 24492,
|
||||
X-Request-Id: Fx7qdsmQdfsDXoogUafx
|
||||
] | 200 |
|
||||
|
||||
{{% /expand %}}
|
||||
|
|
|
@ -189,12 +189,12 @@ requests.peek(response: response)
|
|||
Cache-Control: max-age=604800,
|
||||
Content-Length: 1256,
|
||||
Content-Type: text/html; charset=UTF-8,
|
||||
Date: Tue, 11 Oct 2022 19:13:42 GMT,
|
||||
Date: Mon, 17 Oct 2022 17:11:48 GMT,
|
||||
Etag: "3147526947",
|
||||
Expires: Tue, 18 Oct 2022 19:13:42 GMT,
|
||||
Expires: Mon, 24 Oct 2022 17:11:48 GMT,
|
||||
Last-Modified: Thu, 17 Oct 2019 07:18:26 GMT,
|
||||
Server: EOS (vny/0453)
|
||||
] | 104072300 |
|
||||
] | 160451441 |
|
||||
|
||||
{{% /expand %}}
|
||||
{{< /expand-wrapper >}}
|
||||
|
|
|
@ -0,0 +1,122 @@
|
|||
---
|
||||
title: types.isNumeric() function
|
||||
description: >
|
||||
`types.isNumeric()` tests if a value is a numeric type (int, uint, or float).
|
||||
menu:
|
||||
flux_0_x_ref:
|
||||
name: types.isNumeric
|
||||
parent: types
|
||||
identifier: types/isNumeric
|
||||
weight: 101
|
||||
flux/v0.x/tags: [types, tests]
|
||||
introduced: 0.187.0
|
||||
---
|
||||
|
||||
<!------------------------------------------------------------------------------
|
||||
|
||||
IMPORTANT: This page was generated from comments in the Flux source code. Any
|
||||
edits made directly to this page will be overwritten the next time the
|
||||
documentation is generated.
|
||||
|
||||
To make updates to this documentation, update the function comments above the
|
||||
function definition in the Flux source code:
|
||||
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/types/types.flux#L189-L190
|
||||
|
||||
Contributing to Flux: https://github.com/influxdata/flux#contributing
|
||||
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
||||
|
||||
------------------------------------------------------------------------------->
|
||||
|
||||
`types.isNumeric()` tests if a value is a numeric type (int, uint, or float).
|
||||
|
||||
This is a helper function to test or filter for values that can be used in
|
||||
arithmatic operations or aggregations.
|
||||
|
||||
##### Function type signature
|
||||
|
||||
```js
|
||||
(v: A) => bool where A: Basic
|
||||
```
|
||||
|
||||
{{% caption %}}For more information, see [Function type signatures](/flux/v0.x/function-type-signatures/).{{% /caption %}}
|
||||
|
||||
## Parameters
|
||||
|
||||
### v
|
||||
({{< req >}})
|
||||
Value to test.
|
||||
|
||||
|
||||
|
||||
|
||||
## Examples
|
||||
|
||||
### Filter by numeric values
|
||||
|
||||
```js
|
||||
import "types"
|
||||
|
||||
data
|
||||
|> filter(fn: (r) => types.isNumeric(v: r._value))
|
||||
|
||||
```
|
||||
|
||||
{{< expand-wrapper >}}
|
||||
{{% expand "View example input and ouput" %}}
|
||||
|
||||
#### Input data
|
||||
|
||||
| _time | *type | _value |
|
||||
| -------------------- | ----- | ------- |
|
||||
| 2021-01-01T00:00:00Z | float | -2.18 |
|
||||
| 2021-01-01T00:00:10Z | float | 10.92 |
|
||||
| 2021-01-01T00:00:20Z | float | 7.35 |
|
||||
|
||||
| _time | *type | _value |
|
||||
| ------ | ----- | ------- |
|
||||
|
||||
| _time | *type | _value |
|
||||
| -------------------- | ----- | ------- |
|
||||
| 2021-01-01T00:00:00Z | bool | true |
|
||||
| 2021-01-01T00:00:10Z | bool | true |
|
||||
| 2021-01-01T00:00:20Z | bool | false |
|
||||
|
||||
| _time | *type | _value |
|
||||
| ------ | ----- | ------- |
|
||||
|
||||
| _time | *type | _value |
|
||||
| -------------------- | ------ | ----------- |
|
||||
| 2021-01-01T00:00:00Z | string | smpl_g9qczs |
|
||||
| 2021-01-01T00:00:10Z | string | smpl_0mgv9n |
|
||||
| 2021-01-01T00:00:20Z | string | smpl_phw664 |
|
||||
|
||||
| _time | *type | _value |
|
||||
| ------ | ----- | ------- |
|
||||
|
||||
| _time | *type | _value |
|
||||
| -------------------- | ----- | ------- |
|
||||
| 2021-01-01T00:00:00Z | int | -2 |
|
||||
| 2021-01-01T00:00:10Z | int | 10 |
|
||||
| 2021-01-01T00:00:20Z | int | 7 |
|
||||
|
||||
|
||||
#### Output data
|
||||
|
||||
| _time | *type | _value |
|
||||
| -------------------- | ----- | ------- |
|
||||
| 2021-01-01T00:00:00Z | float | -2.18 |
|
||||
| 2021-01-01T00:00:10Z | float | 10.92 |
|
||||
| 2021-01-01T00:00:20Z | float | 7.35 |
|
||||
|
||||
| _time | *type | _value |
|
||||
| ------ | ----- | ------- |
|
||||
|
||||
| _time | *type | _value |
|
||||
| -------------------- | ----- | ------- |
|
||||
| 2021-01-01T00:00:00Z | int | -2 |
|
||||
| 2021-01-01T00:00:10Z | int | 10 |
|
||||
| 2021-01-01T00:00:20Z | int | 7 |
|
||||
|
||||
{{% /expand %}}
|
||||
{{< /expand-wrapper >}}
|
|
@ -117,12 +117,12 @@ sampledata.int()
|
|||
| 2021-01-01T00:00:40Z | 13 | t2 |
|
||||
| 2021-01-01T00:00:50Z | 1 | t2 |
|
||||
|
||||
|
||||
#### Output data
|
||||
|
||||
| _time | _value | *tag |
|
||||
| ------ | ------- | ---- |
|
||||
|
||||
|
||||
#### Output data
|
||||
|
||||
| _time | _value | *tag |
|
||||
| -------------------- | ------- | ---- |
|
||||
| 2021-01-01T00:00:00Z | 19 | t2 |
|
||||
|
|
Loading…
Reference in New Issue