Flux 0.190 ()

* Flux 0.190.0 release notes

* Flux 0.190.0 stdlib changes
pull/4633/head
Scott Anderson 2022-11-09 16:10:57 -07:00 committed by GitHub
parent 710bdd93f3
commit 7f6cbda16c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
39 changed files with 220 additions and 204 deletions

View File

@ -10,6 +10,13 @@ aliases:
- /influxdb/cloud/reference/release-notes/flux/
---
## v0.190.0 [2022-11-09]
### Features
- Add download headers within the CSV dialect.
---
## v0.189.0 [2022-11-02]
### Features

View File

@ -1,7 +1,8 @@
---
title: aggregate.rate() function
description: >
`aggregate.rate()` calculates the rate of change per windows of time for each input table.
`aggregate.rate()` calculates the average rate of increase per window of time for each
input table.
menu:
flux_0_x_ref:
name: aggregate.rate
@ -20,19 +21,24 @@ 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/experimental/aggregate/aggregate.flux#L41-L52
https://github.com/influxdata/flux/blob/master/stdlib/experimental/aggregate/aggregate.flux#L46-L57
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
------------------------------------------------------------------------------->
`aggregate.rate()` calculates the rate of change per windows of time for each input table.
`aggregate.rate()` calculates the average rate of increase per window of time for each
input table.
`aggregate.rate()` requires that input data have `_start` and `_stop` columns
to calculate windows of time to operate on.
Use `range()` to assign `_start` and `_stop` values.
This function is designed to replicate the
[Prometheus `rate()` function](https://prometheus.io/docs/prometheus/latest/querying/functions/#rate)
and should only be used with [counters](/flux/v0.x/prometheus/metric-types/counter/).
##### Function type signature
```js

View File

@ -22,7 +22,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/experimental/array/array.flux#L88-L88
https://github.com/influxdata/flux/blob/master/stdlib/experimental/array/array.flux#L89-L89
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
@ -33,7 +33,8 @@ Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
{{% warn %}}
#### Deprecated
`concat()` is deprecated in favor of [`concat()`](/flux/v0.x/stdlib/array/concat).
Experimetnal `array.concat()` is deprecated in favor of
[`array.concat()`](/flux/v0.x/stdlib/array/concat).
{{% /warn %}}
Neither input array is mutated and a new array is returned.

View File

@ -23,7 +23,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/experimental/array/array.flux#L146-L146
https://github.com/influxdata/flux/blob/master/stdlib/experimental/array/array.flux#L149-L149
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
@ -35,7 +35,8 @@ a new array with only elements that match the predicate.
{{% warn %}}
#### Deprecated
`filter()` is deprecated in favor of [`filter()`](/flux/v0.x/stdlib/array/filter).
Experimental `array.filter()` is deprecated in favor of
[`array.filter()`](/flux/v0.x/stdlib/array/filter).
{{% /warn %}}
##### Function type signature

View File

@ -32,11 +32,11 @@ Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
{{% warn %}}
#### Deprecated
`from()` is deprecated in favor of [`from()`](/flux/v0.x/stdlib/array/from).
Experimental `array.from()` is deprecated in favor of
[`array.from()`](/flux/v0.x/stdlib/array/from).
This function is available for backwards compatibility, but we recommend using the `array` package instead.
{{% /warn %}}
Each record in the array is converted into an output row or record. All
records must have the same keys and data types.

View File

@ -23,7 +23,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/experimental/array/array.flux#L116-L116
https://github.com/influxdata/flux/blob/master/stdlib/experimental/array/array.flux#L118-L118
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
@ -35,7 +35,8 @@ and then returns a new array.
{{% warn %}}
#### Deprecated
`map()` is deprecated in favor of [`map()`](/flux/v0.x/stdlib/array/map).
Experimental `array.map()` is deprecated in favor of
[`array.map()`](/flux/v0.x/stdlib/array/map).
{{% /warn %}}
##### Function type signature

View File

@ -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/experimental/array/array.flux#L176-L176
https://github.com/influxdata/flux/blob/master/stdlib/experimental/array/array.flux#L179-L179
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -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/experimental/array/array.flux#L205-L205
https://github.com/influxdata/flux/blob/master/stdlib/experimental/array/array.flux#L208-L208
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -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/experimental/array/array.flux#L245-L245
https://github.com/influxdata/flux/blob/master/stdlib/experimental/array/array.flux#L248-L248
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -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/experimental/array/array.flux#L279-L279
https://github.com/influxdata/flux/blob/master/stdlib/experimental/array/array.flux#L282-L282
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -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/experimental/array/array.flux#L311-L311
https://github.com/influxdata/flux/blob/master/stdlib/experimental/array/array.flux#L314-L314
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -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/experimental/array/array.flux#L341-L341
https://github.com/influxdata/flux/blob/master/stdlib/experimental/array/array.flux#L344-L344
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -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/experimental/array/array.flux#L375-L375
https://github.com/influxdata/flux/blob/master/stdlib/experimental/array/array.flux#L378-L378
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -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/experimental/bitwise/bitwise.flux#L251-L251
https://github.com/influxdata/flux/blob/master/stdlib/experimental/bitwise/bitwise.flux#L259-L259
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
@ -30,7 +30,8 @@ Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
{{% warn %}}
#### Deprecated
`sand` is deprecated in favor of [`bitwise`](/flux/v0.x/stdlib/bitwise/sand/).
Experimental `bitwise.sand` is deprecated in favor of
[`bitwise.sand`](/flux/v0.x/stdlib/bitwise/sand/).
{{% /warn %}}
##### Function type signature

View File

@ -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/experimental/bitwise/bitwise.flux#L367-L367
https://github.com/influxdata/flux/blob/master/stdlib/experimental/bitwise/bitwise.flux#L379-L379
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
@ -32,7 +32,8 @@ Both `a` and `b` are integers.
{{% warn %}}
#### Deprecated
`sclear` is deprecated in favor of [`bitwise`](/flux/v0.x/stdlib/bitwise/sclear/).
Experimental `bitwise.sclear` is deprecated in favor of
[`bitwise.sclear`](/flux/v0.x/stdlib/bitwise/sclear/).
{{% /warn %}}
##### Function type signature

View File

@ -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/experimental/bitwise/bitwise.flux#L397-L397
https://github.com/influxdata/flux/blob/master/stdlib/experimental/bitwise/bitwise.flux#L410-L410
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
@ -32,7 +32,8 @@ Both `a` and `b` are integers.
{{% warn %}}
#### Deprecated
`slshift` is deprecated in favor of [`bitwise`](/flux/v0.x/stdlib/bitwise/slshift/).
Experimental `bitwise.slshift` is deprecated in favor of
[`bitwise.slshift`](/flux/v0.x/stdlib/bitwise/slshift/).
{{% /warn %}}
##### Function type signature

View File

@ -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/experimental/bitwise/bitwise.flux#L308-L308
https://github.com/influxdata/flux/blob/master/stdlib/experimental/bitwise/bitwise.flux#L318-L318
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
@ -30,7 +30,8 @@ Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
{{% warn %}}
#### Deprecated
`snot` is deprecated in favor of [`bitwise`](/flux/v0.x/stdlib/bitwise/snot/).
Experimental `bitwise.snot` is deprecated in favor of
[`bitwise.snot`](/flux/v0.x/stdlib/bitwise/snot/).
{{% /warn %}}
##### Function type signature

View File

@ -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/experimental/bitwise/bitwise.flux#L280-L280
https://github.com/influxdata/flux/blob/master/stdlib/experimental/bitwise/bitwise.flux#L289-L289
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
@ -30,7 +30,8 @@ Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
{{% warn %}}
#### Deprecated
`sor` is deprecated in favor of [`bitwise`](/flux/v0.x/stdlib/bitwise/sor/).
Experimental `bitwise.sor` is deprecated in favor of
[`bitwise.sor`](/flux/v0.x/stdlib/bitwise/sor/).
{{% /warn %}}
##### Function type signature

View File

@ -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/experimental/bitwise/bitwise.flux#L427-L427
https://github.com/influxdata/flux/blob/master/stdlib/experimental/bitwise/bitwise.flux#L441-L441
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
@ -32,7 +32,8 @@ Both `a` and `b` are integers.
{{% warn %}}
#### Deprecated
`srshift` is deprecated in favor of [`bitwise`](/flux/v0.x/stdlib/bitwise/srshift/).
Experimental `bitwise.srshift` is deprecated in favor of
[`bitwise.srshift`](/flux/v0.x/stdlib/bitwise/srshift/).
{{% /warn %}}
##### Function type signature

View File

@ -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/experimental/bitwise/bitwise.flux#L337-L337
https://github.com/influxdata/flux/blob/master/stdlib/experimental/bitwise/bitwise.flux#L348-L348
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
@ -30,7 +30,8 @@ Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
{{% warn %}}
#### Deprecated
`sxor` is deprecated in favor of [`bitwise`](/flux/v0.x/stdlib/bitwise/sxor/).
Experimental `bitwise.sxor` is deprecated in favor of
[`bitwise.sxor`](/flux/v0.x/stdlib/bitwise/sxor/).
{{% /warn %}}
##### Function type signature

View File

@ -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/experimental/bitwise/bitwise.flux#L47-L47
https://github.com/influxdata/flux/blob/master/stdlib/experimental/bitwise/bitwise.flux#L48-L48
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
@ -30,7 +30,8 @@ Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
{{% warn %}}
#### Deprecated
`uand` is deprecated in favor of [`bitwise`](/flux/v0.x/stdlib/bitwise/uand/).
Experimental `bitwise.uand` is deprecated in favor of
[`bitwise.uand`](/flux/v0.x/stdlib/bitwise/uand/).
{{% /warn %}}
##### Function type signature

View File

@ -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/experimental/bitwise/bitwise.flux#L162-L162
https://github.com/influxdata/flux/blob/master/stdlib/experimental/bitwise/bitwise.flux#L167-L167
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
@ -30,7 +30,8 @@ Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
{{% warn %}}
#### Deprecated
`uclear` is deprecated in favor of [`bitwise`](/flux/v0.x/stdlib/bitwise/uclear/).
Experimental `bitwise.uclear` is deprecated in favor of
[`bitwise.uclear`](/flux/v0.x/stdlib/bitwise/uclear/).
{{% /warn %}}
##### Function type signature

View File

@ -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/experimental/bitwise/bitwise.flux#L192-L192
https://github.com/influxdata/flux/blob/master/stdlib/experimental/bitwise/bitwise.flux#L198-L198
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
@ -32,7 +32,8 @@ Both `a` and `b` are unsigned integers.
{{% warn %}}
#### Deprecated
`ulshift` is deprecated in favor of [`bitwise`](/flux/v0.x/stdlib/bitwise/ulshift/).
Experimental `bitwise.ulshift` is deprecated in favor of
[`bitwise.ulshift`](/flux/v0.x/stdlib/bitwise/ulshift/).
{{% /warn %}}
##### Function type signature

View File

@ -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/experimental/bitwise/bitwise.flux#L104-L104
https://github.com/influxdata/flux/blob/master/stdlib/experimental/bitwise/bitwise.flux#L107-L107
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
@ -30,7 +30,8 @@ Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
{{% warn %}}
#### Deprecated
`unot` is deprecated in favor of [`bitwise`](/flux/v0.x/stdlib/bitwise/unot/).
Experimental `bitwise.unot` is deprecated in favor of
[`bitwise.unot`](/flux/v0.x/stdlib/bitwise/unot/).
{{% /warn %}}
##### Function type signature

View File

@ -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/experimental/bitwise/bitwise.flux#L76-L76
https://github.com/influxdata/flux/blob/master/stdlib/experimental/bitwise/bitwise.flux#L78-L78
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
@ -30,7 +30,8 @@ Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
{{% warn %}}
#### Deprecated
`uor` is deprecated in favor of [`bitwise`](/flux/v0.x/stdlib/bitwise/uor/).
Experimental `bitwise.uor` is deprecated in favor of
[`bitwise.uor`](/flux/v0.x/stdlib/bitwise/uor/).
{{% /warn %}}
##### Function type signature

View File

@ -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/experimental/bitwise/bitwise.flux#L222-L222
https://github.com/influxdata/flux/blob/master/stdlib/experimental/bitwise/bitwise.flux#L229-L229
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
@ -32,7 +32,8 @@ Both `a` and `b` are unsigned integers.
{{% warn %}}
#### Deprecated
`urshift` is deprecated in favor of [`bitwise`](/flux/v0.x/stdlib/bitwise/urshift/).
Experimental `bitwise.urshift` is deprecated in favor of
[`bitwise.urshift`](/flux/v0.x/stdlib/bitwise/urshift/).
{{% /warn %}}
##### Function type signature

View File

@ -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/experimental/bitwise/bitwise.flux#L133-L133
https://github.com/influxdata/flux/blob/master/stdlib/experimental/bitwise/bitwise.flux#L137-L137
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
@ -30,7 +30,8 @@ Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
{{% warn %}}
#### Deprecated
`uxor` is deprecated in favor of [`bitwise`](/flux/v0.x/stdlib/bitwise/uxor/).
Experimental `bitwise.uxor` is deprecated in favor of
[`bitwise.uxor`](/flux/v0.x/stdlib/bitwise/uxor/).
{{% /warn %}}
##### Function type signature

View File

@ -30,7 +30,7 @@ Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
{{% warn %}}
#### Deprecated
`csv.from()` is deprecated in favor of a combination of [`requests.get()`](/flux/v0.x/stdlib/http/requests/get/) and [`csv.from()`](/flux/v0.x/stdlib/csv/from/).
Experimental `csv.from()` is deprecated in favor of a combination of [`requests.get()`](/flux/v0.x/stdlib/http/requests/get/) and [`csv.from()`](/flux/v0.x/stdlib/csv/from/).
{{% /warn %}}
**Note:** Experimental `csv.from()` is an alternative to the standard

View File

@ -33,7 +33,7 @@ status code, response body, and response headers.
{{% warn %}}
#### Deprecated
`http.get()` is deprecated in favor of [`requests.get()`](/flux/v0.x/stdlib/http/requests/get/).
Experimental `http.get()` is deprecated in favor of [`requests.get()`](/flux/v0.x/stdlib/http/requests/get/).
{{% /warn %}}
## Response format

View File

@ -61,7 +61,8 @@ option requests.defaultConfig = {
Changing this config will affect all other packages using the requests package.
To change the config for a single request, pass a new config directly into the corresponding function.
**Deprecated**: `defautlConfig` is deprecated in favor of [`requests`](/flux/v0.x/stdlib/http/requests/#options).
**Deprecated**: Experimental `requests.defaultConfig` is deprecated in favor of
[`requests.defaultConfig`](/flux/v0.x/stdlib/http/requests/#options).
Do not mix usage of this experimental package with the `requests` package as the `defaultConfig` is not shared between the two packages.

View File

@ -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/experimental/http/requests/requests.flux#L138-L156
https://github.com/influxdata/flux/blob/master/stdlib/experimental/http/requests/requests.flux#L139-L157
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
@ -31,7 +31,7 @@ Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
{{% warn %}}
#### Deprecated
`do` is deprecated in favor of [`requests`](/flux/v0.x/stdlib/http/requests/do/).
Experimental `requests.do` is deprecated in favor of [`requests.do`](/flux/v0.x/stdlib/http/requests/do/).
{{% /warn %}}
The returned response contains the following properties:

View File

@ -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/experimental/http/requests/requests.flux#L272-L289
https://github.com/influxdata/flux/blob/master/stdlib/experimental/http/requests/requests.flux#L273-L290
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
@ -31,7 +31,7 @@ Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
{{% warn %}}
#### Deprecated
`get` is deprecated in favor of [`requests`](/flux/v0.x/stdlib/http/requests/get/).
Experimental `requests.get` is deprecated in favor of [`requests.get`](/flux/v0.x/stdlib/http/requests/get/).
{{% /warn %}}
##### Function type signature

View File

@ -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/experimental/http/requests/requests.flux#L324-L324
https://github.com/influxdata/flux/blob/master/stdlib/experimental/http/requests/requests.flux#L325-L325
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
@ -30,7 +30,7 @@ Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
{{% warn %}}
#### Deprecated
`peek` is deprecated in favor of [`requests`](/flux/v0.x/stdlib/http/requests/peek/).
Experimental `requests.peek` is deprecated in favor of [`requests.peek`](/flux/v0.x/stdlib/http/requests/peek/).
{{% /warn %}}
The output table includes the following columns:
@ -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: Wed, 02 Nov 2022 17:52:48 GMT,
Date: Wed, 09 Nov 2022 15:19:49 GMT,
Server: nginx/1.16.1,
X-Rate-Limit-Limit: 1000,
X-Rate-Limit-Remaining: 998,
X-Rate-Limit-Reset: 22032,
X-Request-Id: FyPV_MovhXm2WygJJqdy
X-Rate-Limit-Reset: 31211,
X-Request-Id: FyXzs6Sky4PjWigS3t6y
] | 200 |
{{% /expand %}}

View File

@ -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/experimental/http/requests/requests.flux#L195-L212
https://github.com/influxdata/flux/blob/master/stdlib/experimental/http/requests/requests.flux#L196-L213
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
@ -31,7 +31,7 @@ Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
{{% warn %}}
#### Deprecated
`post` is deprecated in favor of [`requests`](/flux/v0.x/stdlib/http/requests/post/).
Experimental `requests.post` is deprecated in favor of [`requests.post`](/flux/v0.x/stdlib/http/requests/post/).
{{% /warn %}}
##### Function type signature

View File

@ -107,44 +107,44 @@ data
| _time | _value |
| -------------------- | ------------------- |
| 2022-11-02T17:50:00Z | 10.56555566168836 |
| 2022-11-02T17:50:10Z | -29.76098586714259 |
| 2022-11-02T17:50:20Z | -67.50435038579738 |
| 2022-11-02T17:50:30Z | -16.758669047964453 |
| 2022-11-02T17:50:40Z | -47.25865245658065 |
| 2022-11-02T17:50:50Z | 66.16082461651365 |
| 2022-11-02T17:51:00Z | -0.9179216017921821 |
| 2022-11-02T17:51:10Z | -56.89169240573004 |
| 2022-11-02T17:51:20Z | 11.358605472976624 |
| 2022-11-02T17:51:30Z | 28.71147881415803 |
| 2022-11-02T17:51:40Z | -30.928830759588756 |
| 2022-11-02T17:51:50Z | -22.411848631056067 |
| 2022-11-02T17:52:00Z | 17.05503606764129 |
| 2022-11-02T17:52:10Z | 9.834382683760559 |
| 2022-11-02T17:52:20Z | -12.62058579127679 |
| 2022-11-02T17:52:30Z | -44.44668391211515 |
| 2022-11-09T15:17:10Z | 10.56555566168836 |
| 2022-11-09T15:17:20Z | -29.76098586714259 |
| 2022-11-09T15:17:30Z | -67.50435038579738 |
| 2022-11-09T15:17:40Z | -16.758669047964453 |
| 2022-11-09T15:17:50Z | -47.25865245658065 |
| 2022-11-09T15:18:00Z | 66.16082461651365 |
| 2022-11-09T15:18:10Z | -0.9179216017921821 |
| 2022-11-09T15:18:20Z | -56.89169240573004 |
| 2022-11-09T15:18:30Z | 11.358605472976624 |
| 2022-11-09T15:18:40Z | 28.71147881415803 |
| 2022-11-09T15:18:50Z | -30.928830759588756 |
| 2022-11-09T15:19:00Z | -22.411848631056067 |
| 2022-11-09T15:19:10Z | 17.05503606764129 |
| 2022-11-09T15:19:20Z | 9.834382683760559 |
| 2022-11-09T15:19:30Z | -12.62058579127679 |
| 2022-11-09T15:19:40Z | -44.44668391211515 |
#### Output data
| _time | _value |
| -------------------- | ------------------- |
| 2022-11-02T17:50:00Z | 10.56555566168836 |
| 2022-11-02T17:50:10Z | -29.76098586714259 |
| 2022-11-02T17:50:20Z | -67.50435038579738 |
| 2022-11-02T17:50:30Z | -16.758669047964453 |
| 2022-11-02T17:50:40Z | -47.25865245658065 |
| 2022-11-02T17:50:50Z | 66.16082461651365 |
| 2022-11-02T17:51:00Z | -0.9179216017921821 |
| 2022-11-02T17:51:10Z | -56.89169240573004 |
| 2022-11-02T17:51:20Z | 11.358605472976624 |
| 2022-11-02T17:51:30Z | 28.71147881415803 |
| 2022-11-02T17:51:40Z | -30.928830759588756 |
| 2022-11-02T17:51:50Z | -22.411848631056067 |
| 2022-11-02T17:52:00Z | 17.05503606764129 |
| 2022-11-02T17:52:10Z | 9.834382683760559 |
| 2022-11-02T17:52:20Z | -12.62058579127679 |
| 2022-11-02T17:52:30Z | -44.44668391211515 |
| 2022-11-09T15:17:10Z | 10.56555566168836 |
| 2022-11-09T15:17:20Z | -29.76098586714259 |
| 2022-11-09T15:17:30Z | -67.50435038579738 |
| 2022-11-09T15:17:40Z | -16.758669047964453 |
| 2022-11-09T15:17:50Z | -47.25865245658065 |
| 2022-11-09T15:18:00Z | 66.16082461651365 |
| 2022-11-09T15:18:10Z | -0.9179216017921821 |
| 2022-11-09T15:18:20Z | -56.89169240573004 |
| 2022-11-09T15:18:30Z | 11.358605472976624 |
| 2022-11-09T15:18:40Z | 28.71147881415803 |
| 2022-11-09T15:18:50Z | -30.928830759588756 |
| 2022-11-09T15:19:00Z | -22.411848631056067 |
| 2022-11-09T15:19:10Z | 17.05503606764129 |
| 2022-11-09T15:19:20Z | 9.834382683760559 |
| 2022-11-09T15:19:30Z | -12.62058579127679 |
| 2022-11-09T15:19:40Z | -44.44668391211515 |
{{% /expand %}}
{{< /expand-wrapper >}}
@ -166,43 +166,43 @@ data
| _time | _value |
| -------------------- | ------------------- |
| 2022-11-02T17:50:00Z | 10.56555566168836 |
| 2022-11-02T17:50:10Z | -29.76098586714259 |
| 2022-11-02T17:50:20Z | -67.50435038579738 |
| 2022-11-02T17:50:30Z | -16.758669047964453 |
| 2022-11-02T17:50:40Z | -47.25865245658065 |
| 2022-11-02T17:50:50Z | 66.16082461651365 |
| 2022-11-02T17:51:00Z | -0.9179216017921821 |
| 2022-11-02T17:51:10Z | -56.89169240573004 |
| 2022-11-02T17:51:20Z | 11.358605472976624 |
| 2022-11-02T17:51:30Z | 28.71147881415803 |
| 2022-11-02T17:51:40Z | -30.928830759588756 |
| 2022-11-02T17:51:50Z | -22.411848631056067 |
| 2022-11-02T17:52:00Z | 17.05503606764129 |
| 2022-11-02T17:52:10Z | 9.834382683760559 |
| 2022-11-02T17:52:20Z | -12.62058579127679 |
| 2022-11-02T17:52:30Z | -44.44668391211515 |
| 2022-11-09T15:17:10Z | 10.56555566168836 |
| 2022-11-09T15:17:20Z | -29.76098586714259 |
| 2022-11-09T15:17:30Z | -67.50435038579738 |
| 2022-11-09T15:17:40Z | -16.758669047964453 |
| 2022-11-09T15:17:50Z | -47.25865245658065 |
| 2022-11-09T15:18:00Z | 66.16082461651365 |
| 2022-11-09T15:18:10Z | -0.9179216017921821 |
| 2022-11-09T15:18:20Z | -56.89169240573004 |
| 2022-11-09T15:18:30Z | 11.358605472976624 |
| 2022-11-09T15:18:40Z | 28.71147881415803 |
| 2022-11-09T15:18:50Z | -30.928830759588756 |
| 2022-11-09T15:19:00Z | -22.411848631056067 |
| 2022-11-09T15:19:10Z | 17.05503606764129 |
| 2022-11-09T15:19:20Z | 9.834382683760559 |
| 2022-11-09T15:19:30Z | -12.62058579127679 |
| 2022-11-09T15:19:40Z | -44.44668391211515 |
#### Output data
| _time | _value |
| -------------------- | ------------------- |
| 2022-11-02T17:50:00Z | 10.56555566168836 |
| 2022-11-02T17:50:20Z | -67.50435038579738 |
| 2022-11-02T17:50:30Z | -16.758669047964453 |
| 2022-11-02T17:50:40Z | -47.25865245658065 |
| 2022-11-02T17:50:50Z | 66.16082461651365 |
| 2022-11-02T17:51:00Z | -0.9179216017921821 |
| 2022-11-02T17:51:10Z | -56.89169240573004 |
| 2022-11-02T17:51:20Z | 11.358605472976624 |
| 2022-11-02T17:51:30Z | 28.71147881415803 |
| 2022-11-02T17:51:40Z | -30.928830759588756 |
| 2022-11-02T17:51:50Z | -22.411848631056067 |
| 2022-11-02T17:52:00Z | 17.05503606764129 |
| 2022-11-02T17:52:10Z | 9.834382683760559 |
| 2022-11-02T17:52:20Z | -12.62058579127679 |
| 2022-11-02T17:52:30Z | -44.44668391211515 |
| 2022-11-09T15:17:10Z | 10.56555566168836 |
| 2022-11-09T15:17:30Z | -67.50435038579738 |
| 2022-11-09T15:17:40Z | -16.758669047964453 |
| 2022-11-09T15:17:50Z | -47.25865245658065 |
| 2022-11-09T15:18:00Z | 66.16082461651365 |
| 2022-11-09T15:18:10Z | -0.9179216017921821 |
| 2022-11-09T15:18:20Z | -56.89169240573004 |
| 2022-11-09T15:18:30Z | 11.358605472976624 |
| 2022-11-09T15:18:40Z | 28.71147881415803 |
| 2022-11-09T15:18:50Z | -30.928830759588756 |
| 2022-11-09T15:19:00Z | -22.411848631056067 |
| 2022-11-09T15:19:10Z | 17.05503606764129 |
| 2022-11-09T15:19:20Z | 9.834382683760559 |
| 2022-11-09T15:19:30Z | -12.62058579127679 |
| 2022-11-09T15:19:40Z | -44.44668391211515 |
{{% /expand %}}
{{< /expand-wrapper >}}
@ -224,42 +224,42 @@ data
| _time | _value |
| -------------------- | ------------------- |
| 2022-11-02T17:50:00Z | 10.56555566168836 |
| 2022-11-02T17:50:10Z | -29.76098586714259 |
| 2022-11-02T17:50:20Z | -67.50435038579738 |
| 2022-11-02T17:50:30Z | -16.758669047964453 |
| 2022-11-02T17:50:40Z | -47.25865245658065 |
| 2022-11-02T17:50:50Z | 66.16082461651365 |
| 2022-11-02T17:51:00Z | -0.9179216017921821 |
| 2022-11-02T17:51:10Z | -56.89169240573004 |
| 2022-11-02T17:51:20Z | 11.358605472976624 |
| 2022-11-02T17:51:30Z | 28.71147881415803 |
| 2022-11-02T17:51:40Z | -30.928830759588756 |
| 2022-11-02T17:51:50Z | -22.411848631056067 |
| 2022-11-02T17:52:00Z | 17.05503606764129 |
| 2022-11-02T17:52:10Z | 9.834382683760559 |
| 2022-11-02T17:52:20Z | -12.62058579127679 |
| 2022-11-02T17:52:30Z | -44.44668391211515 |
| 2022-11-09T15:17:10Z | 10.56555566168836 |
| 2022-11-09T15:17:20Z | -29.76098586714259 |
| 2022-11-09T15:17:30Z | -67.50435038579738 |
| 2022-11-09T15:17:40Z | -16.758669047964453 |
| 2022-11-09T15:17:50Z | -47.25865245658065 |
| 2022-11-09T15:18:00Z | 66.16082461651365 |
| 2022-11-09T15:18:10Z | -0.9179216017921821 |
| 2022-11-09T15:18:20Z | -56.89169240573004 |
| 2022-11-09T15:18:30Z | 11.358605472976624 |
| 2022-11-09T15:18:40Z | 28.71147881415803 |
| 2022-11-09T15:18:50Z | -30.928830759588756 |
| 2022-11-09T15:19:00Z | -22.411848631056067 |
| 2022-11-09T15:19:10Z | 17.05503606764129 |
| 2022-11-09T15:19:20Z | 9.834382683760559 |
| 2022-11-09T15:19:30Z | -12.62058579127679 |
| 2022-11-09T15:19:40Z | -44.44668391211515 |
#### Output data
| _time | _value |
| -------------------- | ------------------- |
| 2022-11-02T17:50:00Z | 10.56555566168836 |
| 2022-11-02T17:50:20Z | -67.50435038579738 |
| 2022-11-02T17:50:30Z | -16.758669047964453 |
| 2022-11-02T17:50:40Z | -47.25865245658065 |
| 2022-11-02T17:50:50Z | 66.16082461651365 |
| 2022-11-02T17:51:00Z | -0.9179216017921821 |
| 2022-11-02T17:51:10Z | -56.89169240573004 |
| 2022-11-02T17:51:20Z | 11.358605472976624 |
| 2022-11-02T17:51:30Z | 28.71147881415803 |
| 2022-11-02T17:51:40Z | -30.928830759588756 |
| 2022-11-02T17:51:50Z | -22.411848631056067 |
| 2022-11-02T17:52:00Z | 17.05503606764129 |
| 2022-11-02T17:52:10Z | 9.834382683760559 |
| 2022-11-02T17:52:30Z | -44.44668391211515 |
| 2022-11-09T15:17:10Z | 10.56555566168836 |
| 2022-11-09T15:17:30Z | -67.50435038579738 |
| 2022-11-09T15:17:40Z | -16.758669047964453 |
| 2022-11-09T15:17:50Z | -47.25865245658065 |
| 2022-11-09T15:18:00Z | 66.16082461651365 |
| 2022-11-09T15:18:10Z | -0.9179216017921821 |
| 2022-11-09T15:18:20Z | -56.89169240573004 |
| 2022-11-09T15:18:30Z | 11.358605472976624 |
| 2022-11-09T15:18:40Z | 28.71147881415803 |
| 2022-11-09T15:18:50Z | -30.928830759588756 |
| 2022-11-09T15:19:00Z | -22.411848631056067 |
| 2022-11-09T15:19:10Z | 17.05503606764129 |
| 2022-11-09T15:19:20Z | 9.834382683760559 |
| 2022-11-09T15:19:40Z | -44.44668391211515 |
{{% /expand %}}
{{< /expand-wrapper >}}

View File

@ -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: Wed, 02 Nov 2022 17:52:50 GMT,
Date: Wed, 09 Nov 2022 15:19:51 GMT,
Server: nginx/1.16.1,
X-Rate-Limit-Limit: 1000,
X-Rate-Limit-Remaining: 996,
X-Rate-Limit-Reset: 22030,
X-Request-Id: FyPV_RiwO6f_Aa4KMKDB
X-Rate-Limit-Reset: 31209,
X-Request-Id: FyXztAJ6QF0AgOEUtuBB
] | 200 |
{{% /expand %}}

View File

@ -189,12 +189,12 @@ requests.peek(response: response)
Cache-Control: max-age=604800,
Content-Length: 1256,
Content-Type: text/html; charset=UTF-8,
Date: Wed, 02 Nov 2022 17:52:50 GMT,
Date: Wed, 09 Nov 2022 15:19:52 GMT,
Etag: "3147526947",
Expires: Wed, 09 Nov 2022 17:52:50 GMT,
Expires: Wed, 16 Nov 2022 15:19:52 GMT,
Last-Modified: Thu, 17 Oct 2019 07:18:26 GMT,
Server: EOS (vny/0454)
] | 97549784 |
Server: EOS (vny/0452)
] | 160095301 |
{{% /expand %}}
{{< /expand-wrapper >}}

View File

@ -77,17 +77,11 @@ data
| 2021-01-01T00:00:00Z | -2 | t1 | m | f1 |
| 2021-01-01T00:00:50Z | 4 | t1 | m | f1 |
| _time | _value | *tag | *_field | _measurement |
| ------ | ------- | ---- | ------- | ------------- |
| _time | _value | *tag | *_field | _measurement |
| -------------------- | ------- | ---- | ------- | ------------- |
| 2021-01-01T00:00:10Z | 4 | t2 | f1 | m |
| 2021-01-01T00:00:20Z | -3 | t2 | f1 | m |
| 2021-01-01T00:00:50Z | 1 | t2 | f1 | m |
| _time | _value | *tag | _measurement | *_field |
| ------ | ------- | ---- | ------------- | ------- |
| _time | _value | *tag | _measurement | *_field |
| -------------------- | ------- | ---- | ------------- | ------- |
| 2021-01-01T00:00:10Z | 4 | t2 | m | f1 |
| 2021-01-01T00:00:20Z | -3 | t2 | m | f1 |
| 2021-01-01T00:00:50Z | 1 | t2 | m | f1 |
| _time | _value | *tag | _measurement | *_field |
| -------------------- | ------- | ---- | ------------- | ------- |
@ -99,14 +93,11 @@ data
| 2021-01-01T00:00:30Z | 17 | t1 | m | f3 |
| 2021-01-01T00:00:40Z | 15 | t1 | m | f3 |
| _time | _value | *tag | *_field | _measurement |
| ------ | ------- | ---- | ------- | ------------- |
| _time | _value | *tag | *_field | _measurement |
| -------------------- | ------- | ---- | ------- | ------------- |
| 2021-01-01T00:00:00Z | 19 | t2 | f3 | m |
| 2021-01-01T00:00:30Z | 19 | t2 | f3 | m |
| 2021-01-01T00:00:40Z | 13 | t2 | f3 | m |
| _time | _value | *tag | _measurement | *_field |
| -------------------- | ------- | ---- | ------------- | ------- |
| 2021-01-01T00:00:00Z | 19 | t2 | m | f3 |
| 2021-01-01T00:00:30Z | 19 | t2 | m | f3 |
| 2021-01-01T00:00:40Z | 13 | t2 | m | f3 |
#### Output data
@ -116,17 +107,11 @@ data
| 2021-01-01T00:00:00Z | -2 | t1 | m | f1 |
| 2021-01-01T00:00:50Z | 4 | t1 | m | f1 |
| _time | _value | *tag | *_field | _measurement |
| ------ | ------- | ---- | ------- | ------------- |
| _time | _value | *tag | *_field | _measurement |
| -------------------- | ------- | ---- | ------- | ------------- |
| 2021-01-01T00:00:10Z | 4 | t2 | f1 | m |
| 2021-01-01T00:00:20Z | -3 | t2 | f1 | m |
| 2021-01-01T00:00:50Z | 1 | t2 | f1 | m |
| _time | _value | *tag | _measurement | *_field |
| ------ | ------- | ---- | ------------- | ------- |
| _time | _value | *tag | _measurement | *_field |
| -------------------- | ------- | ---- | ------------- | ------- |
| 2021-01-01T00:00:10Z | 4 | t2 | m | f1 |
| 2021-01-01T00:00:20Z | -3 | t2 | m | f1 |
| 2021-01-01T00:00:50Z | 1 | t2 | m | f1 |
| _time | _value | *tag | _measurement | *_field |
| -------------------- | ------- | ---- | ------------- | ------- |

View File

@ -193,20 +193,20 @@ sampledata.int()
#### Output data
| time | source | alert |
| -------------------- | ------- | ------ |
| 2021-01-01T00:00:00Z | t1 | false |
| 2021-01-01T00:00:10Z | t1 | false |
| 2021-01-01T00:00:20Z | t1 | false |
| 2021-01-01T00:00:30Z | t1 | true |
| 2021-01-01T00:00:40Z | t1 | true |
| 2021-01-01T00:00:50Z | t1 | false |
| 2021-01-01T00:00:00Z | t2 | true |
| 2021-01-01T00:00:10Z | t2 | false |
| 2021-01-01T00:00:20Z | t2 | false |
| 2021-01-01T00:00:30Z | t2 | true |
| 2021-01-01T00:00:40Z | t2 | true |
| 2021-01-01T00:00:50Z | t2 | false |
| source | alert | time |
| ------- | ------ | -------------------- |
| t1 | false | 2021-01-01T00:00:00Z |
| t1 | false | 2021-01-01T00:00:10Z |
| t1 | false | 2021-01-01T00:00:20Z |
| t1 | true | 2021-01-01T00:00:30Z |
| t1 | true | 2021-01-01T00:00:40Z |
| t1 | false | 2021-01-01T00:00:50Z |
| t2 | true | 2021-01-01T00:00:00Z |
| t2 | false | 2021-01-01T00:00:10Z |
| t2 | false | 2021-01-01T00:00:20Z |
| t2 | true | 2021-01-01T00:00:30Z |
| t2 | true | 2021-01-01T00:00:40Z |
| t2 | false | 2021-01-01T00:00:50Z |
{{% /expand %}}
{{< /expand-wrapper >}}