Flux 0.176 (#4253)
* flux 0.176 stdlib changes * Flux 0.176.0 release notes (#4251)pull/4247/head^2
parent
3eca735a53
commit
8d170ad792
|
@ -10,6 +10,19 @@ aliases:
|
|||
- /influxdb/cloud/reference/release-notes/flux/
|
||||
---
|
||||
|
||||
## v0.176.0 [2022-07-25]
|
||||
|
||||
## Features
|
||||
- Promote various feature-flagged features and optimizations to be used by default.
|
||||
|
||||
### Bug fixes
|
||||
- Support the [`location` option](/flux/v0.x/stdlib/internal/location/#options)
|
||||
in the [`boundaries` package](/flux/v0.x/stdlib/date/boundaries/).
|
||||
- Pass epsilon value from Go tests to the Flux test framework.
|
||||
- Ignore unknown messages rather than erroring.
|
||||
|
||||
---
|
||||
|
||||
## v0.175.0 [2022-07-19]
|
||||
|
||||
### Features
|
||||
|
|
|
@ -133,13 +133,13 @@ data
|
|||
|
||||
#### Output data
|
||||
|
||||
| *_start | *_stop | *tag | example-name | _time |
|
||||
| -------------------- | -------------------- | ---- | ------------- | -------------------- |
|
||||
| 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | t1 | 51 | 2021-01-01T00:01:00Z |
|
||||
| _time | *_start | *_stop | *tag | example-name |
|
||||
| -------------------- | -------------------- | -------------------- | ---- | ------------- |
|
||||
| 2021-01-01T00:01:00Z | 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | t1 | 51 |
|
||||
|
||||
| *_start | *_stop | *tag | example-name | _time |
|
||||
| -------------------- | -------------------- | ---- | ------------- | -------------------- |
|
||||
| 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | t2 | 53 | 2021-01-01T00:01:00Z |
|
||||
| _time | *_start | *_stop | *tag | example-name |
|
||||
| -------------------- | -------------------- | -------------------- | ---- | ------------- |
|
||||
| 2021-01-01T00:01:00Z | 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | t2 | 53 |
|
||||
|
||||
{{% /expand %}}
|
||||
{{< /expand-wrapper >}}
|
||||
|
|
|
@ -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/boundaries/boundaries.flux#L267-L269
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/boundaries/boundaries.flux#L254-L256
|
||||
|
||||
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/boundaries/boundaries.flux#L124-L126
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/boundaries/boundaries.flux#L111-L113
|
||||
|
||||
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/boundaries/boundaries.flux#L391-L397
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/boundaries/boundaries.flux#L378-L384
|
||||
|
||||
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/boundaries/boundaries.flux#L303-L305
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/boundaries/boundaries.flux#L290-L292
|
||||
|
||||
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/boundaries/boundaries.flux#L339-L341
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/boundaries/boundaries.flux#L326-L328
|
||||
|
||||
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/boundaries/boundaries.flux#L231-L233
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/boundaries/boundaries.flux#L218-L220
|
||||
|
||||
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/boundaries/boundaries.flux#L160-L162
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/boundaries/boundaries.flux#L147-L149
|
||||
|
||||
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/boundaries/boundaries.flux#L196-L198
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/boundaries/boundaries.flux#L183-L185
|
||||
|
||||
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/boundaries/boundaries.flux#L461-L467
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/boundaries/boundaries.flux#L448-L454
|
||||
|
||||
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/boundaries/boundaries.flux#L44-L48
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/date/boundaries/boundaries.flux#L44-L46
|
||||
|
||||
Contributing to Flux: https://github.com/influxdata/flux#contributing
|
||||
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
||||
|
|
|
@ -87,12 +87,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, 19 Jul 2022 16:09:23 GMT,
|
||||
Date: Mon, 25 Jul 2022 16:54:59 GMT,
|
||||
Etag: W/"29-klDahUESBLxHyQ7NiaetCn2CvCI",
|
||||
Server: nginx/1.16.1,
|
||||
X-Rate-Limit-Limit: 1000,
|
||||
X-Rate-Limit-Remaining: 998,
|
||||
X-Rate-Reset: 28237
|
||||
X-Rate-Reset: 25501
|
||||
] | 200 |
|
||||
|
||||
{{% /expand %}}
|
||||
|
|
|
@ -8,6 +8,9 @@ menu:
|
|||
parent: experimental
|
||||
identifier: experimental/iox
|
||||
weight: 21
|
||||
cascade:
|
||||
|
||||
introduced: 0.152.0
|
||||
---
|
||||
|
||||
<!------------------------------------------------------------------------------
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
---
|
||||
title: iox.from() function
|
||||
description: >
|
||||
`iox.from()` reads from the selected bucket and measurement in an iox storage node.
|
||||
`iox.from()` reads from the selected bucket and measurement in an IOx storage node.
|
||||
menu:
|
||||
flux_0_x_ref:
|
||||
name: iox.from
|
||||
parent: experimental/iox
|
||||
identifier: experimental/iox/from
|
||||
weight: 201
|
||||
flux/v0.x/tags: [inputs]
|
||||
---
|
||||
|
||||
<!------------------------------------------------------------------------------
|
||||
|
@ -19,14 +20,14 @@ 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/iox/iox.flux#L14-L14
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/experimental/iox/iox.flux#L20-L20
|
||||
|
||||
Contributing to Flux: https://github.com/influxdata/flux#contributing
|
||||
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
||||
|
||||
------------------------------------------------------------------------------->
|
||||
|
||||
`iox.from()` reads from the selected bucket and measurement in an iox storage node.
|
||||
`iox.from()` reads from the selected bucket and measurement in an IOx storage node.
|
||||
|
||||
This function creates a source that reads data from IOx. Output data is
|
||||
"pivoted" on the time column and includes columns for each returned
|
||||
|
|
|
@ -196,10 +196,10 @@ array.from(
|
|||
|
||||
#### Output data
|
||||
|
||||
| color | pendingDuration | id |
|
||||
| ------ | ---------------- | -------- |
|
||||
| red | 3 | 15612462 |
|
||||
| blue | 16 | 15612462 |
|
||||
| id | color | pendingDuration |
|
||||
| -------- | ------ | ---------------- |
|
||||
| 15612462 | red | 3 |
|
||||
| 15612462 | blue | 16 |
|
||||
|
||||
{{% /expand %}}
|
||||
{{< /expand-wrapper >}}
|
||||
|
|
|
@ -82,12 +82,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, 19 Jul 2022 16:09:25 GMT,
|
||||
Date: Mon, 25 Jul 2022 16:55:00 GMT,
|
||||
Etag: W/"29-klDahUESBLxHyQ7NiaetCn2CvCI",
|
||||
Server: nginx/1.16.1,
|
||||
X-Rate-Limit-Limit: 1000,
|
||||
X-Rate-Limit-Remaining: 996,
|
||||
X-Rate-Reset: 28234
|
||||
X-Rate-Reset: 25499
|
||||
] | 200 |
|
||||
|
||||
{{% /expand %}}
|
||||
|
|
|
@ -8,6 +8,9 @@ menu:
|
|||
parent: internal
|
||||
identifier: internal/boolean
|
||||
weight: 21
|
||||
cascade:
|
||||
|
||||
introduced: 0.129.0
|
||||
---
|
||||
|
||||
<!------------------------------------------------------------------------------
|
||||
|
|
|
@ -8,6 +8,9 @@ menu:
|
|||
parent: internal
|
||||
identifier: internal/debug
|
||||
weight: 21
|
||||
cascade:
|
||||
|
||||
introduced: 0.68.0
|
||||
---
|
||||
|
||||
<!------------------------------------------------------------------------------
|
||||
|
|
|
@ -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/internal/debug/debug.flux#L51-L51
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/debug/debug.flux#L54-L54
|
||||
|
||||
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/internal/debug/debug.flux#L44-L44
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/debug/debug.flux#L47-L47
|
||||
|
||||
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/internal/debug/debug.flux#L20-L20
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/debug/debug.flux#L23-L23
|
||||
|
||||
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/internal/debug/debug.flux#L11-L11
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/debug/debug.flux#L14-L14
|
||||
|
||||
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/internal/debug/debug.flux#L36-L36
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/debug/debug.flux#L39-L39
|
||||
|
||||
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/internal/debug/debug.flux#L29-L29
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/debug/debug.flux#L32-L32
|
||||
|
||||
Contributing to Flux: https://github.com/influxdata/flux#contributing
|
||||
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
||||
|
|
|
@ -8,6 +8,9 @@ menu:
|
|||
parent: internal
|
||||
identifier: internal/gen
|
||||
weight: 21
|
||||
cascade:
|
||||
|
||||
introduced: 0.50.0
|
||||
---
|
||||
|
||||
<!------------------------------------------------------------------------------
|
||||
|
|
|
@ -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/internal/gen/gen.flux#L12-L17
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/gen/gen.flux#L15-L20
|
||||
|
||||
Contributing to Flux: https://github.com/influxdata/flux#contributing
|
||||
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
||||
|
|
|
@ -8,6 +8,9 @@ menu:
|
|||
parent: internal
|
||||
identifier: internal/influxql
|
||||
weight: 21
|
||||
cascade:
|
||||
|
||||
introduced: 0.60.0
|
||||
---
|
||||
|
||||
<!------------------------------------------------------------------------------
|
||||
|
|
|
@ -8,6 +8,9 @@ menu:
|
|||
parent: internal
|
||||
identifier: internal/location
|
||||
weight: 21
|
||||
cascade:
|
||||
|
||||
introduced: 0.149.0
|
||||
---
|
||||
|
||||
<!------------------------------------------------------------------------------
|
||||
|
|
|
@ -8,6 +8,9 @@ menu:
|
|||
parent: internal
|
||||
identifier: internal/promql
|
||||
weight: 21
|
||||
cascade:
|
||||
|
||||
introduced: 0.47.0
|
||||
---
|
||||
|
||||
<!------------------------------------------------------------------------------
|
||||
|
|
|
@ -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/internal/promql/promql.flux#L16-L16
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/promql/promql.flux#L19-L19
|
||||
|
||||
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/internal/promql/promql.flux#L42-L42
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/promql/promql.flux#L45-L45
|
||||
|
||||
Contributing to Flux: https://github.com/influxdata/flux#contributing
|
||||
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
||||
|
|
|
@ -25,7 +25,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/internal/promql/promql.flux#L56-L60
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/promql/promql.flux#L59-L63
|
||||
|
||||
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/internal/promql/promql.flux#L69-L73
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/promql/promql.flux#L72-L76
|
||||
|
||||
Contributing to Flux: https://github.com/influxdata/flux#contributing
|
||||
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
||||
|
|
|
@ -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/internal/promql/promql.flux#L90-L93
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/promql/promql.flux#L93-L96
|
||||
|
||||
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/internal/promql/promql.flux#L212-L212
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/promql/promql.flux#L215-L215
|
||||
|
||||
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/internal/promql/promql.flux#L104-L110
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/promql/promql.flux#L107-L113
|
||||
|
||||
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/internal/promql/promql.flux#L122-L126
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/promql/promql.flux#L125-L129
|
||||
|
||||
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/internal/promql/promql.flux#L151-L160
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/promql/promql.flux#L154-L163
|
||||
|
||||
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/internal/promql/promql.flux#L23-L23
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/promql/promql.flux#L26-L26
|
||||
|
||||
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/internal/promql/promql.flux#L30-L30
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/promql/promql.flux#L33-L33
|
||||
|
||||
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/internal/promql/promql.flux#L37-L37
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/promql/promql.flux#L40-L40
|
||||
|
||||
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/internal/promql/promql.flux#L80-L80
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/promql/promql.flux#L83-L83
|
||||
|
||||
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/internal/promql/promql.flux#L133-L133
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/promql/promql.flux#L136-L136
|
||||
|
||||
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/internal/promql/promql.flux#L140-L140
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/promql/promql.flux#L143-L143
|
||||
|
||||
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/internal/promql/promql.flux#L181-L181
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/promql/promql.flux#L184-L184
|
||||
|
||||
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/internal/promql/promql.flux#L191-L201
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/promql/promql.flux#L194-L204
|
||||
|
||||
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/internal/promql/promql.flux#L167-L167
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/promql/promql.flux#L170-L170
|
||||
|
||||
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/internal/promql/promql.flux#L174-L174
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/promql/promql.flux#L177-L177
|
||||
|
||||
Contributing to Flux: https://github.com/influxdata/flux#contributing
|
||||
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
||||
|
|
|
@ -8,6 +8,9 @@ menu:
|
|||
parent: internal
|
||||
identifier: internal/testutil
|
||||
weight: 21
|
||||
cascade:
|
||||
|
||||
introduced: 0.68.0
|
||||
---
|
||||
|
||||
<!------------------------------------------------------------------------------
|
||||
|
|
|
@ -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/internal/testutil/testutil.flux#L6-L6
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/testutil/testutil.flux#L9-L9
|
||||
|
||||
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/internal/testutil/testutil.flux#L24-L24
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/testutil/testutil.flux#L27-L27
|
||||
|
||||
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/internal/testutil/testutil.flux#L18-L18
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/testutil/testutil.flux#L21-L21
|
||||
|
||||
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/internal/testutil/testutil.flux#L12-L12
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/internal/testutil/testutil.flux#L15-L15
|
||||
|
||||
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/pagerduty/pagerduty.flux#L306-L335
|
||||
https://github.com/influxdata/flux/blob/master/stdlib/pagerduty/pagerduty.flux#L306-L338
|
||||
|
||||
Contributing to Flux: https://github.com/influxdata/flux#contributing
|
||||
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
||||
|
@ -40,8 +40,8 @@ Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
|||
r: {A with _pagerdutyDedupKey: string},
|
||||
) => {
|
||||
B with
|
||||
timestamp: L,
|
||||
summary: K,
|
||||
timestamp: K,
|
||||
summary: string,
|
||||
source: J,
|
||||
severity: I,
|
||||
routingKey: H,
|
||||
|
@ -51,7 +51,7 @@ Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
|||
client: D,
|
||||
class: C,
|
||||
},
|
||||
) => (<-tables: stream[A]) => stream[{A with _status: string, _sent: string, _pagerdutyDedupKey: string}]
|
||||
) => (<-tables: stream[A]) => stream[{A with _status: string, _sent: string, _pagerdutyDedupKey: string, _body: string}]
|
||||
```
|
||||
|
||||
{{% caption %}}For more information, see [Function type signatures](/flux/v0.x/function-type-signatures/).{{% /caption %}}
|
||||
|
|
|
@ -44,12 +44,12 @@ Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
|
|||
routingKey: G,
|
||||
severity: H,
|
||||
source: I,
|
||||
summary: J,
|
||||
timestamp: K,
|
||||
?component: L,
|
||||
?customDetails: M,
|
||||
summary: string,
|
||||
timestamp: J,
|
||||
?component: K,
|
||||
?customDetails: L,
|
||||
?pagerdutyURL: string,
|
||||
) => int where M: Equatable
|
||||
) => {statusCode: int, headers: [string:string], duration: duration, body: bytes} where L: Equatable
|
||||
```
|
||||
|
||||
{{% caption %}}For more information, see [Function type signatures](/flux/v0.x/function-type-signatures/).{{% /caption %}}
|
||||
|
|
|
@ -187,18 +187,18 @@ union(tables: [nonNumericData, numericData])
|
|||
| 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | 2021-01-01T00:00:30Z | bool | false |
|
||||
| 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | 2021-01-01T00:01:00Z | bool | false |
|
||||
|
||||
| *_start | *_stop | *type | _value | _time |
|
||||
| ------- | ------ | ----- | ------- | ------ |
|
||||
| _time | *_start | *_stop | *type | _value |
|
||||
| ------ | ------- | ------ | ----- | ------- |
|
||||
|
||||
| *_start | *_stop | *type | _value | _time |
|
||||
| -------------------- | -------------------- | ----- | ------------------ | -------------------- |
|
||||
| 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | float | 5.363333333333333 | 2021-01-01T00:00:30Z |
|
||||
| 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | float | 12.396666666666668 | 2021-01-01T00:01:00Z |
|
||||
| _time | *_start | *_stop | *type | _value |
|
||||
| -------------------- | -------------------- | -------------------- | ----- | ------------------ |
|
||||
| 2021-01-01T00:00:30Z | 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | float | 5.363333333333333 |
|
||||
| 2021-01-01T00:01:00Z | 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | float | 12.396666666666668 |
|
||||
|
||||
| *_start | *_stop | *type | _value | _time |
|
||||
| -------------------- | -------------------- | ----- | ------- | -------------------- |
|
||||
| 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | int | 5 | 2021-01-01T00:00:30Z |
|
||||
| 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | int | 12 | 2021-01-01T00:01:00Z |
|
||||
| _time | *_start | *_stop | *type | _value |
|
||||
| -------------------- | -------------------- | -------------------- | ----- | ------- |
|
||||
| 2021-01-01T00:00:30Z | 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | int | 5 |
|
||||
| 2021-01-01T00:01:00Z | 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | int | 12 |
|
||||
|
||||
| *_start | *_stop | _time | *type | _value |
|
||||
| ------- | ------ | ------ | ----- | ------- |
|
||||
|
|
|
@ -174,17 +174,17 @@ data
|
|||
|
||||
#### Output data
|
||||
|
||||
| *_start | *_stop | *tag | _value | _time |
|
||||
| -------------------- | -------------------- | ---- | ------------------ | -------------------- |
|
||||
| 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | t1 | 4.37 | 2021-01-01T00:00:20Z |
|
||||
| 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | t1 | 12.440000000000001 | 2021-01-01T00:00:40Z |
|
||||
| 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | t1 | 9.83 | 2021-01-01T00:01:00Z |
|
||||
| _time | *_start | *_stop | *tag | _value |
|
||||
| -------------------- | -------------------- | -------------------- | ---- | ------------------ |
|
||||
| 2021-01-01T00:00:20Z | 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | t1 | 4.37 |
|
||||
| 2021-01-01T00:00:40Z | 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | t1 | 12.440000000000001 |
|
||||
| 2021-01-01T00:01:00Z | 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | t1 | 9.83 |
|
||||
|
||||
| *_start | *_stop | *tag | _value | _time |
|
||||
| -------------------- | -------------------- | ---- | ----------------- | -------------------- |
|
||||
| 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | t2 | 12.41 | 2021-01-01T00:00:20Z |
|
||||
| 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | t2 | 8.01 | 2021-01-01T00:00:40Z |
|
||||
| 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | t2 | 7.859999999999999 | 2021-01-01T00:01:00Z |
|
||||
| _time | *_start | *_stop | *tag | _value |
|
||||
| -------------------- | -------------------- | -------------------- | ---- | ----------------- |
|
||||
| 2021-01-01T00:00:20Z | 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | t2 | 12.41 |
|
||||
| 2021-01-01T00:00:40Z | 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | t2 | 8.01 |
|
||||
| 2021-01-01T00:01:00Z | 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | t2 | 7.859999999999999 |
|
||||
|
||||
{{% /expand %}}
|
||||
{{< /expand-wrapper >}}
|
||||
|
@ -281,13 +281,13 @@ data
|
|||
|
||||
#### Output data
|
||||
|
||||
| *_start | *_stop | *tag | _value | _time |
|
||||
| -------------------- | -------------------- | ---- | ------- | -------------------- |
|
||||
| 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | t1 | 8.88 | 2021-01-01T00:01:00Z |
|
||||
| _time | *_start | *_stop | *tag | _value |
|
||||
| -------------------- | -------------------- | -------------------- | ---- | ------- |
|
||||
| 2021-01-01T00:01:00Z | 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | t1 | 8.88 |
|
||||
|
||||
| *_start | *_stop | *tag | _value | _time |
|
||||
| -------------------- | -------------------- | ---- | ----------------- | -------------------- |
|
||||
| 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | t2 | 9.426666666666668 | 2021-01-01T00:01:00Z |
|
||||
| _time | *_start | *_stop | *tag | _value |
|
||||
| -------------------- | -------------------- | -------------------- | ---- | ----------------- |
|
||||
| 2021-01-01T00:01:00Z | 2021-01-01T00:00:00Z | 2021-01-01T00:01:00Z | t2 | 9.426666666666668 |
|
||||
|
||||
{{% /expand %}}
|
||||
{{< /expand-wrapper >}}
|
||||
|
|
|
@ -107,18 +107,18 @@ data
|
|||
|
||||
#### Output data
|
||||
|
||||
| *_start | *_stop | _value | _time |
|
||||
| -------------------- | -------------------- | ------------------ | -------------------- |
|
||||
| 2015-01-01T00:00:00Z | 2021-01-01T00:00:00Z | 0 | 2016-01-01T00:00:00Z |
|
||||
| 2015-01-01T00:00:00Z | 2021-01-01T00:00:00Z | 1.6666666666666667 | 2017-01-01T00:00:00Z |
|
||||
| 2015-01-01T00:00:00Z | 2021-01-01T00:00:00Z | 1.6666666666666667 | 2018-01-01T00:00:00Z |
|
||||
| 2015-01-01T00:00:00Z | 2021-01-01T00:00:00Z | 3.5 | 2019-01-01T00:00:00Z |
|
||||
| 2015-01-01T00:00:00Z | 2021-01-01T00:00:00Z | 6 | 2020-01-01T00:00:00Z |
|
||||
| 2015-01-01T00:00:00Z | 2021-01-01T00:00:00Z | 11 | 2021-01-01T00:00:00Z |
|
||||
| 2015-01-01T00:00:00Z | 2021-01-01T00:00:00Z | 16.666666666666668 | 2021-01-01T00:00:00Z |
|
||||
| 2015-01-01T00:00:00Z | 2021-01-01T00:00:00Z | 16.666666666666668 | 2021-01-01T00:00:00Z |
|
||||
| 2015-01-01T00:00:00Z | 2021-01-01T00:00:00Z | 20.5 | 2021-01-01T00:00:00Z |
|
||||
| 2015-01-01T00:00:00Z | 2021-01-01T00:00:00Z | 25 | 2021-01-01T00:00:00Z |
|
||||
| _time | *_start | *_stop | _value |
|
||||
| -------------------- | -------------------- | -------------------- | ------------------ |
|
||||
| 2016-01-01T00:00:00Z | 2015-01-01T00:00:00Z | 2021-01-01T00:00:00Z | 0 |
|
||||
| 2017-01-01T00:00:00Z | 2015-01-01T00:00:00Z | 2021-01-01T00:00:00Z | 1.6666666666666667 |
|
||||
| 2018-01-01T00:00:00Z | 2015-01-01T00:00:00Z | 2021-01-01T00:00:00Z | 1.6666666666666667 |
|
||||
| 2019-01-01T00:00:00Z | 2015-01-01T00:00:00Z | 2021-01-01T00:00:00Z | 3.5 |
|
||||
| 2020-01-01T00:00:00Z | 2015-01-01T00:00:00Z | 2021-01-01T00:00:00Z | 6 |
|
||||
| 2021-01-01T00:00:00Z | 2015-01-01T00:00:00Z | 2021-01-01T00:00:00Z | 11 |
|
||||
| 2021-01-01T00:00:00Z | 2015-01-01T00:00:00Z | 2021-01-01T00:00:00Z | 16.666666666666668 |
|
||||
| 2021-01-01T00:00:00Z | 2015-01-01T00:00:00Z | 2021-01-01T00:00:00Z | 16.666666666666668 |
|
||||
| 2021-01-01T00:00:00Z | 2015-01-01T00:00:00Z | 2021-01-01T00:00:00Z | 20.5 |
|
||||
| 2021-01-01T00:00:00Z | 2015-01-01T00:00:00Z | 2021-01-01T00:00:00Z | 25 |
|
||||
|
||||
{{% /expand %}}
|
||||
{{< /expand-wrapper >}}
|
||||
|
|
|
@ -129,14 +129,14 @@ union(tables: [t1, t2])
|
|||
|
||||
| _time | _value | tag |
|
||||
| -------------------- | ------- | ---- |
|
||||
| 2021-01-01T00:00:00Z | 0 | bar |
|
||||
| 2021-01-02T00:00:00Z | -1 | bar |
|
||||
| 2021-01-03T00:00:00Z | -2 | bar |
|
||||
| 2021-01-04T00:00:00Z | -3 | bar |
|
||||
| 2021-01-01T00:00:00Z | 1 | foo |
|
||||
| 2021-01-02T00:00:00Z | 2 | foo |
|
||||
| 2021-01-03T00:00:00Z | 3 | foo |
|
||||
| 2021-01-04T00:00:00Z | 4 | foo |
|
||||
| 2021-01-01T00:00:00Z | 0 | bar |
|
||||
| 2021-01-02T00:00:00Z | -1 | bar |
|
||||
| 2021-01-03T00:00:00Z | -2 | bar |
|
||||
| 2021-01-04T00:00:00Z | -3 | bar |
|
||||
|
||||
{{% /expand %}}
|
||||
{{< /expand-wrapper >}}
|
||||
|
|
Loading…
Reference in New Issue