diff --git a/content/flux/v0.x/release-notes.md b/content/flux/v0.x/release-notes.md index 0f1721d44..0cbdd2644 100644 --- a/content/flux/v0.x/release-notes.md +++ b/content/flux/v0.x/release-notes.md @@ -10,6 +10,26 @@ aliases: - /influxdb/cloud/reference/release-notes/flux/ --- +## v0.180.1 [2022-08-22] + +- _Internal code cleanup._ + +--- + +## v0.180.0 [2022-08-22] + +### Features +- Rewrite calls to `float()` as `_vectorizedFloat()`. +- Reduce the Flux formatter default line length to 100 characters. + +### Bug fixes +- Fix logic bug in planner helper method. +- Don't include null columns when unpivoting. +- Don't error when formatting boolean literals. +- Sort columns when printing group keys. + +--- + ## v0.179.0 [2022-08-15] ### Features diff --git a/content/flux/v0.x/stdlib/contrib/RohanSreerama5/naiveBayesClassifier/naivebayes.md b/content/flux/v0.x/stdlib/contrib/RohanSreerama5/naiveBayesClassifier/naivebayes.md index 6f5c14c60..39bc0e98a 100644 --- a/content/flux/v0.x/stdlib/contrib/RohanSreerama5/naiveBayesClassifier/naivebayes.md +++ b/content/flux/v0.x/stdlib/contrib/RohanSreerama5/naiveBayesClassifier/naivebayes.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/contrib/RohanSreerama5/naiveBayesClassifier/naiveBayesClassifier.flux#L30-L109 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/RohanSreerama5/naiveBayesClassifier/naiveBayesClassifier.flux#L30-L124 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/contrib/bonitoo-io/alerta/endpoint.md b/content/flux/v0.x/stdlib/contrib/bonitoo-io/alerta/endpoint.md index 719714881..489987238 100644 --- a/content/flux/v0.x/stdlib/contrib/bonitoo-io/alerta/endpoint.md +++ b/content/flux/v0.x/stdlib/contrib/bonitoo-io/alerta/endpoint.md @@ -120,7 +120,12 @@ import "influxdata/influxdb/secrets" apiKey = secrets.get(key: "ALERTA_API_KEY") endpoint = - alerta.endpoint(url: "https://alerta.io:8080/alert", apiKey: apiKey, environment: "Production", origin: "InfluxDB") + alerta.endpoint( + url: "https://alerta.io:8080/alert", + apiKey: apiKey, + environment: "Production", + origin: "InfluxDB", + ) crit_events = from(bucket: "example-bucket") diff --git a/content/flux/v0.x/stdlib/contrib/bonitoo-io/servicenow/endpoint.md b/content/flux/v0.x/stdlib/contrib/bonitoo-io/servicenow/endpoint.md index f1e13a5dd..d38be8518 100644 --- a/content/flux/v0.x/stdlib/contrib/bonitoo-io/servicenow/endpoint.md +++ b/content/flux/v0.x/stdlib/contrib/bonitoo-io/servicenow/endpoint.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/contrib/bonitoo-io/servicenow/servicenow.flux#L196-L225 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/bonitoo-io/servicenow/servicenow.flux#L203-L236 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/contrib/bonitoo-io/servicenow/event.md b/content/flux/v0.x/stdlib/contrib/bonitoo-io/servicenow/event.md index 780cd6bed..c82a712fb 100644 --- a/content/flux/v0.x/stdlib/contrib/bonitoo-io/servicenow/event.md +++ b/content/flux/v0.x/stdlib/contrib/bonitoo-io/servicenow/event.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/contrib/bonitoo-io/servicenow/servicenow.flux#L83-L129 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/bonitoo-io/servicenow/servicenow.flux#L83-L136 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/alert.md b/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/alert.md index 536b64709..94f68942f 100644 --- a/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/alert.md +++ b/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/alert.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/contrib/bonitoo-io/tickscript/tickscript.flux#L105-L142 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/bonitoo-io/tickscript/tickscript.flux#L105-L145 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/compute.md b/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/compute.md index a72c1ff05..0841e6bd6 100644 --- a/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/compute.md +++ b/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/compute.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/contrib/bonitoo-io/tickscript/tickscript.flux#L389-L389 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/bonitoo-io/tickscript/tickscript.flux#L393-L393 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/deadman.md b/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/deadman.md index c7bb64547..0bb3422ab 100644 --- a/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/deadman.md +++ b/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/deadman.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/contrib/bonitoo-io/tickscript/tickscript.flux#L188-L244 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/bonitoo-io/tickscript/tickscript.flux#L191-L248 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/groupby.md b/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/groupby.md index 99ebfc930..e80f065f4 100644 --- a/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/groupby.md +++ b/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/groupby.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/contrib/bonitoo-io/tickscript/tickscript.flux#L427-L431 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/bonitoo-io/tickscript/tickscript.flux#L431-L435 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/join.md b/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/join.md index bf4f8a517..f9017287c 100644 --- a/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/join.md +++ b/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/join.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/contrib/bonitoo-io/tickscript/tickscript.flux#L484-L488 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/bonitoo-io/tickscript/tickscript.flux#L488-L492 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md @@ -96,7 +96,11 @@ states = ) |> group(columns: ["host"]) -tickscript.join(tables: {metric: metrics, state: states}, on: ["_time", "host"], measurement: "example-m") +tickscript.join( + tables: {metric: metrics, state: states}, + on: ["_time", "host"], + measurement: "example-m", +) ``` diff --git a/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/select.md b/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/select.md index ad1b1bb4b..66d790857 100644 --- a/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/select.md +++ b/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/select.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/contrib/bonitoo-io/tickscript/tickscript.flux#L306-L314 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/bonitoo-io/tickscript/tickscript.flux#L310-L318 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/selectwindow.md b/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/selectwindow.md index b1621d931..a9ff20c3a 100644 --- a/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/selectwindow.md +++ b/content/flux/v0.x/stdlib/contrib/bonitoo-io/tickscript/selectwindow.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/contrib/bonitoo-io/tickscript/tickscript.flux#L358-L375 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/bonitoo-io/tickscript/tickscript.flux#L362-L379 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/contrib/bonitoo-io/victorops/endpoint.md b/content/flux/v0.x/stdlib/contrib/bonitoo-io/victorops/endpoint.md index 7ab888004..72e570a83 100644 --- a/content/flux/v0.x/stdlib/contrib/bonitoo-io/victorops/endpoint.md +++ b/content/flux/v0.x/stdlib/contrib/bonitoo-io/victorops/endpoint.md @@ -112,7 +112,9 @@ crit_events messageType: "CRITICAL", entityID: "${r.host}-${r._field}-critical", entityDisplayName: "Critical alert for ${r.host}", - stateMessage: "${r.host} is in a critical state. ${r._field} is ${string(v: r._value)}.", + stateMessage: "${r.host} is in a critical state. ${r._field} is ${string( + v: r._value, + )}.", timestamp: now(), }), )() diff --git a/content/flux/v0.x/stdlib/contrib/bonitoo-io/zenoss/endpoint.md b/content/flux/v0.x/stdlib/contrib/bonitoo-io/zenoss/endpoint.md index b4c6b492a..5277a0cf9 100644 --- a/content/flux/v0.x/stdlib/contrib/bonitoo-io/zenoss/endpoint.md +++ b/content/flux/v0.x/stdlib/contrib/bonitoo-io/zenoss/endpoint.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/contrib/bonitoo-io/zenoss/zenoss.flux#L217-L258 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/bonitoo-io/zenoss/zenoss.flux#L219-L260 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/contrib/bonitoo-io/zenoss/event.md b/content/flux/v0.x/stdlib/contrib/bonitoo-io/zenoss/event.md index eaffad001..1de659bd8 100644 --- a/content/flux/v0.x/stdlib/contrib/bonitoo-io/zenoss/event.md +++ b/content/flux/v0.x/stdlib/contrib/bonitoo-io/zenoss/event.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/contrib/bonitoo-io/zenoss/zenoss.flux#L90-L138 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/bonitoo-io/zenoss/zenoss.flux#L90-L140 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/contrib/chobbs/discord/endpoint.md b/content/flux/v0.x/stdlib/contrib/chobbs/discord/endpoint.md index c5c90fdcb..dd9240504 100644 --- a/content/flux/v0.x/stdlib/contrib/chobbs/discord/endpoint.md +++ b/content/flux/v0.x/stdlib/contrib/chobbs/discord/endpoint.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/contrib/chobbs/discord/discord.flux#L120-L141 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/chobbs/discord/discord.flux#L125-L146 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md @@ -96,7 +96,8 @@ import "influxdata/influxdb/secrets" import "contrib/chobbs/discord" discordToken = secrets.get(key: "DISCORD_TOKEN") -endpoint = telegram.endpoint(webhookToken: discordToken, webhookID: "123456789", username: "critBot") +endpoint = + telegram.endpoint(webhookToken: discordToken, webhookID: "123456789", username: "critBot") crit_statuses = from(bucket: "example-bucket") diff --git a/content/flux/v0.x/stdlib/contrib/chobbs/discord/send.md b/content/flux/v0.x/stdlib/contrib/chobbs/discord/send.md index 50acf1da7..abf958633 100644 --- a/content/flux/v0.x/stdlib/contrib/chobbs/discord/send.md +++ b/content/flux/v0.x/stdlib/contrib/chobbs/discord/send.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/contrib/chobbs/discord/discord.flux#L53-L66 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/chobbs/discord/discord.flux#L53-L71 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/contrib/jsternberg/aggregate/mean.md b/content/flux/v0.x/stdlib/contrib/jsternberg/aggregate/mean.md index 8ed04f84b..d9b152109 100644 --- a/content/flux/v0.x/stdlib/contrib/jsternberg/aggregate/mean.md +++ b/content/flux/v0.x/stdlib/contrib/jsternberg/aggregate/mean.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/contrib/jsternberg/aggregate/aggregate.flux#L177-L182 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/jsternberg/aggregate/aggregate.flux#L177-L183 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/contrib/jsternberg/influxdb/from.md b/content/flux/v0.x/stdlib/contrib/jsternberg/influxdb/from.md index 645ad6156..80f453409 100644 --- a/content/flux/v0.x/stdlib/contrib/jsternberg/influxdb/from.md +++ b/content/flux/v0.x/stdlib/contrib/jsternberg/influxdb/from.md @@ -134,7 +134,12 @@ import "influxdata/influxdb/secrets" token = secrets.get(key: "INFLUXDB_CLOUD_TOKEN") -from(bucket: "example-bucket", host: "https://us-west-2-1.aws.cloud2.influxdata.com", org: "example-org", token: token) +from( + bucket: "example-bucket", + host: "https://us-west-2-1.aws.cloud2.influxdata.com", + org: "example-org", + token: token, +) ``` diff --git a/content/flux/v0.x/stdlib/contrib/jsternberg/influxdb/select.md b/content/flux/v0.x/stdlib/contrib/jsternberg/influxdb/select.md index c5afcba07..9720ef9bc 100644 --- a/content/flux/v0.x/stdlib/contrib/jsternberg/influxdb/select.md +++ b/content/flux/v0.x/stdlib/contrib/jsternberg/influxdb/select.md @@ -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/contrib/jsternberg/influxdb/influxdb.flux#L215-L264 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/jsternberg/influxdb/influxdb.flux#L215-L267 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md @@ -155,7 +155,12 @@ influxdb.select(from: "example-bucket", start: -1d, m: "example-measurement", fi ```js import "contrib/jsternberg/influxdb" -influxdb.select(from: "example-bucket", start: -1d, m: "example-measurement", fields: ["field1", "field2", "field3"]) +influxdb.select( + from: "example-bucket", + start: -1d, + m: "example-measurement", + fields: ["field1", "field2", "field3"], +) ``` diff --git a/content/flux/v0.x/stdlib/contrib/rhajek/bigpanda/endpoint.md b/content/flux/v0.x/stdlib/contrib/rhajek/bigpanda/endpoint.md index a36d161f2..b9a958b28 100644 --- a/content/flux/v0.x/stdlib/contrib/rhajek/bigpanda/endpoint.md +++ b/content/flux/v0.x/stdlib/contrib/rhajek/bigpanda/endpoint.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/contrib/rhajek/bigpanda/bigpanda.flux#L211-L232 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/rhajek/bigpanda/bigpanda.flux#L214-L235 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/contrib/rhajek/bigpanda/sendalert.md b/content/flux/v0.x/stdlib/contrib/rhajek/bigpanda/sendalert.md index d709c0bad..7427fc8e5 100644 --- a/content/flux/v0.x/stdlib/contrib/rhajek/bigpanda/sendalert.md +++ b/content/flux/v0.x/stdlib/contrib/rhajek/bigpanda/sendalert.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/contrib/rhajek/bigpanda/bigpanda.flux#L142-L154 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/rhajek/bigpanda/bigpanda.flux#L142-L157 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md @@ -108,7 +108,9 @@ bigpanda.sendAlert( rec: { tags: json.encode(v: [{"name": "host", "value": "my-host"}]), check: "my-check", - description: "${lastReported._field} is ${lastReported.status}: ${string(v: lastReported._value)}", + description: "${lastReported._field} is ${lastReported.status}: ${string( + v: lastReported._value, + )}", }, ) diff --git a/content/flux/v0.x/stdlib/contrib/sranka/opsgenie/endpoint.md b/content/flux/v0.x/stdlib/contrib/sranka/opsgenie/endpoint.md index fa182f4b1..f67df8934 100644 --- a/content/flux/v0.x/stdlib/contrib/sranka/opsgenie/endpoint.md +++ b/content/flux/v0.x/stdlib/contrib/sranka/opsgenie/endpoint.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/contrib/sranka/opsgenie/opsgenie.flux#L178-L206 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/sranka/opsgenie/opsgenie.flux#L181-L209 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/contrib/sranka/opsgenie/sendalert.md b/content/flux/v0.x/stdlib/contrib/sranka/opsgenie/sendalert.md index 1e8e795b1..7794b6692 100644 --- a/content/flux/v0.x/stdlib/contrib/sranka/opsgenie/sendalert.md +++ b/content/flux/v0.x/stdlib/contrib/sranka/opsgenie/sendalert.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/contrib/sranka/opsgenie/opsgenie.flux#L78-L117 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/sranka/opsgenie/opsgenie.flux#L78-L120 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/contrib/sranka/sensu/endpoint.md b/content/flux/v0.x/stdlib/contrib/sranka/sensu/endpoint.md index 696d4df5a..ac18c816b 100644 --- a/content/flux/v0.x/stdlib/contrib/sranka/sensu/endpoint.md +++ b/content/flux/v0.x/stdlib/contrib/sranka/sensu/endpoint.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/contrib/sranka/sensu/sensu.flux#L201-L231 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/sranka/sensu/sensu.flux#L209-L239 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/contrib/sranka/sensu/event.md b/content/flux/v0.x/stdlib/contrib/sranka/sensu/event.md index 9b7b2939b..3ef483aa6 100644 --- a/content/flux/v0.x/stdlib/contrib/sranka/sensu/event.md +++ b/content/flux/v0.x/stdlib/contrib/sranka/sensu/event.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/contrib/sranka/sensu/sensu.flux#L109-L137 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/sranka/sensu/sensu.flux#L109-L145 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/contrib/sranka/teams/endpoint.md b/content/flux/v0.x/stdlib/contrib/sranka/teams/endpoint.md index fda179109..2cf13f951 100644 --- a/content/flux/v0.x/stdlib/contrib/sranka/teams/endpoint.md +++ b/content/flux/v0.x/stdlib/contrib/sranka/teams/endpoint.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/contrib/sranka/teams/teams.flux#L126-L146 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/sranka/teams/teams.flux#L128-L149 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md @@ -83,7 +83,11 @@ crit_statuses = crit_statuses |> endpoint( mapFn: (r) => - ({title: "Disk Usage", text: "Disk usage is: **${r.status}**.", summary: "Disk usage is ${r.status}"}), + ({ + title: "Disk Usage", + text: "Disk usage is: **${r.status}**.", + summary: "Disk usage is ${r.status}", + }), )() ``` diff --git a/content/flux/v0.x/stdlib/contrib/sranka/teams/message.md b/content/flux/v0.x/stdlib/contrib/sranka/teams/message.md index eba72eed9..f4e8c0f6d 100644 --- a/content/flux/v0.x/stdlib/contrib/sranka/teams/message.md +++ b/content/flux/v0.x/stdlib/contrib/sranka/teams/message.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/contrib/sranka/teams/teams.flux#L55-L79 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/sranka/teams/teams.flux#L55-L81 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/contrib/sranka/telegram/endpoint.md b/content/flux/v0.x/stdlib/contrib/sranka/telegram/endpoint.md index c5f4fa94a..11cd33eb4 100644 --- a/content/flux/v0.x/stdlib/contrib/sranka/telegram/endpoint.md +++ b/content/flux/v0.x/stdlib/contrib/sranka/telegram/endpoint.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/contrib/sranka/telegram/telegram.flux#L168-L191 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/sranka/telegram/telegram.flux#L168-L196 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md @@ -109,7 +109,9 @@ crit_statuses = |> filter(fn: (r) => r._measurement == "statuses" and status == "crit") crit_statuses - |> endpoint(mapFn: (r) => ({channel: "-12345", text: "Disk usage is **${r.status}**.", silent: true}))() + |> endpoint( + mapFn: (r) => ({channel: "-12345", text: "Disk usage is **${r.status}**.", silent: true}), + )() ``` diff --git a/content/flux/v0.x/stdlib/contrib/sranka/webexteams/endpoint.md b/content/flux/v0.x/stdlib/contrib/sranka/webexteams/endpoint.md index c3bc3f5e3..69b286066 100644 --- a/content/flux/v0.x/stdlib/contrib/sranka/webexteams/endpoint.md +++ b/content/flux/v0.x/stdlib/contrib/sranka/webexteams/endpoint.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/contrib/sranka/webexteams/webexteams.flux#L114-L135 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/sranka/webexteams/webexteams.flux#L117-L138 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md @@ -91,7 +91,8 @@ from(bucket: "example-bucket") |> webexteams.endpoint(token: token)( mapFn: (r) => ({ - roomId: "Y2lzY29zcGFyazovL3VzL1JPT00vYmJjZWIxYWQtNDNmMS0zYjU4LTkxNDctZjE0YmIwYzRkMTU0", + roomId: + "Y2lzY29zcGFyazovL3VzL1JPT00vYmJjZWIxYWQtNDNmMS0zYjU4LTkxNDctZjE0YmIwYzRkMTU0", text: "", markdown: "Disk usage is **${r.status}**.", }), diff --git a/content/flux/v0.x/stdlib/contrib/sranka/webexteams/message.md b/content/flux/v0.x/stdlib/contrib/sranka/webexteams/message.md index 1c41b8bde..21c3a4e59 100644 --- a/content/flux/v0.x/stdlib/contrib/sranka/webexteams/message.md +++ b/content/flux/v0.x/stdlib/contrib/sranka/webexteams/message.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/contrib/sranka/webexteams/webexteams.flux#L51-L65 +https://github.com/influxdata/flux/blob/master/stdlib/contrib/sranka/webexteams/webexteams.flux#L51-L68 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/contrib/tomhollingworth/events/duration.md b/content/flux/v0.x/stdlib/contrib/tomhollingworth/events/duration.md index 8478a5912..107e69aef 100644 --- a/content/flux/v0.x/stdlib/contrib/tomhollingworth/events/duration.md +++ b/content/flux/v0.x/stdlib/contrib/tomhollingworth/events/duration.md @@ -161,13 +161,32 @@ union( tables: [ data |> events.duration(unit: 1m, stop: 2020-01-02T00:00:00Z) - |> map(fn: (r) => ({_time: r._time, state: r.state, function: "events.Duration()", value: r.duration})), + |> map( + fn: (r) => + ({ + _time: r._time, + state: r.state, + function: "events.Duration()", + value: r.duration, + }), + ), data |> elapsed(unit: 1m) - |> map(fn: (r) => ({_time: r._time, state: r.state, function: "elapsed()", value: r.elapsed})), + |> map( + fn: (r) => + ({_time: r._time, state: r.state, function: "elapsed()", value: r.elapsed}), + ), data |> stateDuration(unit: 1m, fn: (r) => true) - |> map(fn: (r) => ({_time: r._time, state: r.state, function: "stateDuration()", value: r.stateDuration})), + |> map( + fn: (r) => + ({ + _time: r._time, + state: r.state, + function: "stateDuration()", + value: r.stateDuration, + }), + ), ], ) |> pivot(rowKey: ["_time", "state"], columnKey: ["function"], valueColumn: "value") diff --git a/content/flux/v0.x/stdlib/date/add.md b/content/flux/v0.x/stdlib/date/add.md index 38914072e..5221b4723 100644 --- a/content/flux/v0.x/stdlib/date/add.md +++ b/content/flux/v0.x/stdlib/date/add.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#L599-L599 +https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L601-L601 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/date/boundaries/month.md b/content/flux/v0.x/stdlib/date/boundaries/month.md index c507a125a..c540e6800 100644 --- a/content/flux/v0.x/stdlib/date/boundaries/month.md +++ b/content/flux/v0.x/stdlib/date/boundaries/month.md @@ -63,7 +63,9 @@ import "date/boundaries" option now = () => 2022-05-10T10:10:00Z -boundaries.month()// Returns {start:2022-05-01T00:00:00.000000000Z, stop:2022-06-01T00:00:00.000000000Z} +boundaries.month( + +)// Returns {start:2022-05-01T00:00:00.000000000Z, stop:2022-06-01T00:00:00.000000000Z} ``` diff --git a/content/flux/v0.x/stdlib/date/boundaries/week.md b/content/flux/v0.x/stdlib/date/boundaries/week.md index 723777fe9..838d3cb6a 100644 --- a/content/flux/v0.x/stdlib/date/boundaries/week.md +++ b/content/flux/v0.x/stdlib/date/boundaries/week.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/date/boundaries/boundaries.flux#L479-L487 +https://github.com/influxdata/flux/blob/master/stdlib/date/boundaries/boundaries.flux#L479-L495 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md @@ -72,7 +72,9 @@ import "date/boundaries" option now = () => 2022-05-10T00:00:00.00001Z -boundaries.week()// Returns {start: 2022-05-09T00:00:00.000000000Z, stop: 2022-05-16T00:00:00.000000000Z} +boundaries.week( + +)// Returns {start: 2022-05-09T00:00:00.000000000Z, stop: 2022-05-16T00:00:00.000000000Z} ``` diff --git a/content/flux/v0.x/stdlib/date/boundaries/yesterday.md b/content/flux/v0.x/stdlib/date/boundaries/yesterday.md index 3137d8615..553cb0639 100644 --- a/content/flux/v0.x/stdlib/date/boundaries/yesterday.md +++ b/content/flux/v0.x/stdlib/date/boundaries/yesterday.md @@ -54,7 +54,9 @@ import "date/boundaries" option now = () => 2022-01-02T13:45:28Z -boundaries.yesterday()// Returns {start: 2022-01-01T00:00:00.000000000Z, stop: 2022-01-02T00:00:00.000000000Z} +boundaries.yesterday( + +)// Returns {start: 2022-01-01T00:00:00.000000000Z, stop: 2022-01-02T00:00:00.000000000Z} ``` diff --git a/content/flux/v0.x/stdlib/date/scale.md b/content/flux/v0.x/stdlib/date/scale.md index 314fcbc89..1c83cf53d 100644 --- a/content/flux/v0.x/stdlib/date/scale.md +++ b/content/flux/v0.x/stdlib/date/scale.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#L762-L762 +https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L768-L768 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/date/sub.md b/content/flux/v0.x/stdlib/date/sub.md index 7108041d2..86d3ef8b0 100644 --- a/content/flux/v0.x/stdlib/date/sub.md +++ b/content/flux/v0.x/stdlib/date/sub.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#L659-L659 +https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L663-L663 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/date/truncate.md b/content/flux/v0.x/stdlib/date/truncate.md index 2b6dbaf27..f6eeaa42e 100644 --- a/content/flux/v0.x/stdlib/date/truncate.md +++ b/content/flux/v0.x/stdlib/date/truncate.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#L725-L725 +https://github.com/influxdata/flux/blob/master/stdlib/date/date.flux#L731-L731 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/dict/fromlist.md b/content/flux/v0.x/stdlib/dict/fromlist.md index c71e469de..711ff6f7c 100644 --- a/content/flux/v0.x/stdlib/dict/fromlist.md +++ b/content/flux/v0.x/stdlib/dict/fromlist.md @@ -56,7 +56,10 @@ List of records with `key` and `value` properties. ```js import "dict" -d = dict.fromList(pairs: [{key: 1, value: "foo"}, {key: 2, value: "bar"}])// Returns [1: "foo", 2: "bar"] +d = + dict.fromList( + pairs: [{key: 1, value: "foo"}, {key: 2, value: "bar"}], + )// Returns [1: "foo", 2: "bar"] ``` diff --git a/content/flux/v0.x/stdlib/experimental/bigtable/from.md b/content/flux/v0.x/stdlib/experimental/bigtable/from.md index b2975962a..2f7cec58c 100644 --- a/content/flux/v0.x/stdlib/experimental/bigtable/from.md +++ b/content/flux/v0.x/stdlib/experimental/bigtable/from.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/experimental/bigtable/bigtable.flux#L42-L42 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/bigtable/bigtable.flux#L42-L44 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md @@ -76,7 +76,12 @@ Cloud Bigtable table name. ```js import "experimental/bigtable" -bigtable.from(token: "example-token", project: "example-project", instance: "example-instance", table: "example-table") +bigtable.from( + token: "example-token", + project: "example-project", + instance: "example-instance", + table: "example-table", +) ``` diff --git a/content/flux/v0.x/stdlib/experimental/catch.md b/content/flux/v0.x/stdlib/experimental/catch.md index e3671beb2..9a4829133 100644 --- a/content/flux/v0.x/stdlib/experimental/catch.md +++ b/content/flux/v0.x/stdlib/experimental/catch.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/experimental/experimental.flux#L1322-L1322 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/experimental.flux#L1338-L1338 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/date/boundaries/month.md b/content/flux/v0.x/stdlib/experimental/date/boundaries/month.md index ad3b4eb82..54b26a57c 100644 --- a/content/flux/v0.x/stdlib/experimental/date/boundaries/month.md +++ b/content/flux/v0.x/stdlib/experimental/date/boundaries/month.md @@ -63,7 +63,9 @@ import "experimental/date/boundaries" option now = () => 2022-05-10T10:10:00Z -boundaries.month()// Returns {start:2022-05-01T00:00:00.000000000Z, stop:2022-06-01T00:00:00.000000000Z} +boundaries.month( + +)// Returns {start:2022-05-01T00:00:00.000000000Z, stop:2022-06-01T00:00:00.000000000Z} ``` diff --git a/content/flux/v0.x/stdlib/experimental/date/boundaries/week.md b/content/flux/v0.x/stdlib/experimental/date/boundaries/week.md index 9ba865131..ed3cc4575 100644 --- a/content/flux/v0.x/stdlib/experimental/date/boundaries/week.md +++ b/content/flux/v0.x/stdlib/experimental/date/boundaries/week.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/experimental/date/boundaries/boundaries.flux#L457-L471 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/date/boundaries/boundaries.flux#L457-L479 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md @@ -72,7 +72,9 @@ import "experimental/date/boundaries" option now = () => 2022-05-10T00:00:00.00001Z -boundaries.week()// Returns {start: 2022-05-09T00:00:00.000000000Z, stop: 2022-05-16T00:00:00.000000000Z} +boundaries.week( + +)// Returns {start: 2022-05-09T00:00:00.000000000Z, stop: 2022-05-16T00:00:00.000000000Z} ``` diff --git a/content/flux/v0.x/stdlib/experimental/date/boundaries/yesterday.md b/content/flux/v0.x/stdlib/experimental/date/boundaries/yesterday.md index 1001210e9..5d469b7dc 100644 --- a/content/flux/v0.x/stdlib/experimental/date/boundaries/yesterday.md +++ b/content/flux/v0.x/stdlib/experimental/date/boundaries/yesterday.md @@ -53,7 +53,9 @@ import "experimental/date/boundaries" option now = () => 2022-01-02T13:45:28Z -boundaries.yesterday()// Returns {start: 2022-01-01T00:00:00.000000000Z, stop: 2022-01-02T00:00:00.000000000Z} +boundaries.yesterday( + +)// Returns {start: 2022-01-01T00:00:00.000000000Z, stop: 2022-01-02T00:00:00.000000000Z} ``` diff --git a/content/flux/v0.x/stdlib/experimental/diff.md b/content/flux/v0.x/stdlib/experimental/diff.md index c20ff005e..2f5a3ce03 100644 --- a/content/flux/v0.x/stdlib/experimental/diff.md +++ b/content/flux/v0.x/stdlib/experimental/diff.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/experimental/experimental.flux#L1367-L1367 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/experimental.flux#L1383-L1383 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/distinct.md b/content/flux/v0.x/stdlib/experimental/distinct.md index 3580548e7..1e9be722d 100644 --- a/content/flux/v0.x/stdlib/experimental/distinct.md +++ b/content/flux/v0.x/stdlib/experimental/distinct.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/experimental/experimental.flux#L1043-L1043 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/experimental.flux#L1053-L1053 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/fill.md b/content/flux/v0.x/stdlib/experimental/fill.md index 3d5708456..1b52536cb 100644 --- a/content/flux/v0.x/stdlib/experimental/fill.md +++ b/content/flux/v0.x/stdlib/experimental/fill.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/experimental/experimental.flux#L1077-L1077 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/experimental.flux#L1087-L1091 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/first.md b/content/flux/v0.x/stdlib/experimental/first.md index a42883b7a..f20a1ee48 100644 --- a/content/flux/v0.x/stdlib/experimental/first.md +++ b/content/flux/v0.x/stdlib/experimental/first.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/experimental/experimental.flux#L1101-L1101 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/experimental.flux#L1115-L1115 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/geo/astracks.md b/content/flux/v0.x/stdlib/experimental/geo/astracks.md index 4b89cac83..4b8fe48e6 100644 --- a/content/flux/v0.x/stdlib/experimental/geo/astracks.md +++ b/content/flux/v0.x/stdlib/experimental/geo/astracks.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/experimental/geo/geo.flux#L964-L967 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/geo/geo.flux#L982-L985 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/geo/filterrows.md b/content/flux/v0.x/stdlib/experimental/geo/filterrows.md index a112cfe11..5487cd585 100644 --- a/content/flux/v0.x/stdlib/experimental/geo/filterrows.md +++ b/content/flux/v0.x/stdlib/experimental/geo/filterrows.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/experimental/geo/geo.flux#L824-L866 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/geo/geo.flux#L839-L881 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/geo/getgrid.md b/content/flux/v0.x/stdlib/experimental/geo/getgrid.md index 1c3157e9a..8722d55b2 100644 --- a/content/flux/v0.x/stdlib/experimental/geo/getgrid.md +++ b/content/flux/v0.x/stdlib/experimental/geo/getgrid.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/experimental/geo/geo.flux#L377-L386 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/geo/geo.flux#L386-L395 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/geo/getlevel.md b/content/flux/v0.x/stdlib/experimental/geo/getlevel.md index 0eb05d108..9a962593e 100644 --- a/content/flux/v0.x/stdlib/experimental/geo/getlevel.md +++ b/content/flux/v0.x/stdlib/experimental/geo/getlevel.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/experimental/geo/geo.flux#L406-L406 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/geo/geo.flux#L415-L415 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/geo/gridfilter.md b/content/flux/v0.x/stdlib/experimental/geo/gridfilter.md index 34ae77b3c..54b8ca5b1 100644 --- a/content/flux/v0.x/stdlib/experimental/geo/gridfilter.md +++ b/content/flux/v0.x/stdlib/experimental/geo/gridfilter.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/experimental/geo/geo.flux#L665-L700 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/geo/geo.flux#L677-L715 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/geo/groupbyarea.md b/content/flux/v0.x/stdlib/experimental/geo/groupbyarea.md index 8f39efb68..77efcc0c9 100644 --- a/content/flux/v0.x/stdlib/experimental/geo/groupbyarea.md +++ b/content/flux/v0.x/stdlib/experimental/geo/groupbyarea.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/experimental/geo/geo.flux#L909-L930 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/geo/geo.flux#L924-L948 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/geo/s2cellidtoken.md b/content/flux/v0.x/stdlib/experimental/geo/s2cellidtoken.md index 1506d3a5f..f69ac9ccd 100644 --- a/content/flux/v0.x/stdlib/experimental/geo/s2cellidtoken.md +++ b/content/flux/v0.x/stdlib/experimental/geo/s2cellidtoken.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/experimental/geo/geo.flux#L468-L468 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/geo/geo.flux#L477-L477 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md @@ -75,7 +75,10 @@ S2 cell level to use when generating the S2 cell ID token. import "experimental/geo" data - |> map(fn: (r) => ({r with s2_cell_id: geo.s2CellIDToken(point: {lat: r.lat, lon: r.lon}, level: 10)})) + |> map( + fn: (r) => + ({r with s2_cell_id: geo.s2CellIDToken(point: {lat: r.lat, lon: r.lon}, level: 10)}), + ) ``` diff --git a/content/flux/v0.x/stdlib/experimental/geo/s2celllatlon.md b/content/flux/v0.x/stdlib/experimental/geo/s2celllatlon.md index 0554c8b49..25c3d4095 100644 --- a/content/flux/v0.x/stdlib/experimental/geo/s2celllatlon.md +++ b/content/flux/v0.x/stdlib/experimental/geo/s2celllatlon.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/experimental/geo/geo.flux#L489-L489 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/geo/geo.flux#L498-L498 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/geo/shapedata.md b/content/flux/v0.x/stdlib/experimental/geo/shapedata.md index 29293ef8f..2b7e1309a 100644 --- a/content/flux/v0.x/stdlib/experimental/geo/shapedata.md +++ b/content/flux/v0.x/stdlib/experimental/geo/shapedata.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/experimental/geo/geo.flux#L590-L605 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/geo/geo.flux#L599-L617 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/geo/st_contains.md b/content/flux/v0.x/stdlib/experimental/geo/st_contains.md index bee997d54..69e8958ad 100644 --- a/content/flux/v0.x/stdlib/experimental/geo/st_contains.md +++ b/content/flux/v0.x/stdlib/experimental/geo/st_contains.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/experimental/geo/geo.flux#L248-L248 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/geo/geo.flux#L254-L255 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/geo/st_distance.md b/content/flux/v0.x/stdlib/experimental/geo/st_distance.md index d75214374..63a57c075 100644 --- a/content/flux/v0.x/stdlib/experimental/geo/st_distance.md +++ b/content/flux/v0.x/stdlib/experimental/geo/st_distance.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/experimental/geo/geo.flux#L262-L262 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/geo/geo.flux#L269-L270 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/geo/st_dwithin.md b/content/flux/v0.x/stdlib/experimental/geo/st_dwithin.md index 23b2bb24a..c4abf44bb 100644 --- a/content/flux/v0.x/stdlib/experimental/geo/st_dwithin.md +++ b/content/flux/v0.x/stdlib/experimental/geo/st_dwithin.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/experimental/geo/geo.flux#L279-L280 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/geo/geo.flux#L287-L288 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/geo/st_intersects.md b/content/flux/v0.x/stdlib/experimental/geo/st_intersects.md index be72b3cc9..1fcdd1dad 100644 --- a/content/flux/v0.x/stdlib/experimental/geo/st_intersects.md +++ b/content/flux/v0.x/stdlib/experimental/geo/st_intersects.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/experimental/geo/geo.flux#L295-L295 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/geo/geo.flux#L303-L304 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/geo/st_length.md b/content/flux/v0.x/stdlib/experimental/geo/st_length.md index 5563abea3..8225b6be6 100644 --- a/content/flux/v0.x/stdlib/experimental/geo/st_length.md +++ b/content/flux/v0.x/stdlib/experimental/geo/st_length.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/experimental/geo/geo.flux#L309-L309 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/geo/geo.flux#L318-L318 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/geo/st_linestring.md b/content/flux/v0.x/stdlib/experimental/geo/st_linestring.md index 5d9695baa..3570b688d 100644 --- a/content/flux/v0.x/stdlib/experimental/geo/st_linestring.md +++ b/content/flux/v0.x/stdlib/experimental/geo/st_linestring.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/experimental/geo/geo.flux#L347-L361 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/geo/geo.flux#L356-L370 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/geo/stcontains.md b/content/flux/v0.x/stdlib/experimental/geo/stcontains.md index 0c3c137e1..2d4ad7dfc 100644 --- a/content/flux/v0.x/stdlib/experimental/geo/stcontains.md +++ b/content/flux/v0.x/stdlib/experimental/geo/stcontains.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/experimental/geo/geo.flux#L202-L202 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/geo/geo.flux#L202-L205 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/geo/stdistance.md b/content/flux/v0.x/stdlib/experimental/geo/stdistance.md index 54b0352e2..7d2d3bcd4 100644 --- a/content/flux/v0.x/stdlib/experimental/geo/stdistance.md +++ b/content/flux/v0.x/stdlib/experimental/geo/stdistance.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/experimental/geo/geo.flux#L217-L217 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/geo/geo.flux#L220-L223 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/geo/stlength.md b/content/flux/v0.x/stdlib/experimental/geo/stlength.md index d891df9ec..1ec3560da 100644 --- a/content/flux/v0.x/stdlib/experimental/geo/stlength.md +++ b/content/flux/v0.x/stdlib/experimental/geo/stlength.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/experimental/geo/geo.flux#L233-L233 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/geo/geo.flux#L239-L239 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/geo/strictfilter.md b/content/flux/v0.x/stdlib/experimental/geo/strictfilter.md index a77af28c5..7bea15481 100644 --- a/content/flux/v0.x/stdlib/experimental/geo/strictfilter.md +++ b/content/flux/v0.x/stdlib/experimental/geo/strictfilter.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/experimental/geo/geo.flux#L741-L743 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/geo/geo.flux#L756-L758 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/geo/torows.md b/content/flux/v0.x/stdlib/experimental/geo/torows.md index 49e8bc577..19af31294 100644 --- a/content/flux/v0.x/stdlib/experimental/geo/torows.md +++ b/content/flux/v0.x/stdlib/experimental/geo/torows.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/experimental/geo/geo.flux#L539-L541 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/geo/geo.flux#L548-L550 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/histogram.md b/content/flux/v0.x/stdlib/experimental/histogram.md index 4ddeba029..ce853adc9 100644 --- a/content/flux/v0.x/stdlib/experimental/histogram.md +++ b/content/flux/v0.x/stdlib/experimental/histogram.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/experimental/experimental.flux#L1258-L1262 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/experimental.flux#L1272-L1276 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/http/get.md b/content/flux/v0.x/stdlib/experimental/http/get.md index 56b658ddf..1b24051d8 100644 --- a/content/flux/v0.x/stdlib/experimental/http/get.md +++ b/content/flux/v0.x/stdlib/experimental/http/get.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/experimental/http/http.flux#L41-L44 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/http/http.flux#L41-L48 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/http/requests/do.md b/content/flux/v0.x/stdlib/experimental/http/requests/do.md index 7b9135bee..8da09f909 100644 --- a/content/flux/v0.x/stdlib/experimental/http/requests/do.md +++ b/content/flux/v0.x/stdlib/experimental/http/requests/do.md @@ -124,7 +124,12 @@ import "influxdata/influxdb/secrets" token = secrets.get(key: "TOKEN") -response = requests.do(method: "GET", url: "http://example.com", headers: ["Authorization": "token ${token}"]) +response = + requests.do( + method: "GET", + url: "http://example.com", + headers: ["Authorization": "token ${token}"], + ) requests.peek(response: response) diff --git a/content/flux/v0.x/stdlib/experimental/http/requests/peek.md b/content/flux/v0.x/stdlib/experimental/http/requests/peek.md index 512ecfda2..165f8d194 100644 --- a/content/flux/v0.x/stdlib/experimental/http/requests/peek.md +++ b/content/flux/v0.x/stdlib/experimental/http/requests/peek.md @@ -78,8 +78,8 @@ requests.peek(response: requests.get(url: "https://api.agify.io", params: ["name #### Output data -| body | duration | headers | statusCode | -| ----------------------------------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | +| body | duration | headers | statusCode | +| ----------------------------------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | | {"name":"natalie","age":34,"count":20959} | 100000000 | [ Access-Control-Allow-Headers: Content-Type, X-Genderize-Source, Access-Control-Allow-Methods: GET, @@ -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: Mon, 15 Aug 2022 21:34:36 GMT, + Date: Mon, 22 Aug 2022 19:17:07 GMT, Etag: W/"29-klDahUESBLxHyQ7NiaetCn2CvCI", Server: nginx/1.16.1, X-Rate-Limit-Limit: 1000, X-Rate-Limit-Remaining: 998, - X-Rate-Reset: 8723 + X-Rate-Reset: 16973 ] | 200 | {{% /expand %}} diff --git a/content/flux/v0.x/stdlib/experimental/join.md b/content/flux/v0.x/stdlib/experimental/join.md index 52a7a11db..7935fe4a5 100644 --- a/content/flux/v0.x/stdlib/experimental/join.md +++ b/content/flux/v0.x/stdlib/experimental/join.md @@ -108,7 +108,8 @@ right = experimental.join( left: left, right: right, - fn: (left, right) => ({left with lv: left._value, rv: right._value, diff: left._value - right._value}), + fn: (left, right) => + ({left with lv: left._value, rv: right._value, diff: left._value - right._value}), ) ``` diff --git a/content/flux/v0.x/stdlib/experimental/kaufmansama.md b/content/flux/v0.x/stdlib/experimental/kaufmansama.md index cbdd20ed0..f677c1308 100644 --- a/content/flux/v0.x/stdlib/experimental/kaufmansama.md +++ b/content/flux/v0.x/stdlib/experimental/kaufmansama.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/experimental/experimental.flux#L1016-L1016 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/experimental.flux#L1021-L1026 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/last.md b/content/flux/v0.x/stdlib/experimental/last.md index e2ccb1d6a..3226a6585 100644 --- a/content/flux/v0.x/stdlib/experimental/last.md +++ b/content/flux/v0.x/stdlib/experimental/last.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/experimental/experimental.flux#L1125-L1125 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/experimental.flux#L1139-L1139 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/max.md b/content/flux/v0.x/stdlib/experimental/max.md index cf72695ac..c84c4571d 100644 --- a/content/flux/v0.x/stdlib/experimental/max.md +++ b/content/flux/v0.x/stdlib/experimental/max.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/experimental/experimental.flux#L1149-L1149 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/experimental.flux#L1163-L1163 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/min.md b/content/flux/v0.x/stdlib/experimental/min.md index ff53a5464..17a991828 100644 --- a/content/flux/v0.x/stdlib/experimental/min.md +++ b/content/flux/v0.x/stdlib/experimental/min.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/experimental/experimental.flux#L1173-L1173 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/experimental.flux#L1187-L1187 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/oee/apq.md b/content/flux/v0.x/stdlib/experimental/oee/apq.md index 748ad81e8..f5d8f6e2f 100644 --- a/content/flux/v0.x/stdlib/experimental/oee/apq.md +++ b/content/flux/v0.x/stdlib/experimental/oee/apq.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/experimental/oee/oee.flux#L202-L209 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/oee/oee.flux#L210-L217 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/oee/computeapq.md b/content/flux/v0.x/stdlib/experimental/oee/computeapq.md index e1f65f749..819b70ea3 100644 --- a/content/flux/v0.x/stdlib/experimental/oee/computeapq.md +++ b/content/flux/v0.x/stdlib/experimental/oee/computeapq.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/experimental/oee/oee.flux#L94-L147 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/oee/oee.flux#L94-L155 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/preview.md b/content/flux/v0.x/stdlib/experimental/preview.md index 2a76c4223..459fcf269 100644 --- a/content/flux/v0.x/stdlib/experimental/preview.md +++ b/content/flux/v0.x/stdlib/experimental/preview.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/experimental/experimental.flux#L1292-L1292 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/experimental.flux#L1306-L1306 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/query/filterfields.md b/content/flux/v0.x/stdlib/experimental/query/filterfields.md index 8ed1c85cf..dd833603c 100644 --- a/content/flux/v0.x/stdlib/experimental/query/filterfields.md +++ b/content/flux/v0.x/stdlib/experimental/query/filterfields.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/experimental/query/from.flux#L82-L86 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/query/from.flux#L83-L87 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/query/filtermeasurement.md b/content/flux/v0.x/stdlib/experimental/query/filtermeasurement.md index 7e57c4123..f02562f73 100644 --- a/content/flux/v0.x/stdlib/experimental/query/filtermeasurement.md +++ b/content/flux/v0.x/stdlib/experimental/query/filtermeasurement.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/experimental/query/from.flux#L62-L62 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/query/from.flux#L62-L63 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/query/inbucket.md b/content/flux/v0.x/stdlib/experimental/query/inbucket.md index 36f459b62..6a2e55d5c 100644 --- a/content/flux/v0.x/stdlib/experimental/query/inbucket.md +++ b/content/flux/v0.x/stdlib/experimental/query/inbucket.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/experimental/query/from.flux#L132-L143 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/query/from.flux#L133-L144 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/spread.md b/content/flux/v0.x/stdlib/experimental/spread.md index 0c52b577f..553263047 100644 --- a/content/flux/v0.x/stdlib/experimental/spread.md +++ b/content/flux/v0.x/stdlib/experimental/spread.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/experimental/experimental.flux#L929-L929 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/experimental.flux#L929-L931 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/stddev.md b/content/flux/v0.x/stdlib/experimental/stddev.md index 3600e2bb8..bc2723198 100644 --- a/content/flux/v0.x/stdlib/experimental/stddev.md +++ b/content/flux/v0.x/stdlib/experimental/stddev.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/experimental/experimental.flux#L969-L969 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/experimental.flux#L971-L974 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/sum.md b/content/flux/v0.x/stdlib/experimental/sum.md index b9e430936..573c858f1 100644 --- a/content/flux/v0.x/stdlib/experimental/sum.md +++ b/content/flux/v0.x/stdlib/experimental/sum.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/experimental/experimental.flux#L990-L990 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/experimental.flux#L995-L995 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/unique.md b/content/flux/v0.x/stdlib/experimental/unique.md index f4ca9a643..b591fbc1d 100644 --- a/content/flux/v0.x/stdlib/experimental/unique.md +++ b/content/flux/v0.x/stdlib/experimental/unique.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/experimental/experimental.flux#L1202-L1202 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/experimental.flux#L1216-L1216 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/unpivot.md b/content/flux/v0.x/stdlib/experimental/unpivot.md index 1c6cfa650..543f678e3 100644 --- a/content/flux/v0.x/stdlib/experimental/unpivot.md +++ b/content/flux/v0.x/stdlib/experimental/unpivot.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/experimental/experimental.flux#L1300-L1303 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/experimental.flux#L1314-L1319 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/experimental/usage/limits.md b/content/flux/v0.x/stdlib/experimental/usage/limits.md index 7455912c2..a0f43f4d2 100644 --- a/content/flux/v0.x/stdlib/experimental/usage/limits.md +++ b/content/flux/v0.x/stdlib/experimental/usage/limits.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/experimental/usage/usage.flux#L305-L319 +https://github.com/influxdata/flux/blob/master/stdlib/experimental/usage/usage.flux#L305-L325 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md @@ -104,7 +104,11 @@ import "influxdata/influxdb/secrets" token = secrets.get(key: "INFLUX_TOKEN") -usage.limits(host: "https://us-west-2-1.aws.cloud2.influxdata.com", orgID: "x000X0x0xx0X00x0", token: token) +usage.limits( + host: "https://us-west-2-1.aws.cloud2.influxdata.com", + orgID: "x000X0x0xx0X00x0", + token: token, +) ``` @@ -119,36 +123,66 @@ limits = usage.limits() array.from( rows: [ - {orgID: limits.orgID, limitGroup: "rate", limitName: "Read (kb/s)", limit: limits.rate.readKBs}, + { + orgID: limits.orgID, + limitGroup: "rate", + limitName: "Read (kb/s)", + limit: limits.rate.readKBs, + }, { orgID: limits.orgID, limitGroup: "rate", limitName: "Concurrent Read Requests", limit: limits.rate.concurrentReadRequests, }, - {orgID: limits.orgID, limitGroup: "rate", limitName: "Write (kb/s)", limit: limits.rate.writeKBs}, + { + orgID: limits.orgID, + limitGroup: "rate", + limitName: "Write (kb/s)", + limit: limits.rate.writeKBs, + }, { orgID: limits.orgID, limitGroup: "rate", limitName: "Concurrent Write Requests", limit: limits.rate.concurrentWriteRequests, }, - {orgID: limits.orgID, limitGroup: "rate", limitName: "Cardinality", limit: limits.rate.cardinality}, - {orgID: limits.orgID, limitGroup: "bucket", limitName: "Max Buckets", limit: limits.bucket.maxBuckets}, + { + orgID: limits.orgID, + limitGroup: "rate", + limitName: "Cardinality", + limit: limits.rate.cardinality, + }, + { + orgID: limits.orgID, + limitGroup: "bucket", + limitName: "Max Buckets", + limit: limits.bucket.maxBuckets, + }, { orgID: limits.orgID, limitGroup: "bucket", limitName: "Max Retention Period (ns)", limit: limits.bucket.maxRetentionDuration, }, - {orgID: limits.orgID, limitGroup: "task", limitName: "Max Tasks", limit: limits.task.maxTasks}, + { + orgID: limits.orgID, + limitGroup: "task", + limitName: "Max Tasks", + limit: limits.task.maxTasks, + }, { orgID: limits.orgID, limitGroup: "dashboard", limitName: "Max Dashboards", limit: limits.dashboard.maxDashboards, }, - {orgID: limits.orgID, limitGroup: "check", limitName: "Max Checks", limit: limits.check.maxChecks}, + { + orgID: limits.orgID, + limitGroup: "check", + limitName: "Max Checks", + limit: limits.check.maxChecks, + }, { orgID: limits.orgID, limitGroup: "notificationRule", diff --git a/content/flux/v0.x/stdlib/generate/from.md b/content/flux/v0.x/stdlib/generate/from.md index 9877d7a03..22ff93dd1 100644 --- a/content/flux/v0.x/stdlib/generate/from.md +++ b/content/flux/v0.x/stdlib/generate/from.md @@ -74,7 +74,12 @@ End of the time range to generate values in. ```js import "generate" -generate.from(count: 6, fn: (n) => (n + 1) * (n + 2), start: 2021-01-01T00:00:00Z, stop: 2021-01-02T00:00:00Z) +generate.from( + count: 6, + fn: (n) => (n + 1) * (n + 2), + start: 2021-01-01T00:00:00Z, + stop: 2021-01-02T00:00:00Z, +) ``` diff --git a/content/flux/v0.x/stdlib/http/endpoint.md b/content/flux/v0.x/stdlib/http/endpoint.md index b370ddffe..a55e532c1 100644 --- a/content/flux/v0.x/stdlib/http/endpoint.md +++ b/content/flux/v0.x/stdlib/http/endpoint.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/http/http.flux#L155-L166 +https://github.com/influxdata/flux/blob/master/stdlib/http/http.flux#L155-L170 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md @@ -73,7 +73,10 @@ import "sampledata" endpoint = http.endpoint(url: "http://example.com/")( mapfn: (r) => - ({headers: {header1: "example1", header2: "example2"}, data: bytes(v: "The value is ${r._value}")}), + ({ + headers: {header1: "example1", header2: "example2"}, + data: bytes(v: "The value is ${r._value}"), + }), ) sampledata.int() diff --git a/content/flux/v0.x/stdlib/http/requests/do.md b/content/flux/v0.x/stdlib/http/requests/do.md index 0bd540d8d..1ede10455 100644 --- a/content/flux/v0.x/stdlib/http/requests/do.md +++ b/content/flux/v0.x/stdlib/http/requests/do.md @@ -121,7 +121,12 @@ import "influxdata/influxdb/secrets" token = secrets.get(key: "TOKEN") -response = requests.do(method: "GET", url: "http://example.com", headers: ["Authorization": "token ${token}"]) +response = + requests.do( + method: "GET", + url: "http://example.com", + headers: ["Authorization": "token ${token}"], + ) requests.peek(response: response) diff --git a/content/flux/v0.x/stdlib/http/requests/peek.md b/content/flux/v0.x/stdlib/http/requests/peek.md index 7633b545e..db2b97cbc 100644 --- a/content/flux/v0.x/stdlib/http/requests/peek.md +++ b/content/flux/v0.x/stdlib/http/requests/peek.md @@ -73,8 +73,8 @@ requests.peek(response: requests.get(url: "https://api.agify.io", params: ["name #### Output data -| body | duration | headers | statusCode | -| ----------------------------------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | +| body | duration | headers | statusCode | +| ----------------------------------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | | {"name":"natalie","age":34,"count":20959} | 100000000 | [ Access-Control-Allow-Headers: Content-Type, X-Genderize-Source, Access-Control-Allow-Methods: GET, @@ -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: Mon, 15 Aug 2022 21:34:38 GMT, + Date: Mon, 22 Aug 2022 19:17:08 GMT, Etag: W/"29-klDahUESBLxHyQ7NiaetCn2CvCI", Server: nginx/1.16.1, X-Rate-Limit-Limit: 1000, X-Rate-Limit-Remaining: 996, - X-Rate-Reset: 8722 + X-Rate-Reset: 16971 ] | 200 | {{% /expand %}} diff --git a/content/flux/v0.x/stdlib/influxdata/influxdb/cardinality.md b/content/flux/v0.x/stdlib/influxdata/influxdb/cardinality.md index 7715a0320..b140923d0 100644 --- a/content/flux/v0.x/stdlib/influxdata/influxdb/cardinality.md +++ b/content/flux/v0.x/stdlib/influxdata/influxdb/cardinality.md @@ -134,7 +134,11 @@ influxdb.cardinality(bucket: "example-bucket", start: -1y) ```js import "influxdata/influxdb" -influxdb.cardinality(bucket: "example-bucket", start: -1y, predicate: (r) => r._measurement == "example-measurement") +influxdb.cardinality( + bucket: "example-bucket", + start: -1y, + predicate: (r) => r._measurement == "example-measurement", +) ``` diff --git a/content/flux/v0.x/stdlib/influxdata/influxdb/from.md b/content/flux/v0.x/stdlib/influxdata/influxdb/from.md index cd30ea80a..b80460b77 100644 --- a/content/flux/v0.x/stdlib/influxdata/influxdb/from.md +++ b/content/flux/v0.x/stdlib/influxdata/influxdb/from.md @@ -133,7 +133,12 @@ import "influxdata/influxdb/secrets" token = secrets.get(key: "INFLUXDB_CLOUD_TOKEN") -from(bucket: "example-bucket", host: "https://us-west-2-1.aws.cloud2.influxdata.com", org: "example-org", token: token) +from( + bucket: "example-bucket", + host: "https://us-west-2-1.aws.cloud2.influxdata.com", + org: "example-org", + token: token, +) ``` diff --git a/content/flux/v0.x/stdlib/influxdata/influxdb/monitor/check.md b/content/flux/v0.x/stdlib/influxdata/influxdb/monitor/check.md index a4b0889df..69db3cea4 100644 --- a/content/flux/v0.x/stdlib/influxdata/influxdb/monitor/check.md +++ b/content/flux/v0.x/stdlib/influxdata/influxdb/monitor/check.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/influxdata/influxdb/monitor/monitor.flux#L454-L500 +https://github.com/influxdata/flux/blob/master/stdlib/influxdata/influxdb/monitor/monitor.flux#L460-L506 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/influxdata/influxdb/monitor/deadman.md b/content/flux/v0.x/stdlib/influxdata/influxdb/monitor/deadman.md index 69adfcb72..df0024dd0 100644 --- a/content/flux/v0.x/stdlib/influxdata/influxdb/monitor/deadman.md +++ b/content/flux/v0.x/stdlib/influxdata/influxdb/monitor/deadman.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/influxdata/influxdb/monitor/monitor.flux#L380-L383 +https://github.com/influxdata/flux/blob/master/stdlib/influxdata/influxdb/monitor/monitor.flux#L386-L389 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/influxdata/influxdb/monitor/notify.md b/content/flux/v0.x/stdlib/influxdata/influxdb/monitor/notify.md index b75c97248..c4978cf8e 100644 --- a/content/flux/v0.x/stdlib/influxdata/influxdb/monitor/notify.md +++ b/content/flux/v0.x/stdlib/influxdata/influxdb/monitor/notify.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/influxdata/influxdb/monitor/monitor.flux#L223-L230 +https://github.com/influxdata/flux/blob/master/stdlib/influxdata/influxdb/monitor/monitor.flux#L223-L236 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md @@ -86,7 +86,10 @@ import "slack" token = secrets.get(key: "SLACK_TOKEN") -endpoint = slack.endpoint(token: token)(mapFn: (r) => ({channel: "Alerts", text: r._message, color: "danger"})) +endpoint = + slack.endpoint(token: token)( + mapFn: (r) => ({channel: "Alerts", text: r._message, color: "danger"}), + ) notification_data = { _notification_rule_id: "0000000000000001", diff --git a/content/flux/v0.x/stdlib/influxdata/influxdb/monitor/statechanges.md b/content/flux/v0.x/stdlib/influxdata/influxdb/monitor/statechanges.md index 163fae812..dc3ab102e 100644 --- a/content/flux/v0.x/stdlib/influxdata/influxdb/monitor/statechanges.md +++ b/content/flux/v0.x/stdlib/influxdata/influxdb/monitor/statechanges.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/influxdata/influxdb/monitor/monitor.flux#L323-L329 +https://github.com/influxdata/flux/blob/master/stdlib/influxdata/influxdb/monitor/monitor.flux#L329-L335 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/influxdata/influxdb/monitor/statechangesonly.md b/content/flux/v0.x/stdlib/influxdata/influxdb/monitor/statechangesonly.md index c73814ed9..61bd9d369 100644 --- a/content/flux/v0.x/stdlib/influxdata/influxdb/monitor/statechangesonly.md +++ b/content/flux/v0.x/stdlib/influxdata/influxdb/monitor/statechangesonly.md @@ -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/influxdata/influxdb/monitor/monitor.flux#L263-L289 +https://github.com/influxdata/flux/blob/master/stdlib/influxdata/influxdb/monitor/monitor.flux#L269-L295 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/influxdata/influxdb/sample/aligntonow.md b/content/flux/v0.x/stdlib/influxdata/influxdb/sample/aligntonow.md index 774789352..f1c402408 100644 --- a/content/flux/v0.x/stdlib/influxdata/influxdb/sample/aligntonow.md +++ b/content/flux/v0.x/stdlib/influxdata/influxdb/sample/aligntonow.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/influxdata/influxdb/sample/sample.flux#L168-L178 +https://github.com/influxdata/flux/blob/master/stdlib/influxdata/influxdb/sample/sample.flux#L169-L179 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/influxdata/influxdb/sample/data.md b/content/flux/v0.x/stdlib/influxdata/influxdb/sample/data.md index 2aecd45ce..62faa2be0 100644 --- a/content/flux/v0.x/stdlib/influxdata/influxdb/sample/data.md +++ b/content/flux/v0.x/stdlib/influxdata/influxdb/sample/data.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/influxdata/influxdb/sample/sample.flux#L109-L119 +https://github.com/influxdata/flux/blob/master/stdlib/influxdata/influxdb/sample/sample.flux#L110-L120 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/influxdata/influxdb/sample/list.md b/content/flux/v0.x/stdlib/influxdata/influxdb/sample/list.md index 8c5114886..6ba945167 100644 --- a/content/flux/v0.x/stdlib/influxdata/influxdb/sample/list.md +++ b/content/flux/v0.x/stdlib/influxdata/influxdb/sample/list.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/influxdata/influxdb/sample/sample.flux#L132-L143 +https://github.com/influxdata/flux/blob/master/stdlib/influxdata/influxdb/sample/sample.flux#L133-L144 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/influxdata/influxdb/schema/fieldkeys.md b/content/flux/v0.x/stdlib/influxdata/influxdb/schema/fieldkeys.md index ddb796554..93a70bc28 100644 --- a/content/flux/v0.x/stdlib/influxdata/influxdb/schema/fieldkeys.md +++ b/content/flux/v0.x/stdlib/influxdata/influxdb/schema/fieldkeys.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/influxdata/influxdb/schema/schema.flux#L241-L248 +https://github.com/influxdata/flux/blob/master/stdlib/influxdata/influxdb/schema/schema.flux#L246-L253 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/influxdata/influxdb/schema/measurementfieldkeys.md b/content/flux/v0.x/stdlib/influxdata/influxdb/schema/measurementfieldkeys.md index c6a619671..49dd8f5bf 100644 --- a/content/flux/v0.x/stdlib/influxdata/influxdb/schema/measurementfieldkeys.md +++ b/content/flux/v0.x/stdlib/influxdata/influxdb/schema/measurementfieldkeys.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/influxdata/influxdb/schema/schema.flux#L281-L282 +https://github.com/influxdata/flux/blob/master/stdlib/influxdata/influxdb/schema/schema.flux#L286-L292 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/influxdata/influxdb/schema/measurements.md b/content/flux/v0.x/stdlib/influxdata/influxdb/schema/measurements.md index 6e8dcc966..66a63b53e 100644 --- a/content/flux/v0.x/stdlib/influxdata/influxdb/schema/measurements.md +++ b/content/flux/v0.x/stdlib/influxdata/influxdb/schema/measurements.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/influxdata/influxdb/schema/schema.flux#L307-L308 +https://github.com/influxdata/flux/blob/master/stdlib/influxdata/influxdb/schema/schema.flux#L317-L318 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/influxdata/influxdb/schema/measurementtagkeys.md b/content/flux/v0.x/stdlib/influxdata/influxdb/schema/measurementtagkeys.md index 5b025cb57..28932136f 100644 --- a/content/flux/v0.x/stdlib/influxdata/influxdb/schema/measurementtagkeys.md +++ b/content/flux/v0.x/stdlib/influxdata/influxdb/schema/measurementtagkeys.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/influxdata/influxdb/schema/schema.flux#L206-L207 +https://github.com/influxdata/flux/blob/master/stdlib/influxdata/influxdb/schema/schema.flux#L206-L212 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/influxdata/influxdb/schema/measurementtagvalues.md b/content/flux/v0.x/stdlib/influxdata/influxdb/schema/measurementtagvalues.md index 938b5c70d..bb347c81e 100644 --- a/content/flux/v0.x/stdlib/influxdata/influxdb/schema/measurementtagvalues.md +++ b/content/flux/v0.x/stdlib/influxdata/influxdb/schema/measurementtagvalues.md @@ -87,7 +87,11 @@ Default is `now()`. ```js import "influxdata/influxdb/schema" -schema.measurementTagValues(bucket: "example-bucket", measurement: "example-measurement", tag: "example-tag") +schema.measurementTagValues( + bucket: "example-bucket", + measurement: "example-measurement", + tag: "example-tag", +) ``` diff --git a/content/flux/v0.x/stdlib/influxdata/influxdb/to.md b/content/flux/v0.x/stdlib/influxdata/influxdb/to.md index e308ba580..ae144d213 100644 --- a/content/flux/v0.x/stdlib/influxdata/influxdb/to.md +++ b/content/flux/v0.x/stdlib/influxdata/influxdb/to.md @@ -194,7 +194,12 @@ data = ) data - |> to(bucket: "example-bucket", org: "example-org", token: "mYSuP3rSecR37t0k3N", host: "http://localhost:8086") + |> to( + bucket: "example-bucket", + org: "example-org", + token: "mYSuP3rSecR37t0k3N", + host: "http://localhost:8086", + ) ``` @@ -282,7 +287,9 @@ data |> to(bucket: "bucket1") |> group() |> count() - |> map(fn: (r) => ({r with _time: now(), _measurement: "writeStats", _field: "numPointsWritten"})) + |> map( + fn: (r) => ({r with _time: now(), _measurement: "writeStats", _field: "numPointsWritten"}), + ) |> to(bucket: "bucket2") ``` diff --git a/content/flux/v0.x/stdlib/influxdata/influxdb/v1/measurements.md b/content/flux/v0.x/stdlib/influxdata/influxdb/v1/measurements.md index cb288ce76..7574a3862 100644 --- a/content/flux/v0.x/stdlib/influxdata/influxdb/v1/measurements.md +++ b/content/flux/v0.x/stdlib/influxdata/influxdb/v1/measurements.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/influxdata/influxdb/v1/v1.flux#L397-L397 +https://github.com/influxdata/flux/blob/master/stdlib/influxdata/influxdb/v1/v1.flux#L397-L398 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/influxdata/influxdb/v1/measurementtagvalues.md b/content/flux/v0.x/stdlib/influxdata/influxdb/v1/measurementtagvalues.md index 5c208bbbc..ff7198005 100644 --- a/content/flux/v0.x/stdlib/influxdata/influxdb/v1/measurementtagvalues.md +++ b/content/flux/v0.x/stdlib/influxdata/influxdb/v1/measurementtagvalues.md @@ -88,7 +88,11 @@ Default is `now()`. ```js import "influxdata/influxdb/schema" -schema.measurementTagValues(bucket: "example-bucket", measurement: "example-measurement", tag: "example-tag") +schema.measurementTagValues( + bucket: "example-bucket", + measurement: "example-measurement", + tag: "example-tag", +) ``` diff --git a/content/flux/v0.x/stdlib/internal/debug/null.md b/content/flux/v0.x/stdlib/internal/debug/null.md index 597ee99ee..a534b09b6 100644 --- a/content/flux/v0.x/stdlib/internal/debug/null.md +++ b/content/flux/v0.x/stdlib/internal/debug/null.md @@ -1,13 +1,14 @@ --- title: debug.null() function description: > - `debug.null()` returns the null value with the given type + `debug.null()` returns the null value with a given type. menu: flux_0_x_ref: name: debug.null parent: internal/debug identifier: internal/debug/null weight: 201 + introduced: 0.179.0 --- @@ -20,14 +21,15 @@ 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#L64-L64 +https://github.com/influxdata/flux/blob/master/stdlib/internal/debug/debug.flux#L86-L86 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md -------------------------------------------------------------------------------> -`debug.null()` returns the null value with the given type. +`debug.null()` returns the null value with a given type. + ##### Function type signature @@ -45,7 +47,6 @@ Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md Null type. **Supported types**: - - string - bytes - int @@ -56,6 +57,7 @@ Null type. - duration - regexp + ## Examples ### Include null values in an ad hoc stream of tables @@ -64,6 +66,19 @@ Null type. import "array" import "internal/debug" -array.from(rows: [{a: 1, b: 2, c: 3}, {a: debug.null("int"), b: 5, c: 6}]) +array.from(rows: [{a: 1, b: 2, c: 3}, {a: debug.null(type: "int"), b: 5, c: 6}]) + ``` +{{< expand-wrapper >}} +{{% expand "View example output" %}} + +#### Output data + +| a | b | c | +| -- | -- | -- | +| 1 | 2 | 3 | +| | 5 | 6 | + +{{% /expand %}} +{{< /expand-wrapper >}} diff --git a/content/flux/v0.x/stdlib/join/inner.md b/content/flux/v0.x/stdlib/join/inner.md index 373ecae05..4e47fe1cf 100644 --- a/content/flux/v0.x/stdlib/join/inner.md +++ b/content/flux/v0.x/stdlib/join/inner.md @@ -81,7 +81,12 @@ import "join" ints = sampledata.int() strings = sampledata.string() -join.inner(left: ints, right: strings, on: (l, r) => l._time == r._time, as: (l, r) => ({l with label: r._value})) +join.inner( + left: ints, + right: strings, + on: (l, r) => l._time == r._time, + as: (l, r) => ({l with label: r._value}), +) ``` diff --git a/content/flux/v0.x/stdlib/pagerduty/actionfromlevel.md b/content/flux/v0.x/stdlib/pagerduty/actionfromlevel.md index f6cf456a4..56397717a 100644 --- a/content/flux/v0.x/stdlib/pagerduty/actionfromlevel.md +++ b/content/flux/v0.x/stdlib/pagerduty/actionfromlevel.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#L118-L118 +https://github.com/influxdata/flux/blob/master/stdlib/pagerduty/pagerduty.flux#L121-L121 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/pagerduty/actionfromseverity.md b/content/flux/v0.x/stdlib/pagerduty/actionfromseverity.md index 23b507f04..a3ae2fb3c 100644 --- a/content/flux/v0.x/stdlib/pagerduty/actionfromseverity.md +++ b/content/flux/v0.x/stdlib/pagerduty/actionfromseverity.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#L95-L99 +https://github.com/influxdata/flux/blob/master/stdlib/pagerduty/pagerduty.flux#L98-L102 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/pagerduty/dedupkey.md b/content/flux/v0.x/stdlib/pagerduty/dedupkey.md index 41f5927a6..ffb5216e0 100644 --- a/content/flux/v0.x/stdlib/pagerduty/dedupkey.md +++ b/content/flux/v0.x/stdlib/pagerduty/dedupkey.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/pagerduty/pagerduty.flux#L35-L35 +https://github.com/influxdata/flux/blob/master/stdlib/pagerduty/pagerduty.flux#L35-L38 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/pagerduty/endpoint.md b/content/flux/v0.x/stdlib/pagerduty/endpoint.md index b44151494..9257f0fc7 100644 --- a/content/flux/v0.x/stdlib/pagerduty/endpoint.md +++ b/content/flux/v0.x/stdlib/pagerduty/endpoint.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/pagerduty/pagerduty.flux#L341-L373 +https://github.com/influxdata/flux/blob/master/stdlib/pagerduty/pagerduty.flux#L348-L381 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/pagerduty/sendevent.md b/content/flux/v0.x/stdlib/pagerduty/sendevent.md index 2da228696..e04dd0b06 100644 --- a/content/flux/v0.x/stdlib/pagerduty/sendevent.md +++ b/content/flux/v0.x/stdlib/pagerduty/sendevent.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/pagerduty/pagerduty.flux#L241-L272 +https://github.com/influxdata/flux/blob/master/stdlib/pagerduty/pagerduty.flux#L248-L279 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/pagerduty/severityfromlevel.md b/content/flux/v0.x/stdlib/pagerduty/severityfromlevel.md index 0a7a5dc05..0bab87134 100644 --- a/content/flux/v0.x/stdlib/pagerduty/severityfromlevel.md +++ b/content/flux/v0.x/stdlib/pagerduty/severityfromlevel.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#L61-L76 +https://github.com/influxdata/flux/blob/master/stdlib/pagerduty/pagerduty.flux#L64-L79 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/pushbullet/endpoint.md b/content/flux/v0.x/stdlib/pushbullet/endpoint.md index 18e2de29a..ce0240d25 100644 --- a/content/flux/v0.x/stdlib/pushbullet/endpoint.md +++ b/content/flux/v0.x/stdlib/pushbullet/endpoint.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/pushbullet/pushbullet.flux#L111-L125 +https://github.com/influxdata/flux/blob/master/stdlib/pushbullet/pushbullet.flux#L111-L131 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md @@ -87,7 +87,10 @@ crit_statuses = crit_statuses |> pushbullet.endpoint(token: token)( mapFn: (r) => - ({title: "${r.component} is critical", text: "${r.component} is critical. {$r._field} is {r._value}."}), + ({ + title: "${r.component} is critical", + text: "${r.component} is critical. {$r._field} is {r._value}.", + }), )() ``` diff --git a/content/flux/v0.x/stdlib/sampledata/bool.md b/content/flux/v0.x/stdlib/sampledata/bool.md index 9a3557a93..440789a37 100644 --- a/content/flux/v0.x/stdlib/sampledata/bool.md +++ b/content/flux/v0.x/stdlib/sampledata/bool.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/sampledata/sampledata.flux#L239-L243 +https://github.com/influxdata/flux/blob/master/stdlib/sampledata/sampledata.flux#L258-L262 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/sampledata/float.md b/content/flux/v0.x/stdlib/sampledata/float.md index a8e2b3f1d..c0f9fd5d2 100644 --- a/content/flux/v0.x/stdlib/sampledata/float.md +++ b/content/flux/v0.x/stdlib/sampledata/float.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/sampledata/sampledata.flux#L151-L155 +https://github.com/influxdata/flux/blob/master/stdlib/sampledata/sampledata.flux#L170-L174 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/sampledata/int.md b/content/flux/v0.x/stdlib/sampledata/int.md index 1bce8736f..46c8fa23e 100644 --- a/content/flux/v0.x/stdlib/sampledata/int.md +++ b/content/flux/v0.x/stdlib/sampledata/int.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/sampledata/sampledata.flux#L173-L177 +https://github.com/influxdata/flux/blob/master/stdlib/sampledata/sampledata.flux#L192-L196 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/sampledata/numericbool.md b/content/flux/v0.x/stdlib/sampledata/numericbool.md index 1baa106bf..034ed7820 100644 --- a/content/flux/v0.x/stdlib/sampledata/numericbool.md +++ b/content/flux/v0.x/stdlib/sampledata/numericbool.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/sampledata/sampledata.flux#L261-L265 +https://github.com/influxdata/flux/blob/master/stdlib/sampledata/sampledata.flux#L280-L284 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/sampledata/string.md b/content/flux/v0.x/stdlib/sampledata/string.md index a4f19d69d..b96b3157a 100644 --- a/content/flux/v0.x/stdlib/sampledata/string.md +++ b/content/flux/v0.x/stdlib/sampledata/string.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/sampledata/sampledata.flux#L217-L221 +https://github.com/influxdata/flux/blob/master/stdlib/sampledata/sampledata.flux#L236-L240 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/sampledata/uint.md b/content/flux/v0.x/stdlib/sampledata/uint.md index 6e33afeaf..630cecc4e 100644 --- a/content/flux/v0.x/stdlib/sampledata/uint.md +++ b/content/flux/v0.x/stdlib/sampledata/uint.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/sampledata/sampledata.flux#L195-L199 +https://github.com/influxdata/flux/blob/master/stdlib/sampledata/sampledata.flux#L214-L218 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/slack/endpoint.md b/content/flux/v0.x/stdlib/slack/endpoint.md index 93c7884a6..44cde16cb 100644 --- a/content/flux/v0.x/stdlib/slack/endpoint.md +++ b/content/flux/v0.x/stdlib/slack/endpoint.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/slack/slack.flux#L150-L171 +https://github.com/influxdata/flux/blob/master/stdlib/slack/slack.flux#L152-L173 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/slack/message.md b/content/flux/v0.x/stdlib/slack/message.md index cdd90437d..c99aae139 100644 --- a/content/flux/v0.x/stdlib/slack/message.md +++ b/content/flux/v0.x/stdlib/slack/message.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/slack/slack.flux#L87-L101 +https://github.com/influxdata/flux/blob/master/stdlib/slack/slack.flux#L87-L103 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/types/istype.md b/content/flux/v0.x/stdlib/types/istype.md index edc257c99..fd68a6c62 100644 --- a/content/flux/v0.x/stdlib/types/istype.md +++ b/content/flux/v0.x/stdlib/types/istype.md @@ -117,12 +117,21 @@ import "types" nonNumericData = data - |> filter(fn: (r) => types.isType(v: r._value, type: "string") or types.isType(v: r._value, type: "bool")) + |> filter( + fn: (r) => + types.isType(v: r._value, type: "string") or types.isType( + v: r._value, + type: "bool", + ), + ) |> aggregateWindow(every: 30s, fn: last) numericData = data - |> filter(fn: (r) => types.isType(v: r._value, type: "int") or types.isType(v: r._value, type: "float")) + |> filter( + fn: (r) => + types.isType(v: r._value, type: "int") or types.isType(v: r._value, type: "float"), + ) |> aggregateWindow(every: 30s, fn: mean) union(tables: [nonNumericData, numericData]) diff --git a/content/flux/v0.x/stdlib/universe/aggregatewindow.md b/content/flux/v0.x/stdlib/universe/aggregatewindow.md index 21b91d5fb..ff0ce284a 100644 --- a/content/flux/v0.x/stdlib/universe/aggregatewindow.md +++ b/content/flux/v0.x/stdlib/universe/aggregatewindow.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/universe/universe.flux#L3791-L3814 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3852-L3875 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md @@ -89,7 +89,7 @@ Duration to shift the window boundaries by. Defualt is `0s`. ### fn ({{< req >}}) -Aggreate or selector function to apply to each time window. +Aggregate or selector function to apply to each time window. @@ -121,7 +121,7 @@ Default is `_time`. ### createEmpty -Create empty tables for empty window. Default is `false`. +Create empty tables for empty window. Default is `true`. **Note:** When using `createEmpty: true`, aggregate functions return empty tables, but selector functions do not. By design, selectors drop empty tables. @@ -310,28 +310,41 @@ desired day of the week. | Sunday | 3d | ```js -# import "array" -# -# data = -# array.from( -# rows: [ -# {_time: 2022-01-01T00:00:00Z, tag: "t1", _value: 2.0}, -# {_time: 2022-01-03T00:00:00Z, tag: "t1", _value: 2.2}, -# {_time: 2022-01-06T00:00:00Z, tag: "t1", _value: 4.1}, -# {_time: 2022-01-09T00:00:00Z, tag: "t1", _value: 3.8}, -# {_time: 2022-01-11T00:00:00Z, tag: "t1", _value: 1.7}, -# {_time: 2022-01-12T00:00:00Z, tag: "t1", _value: 2.1}, -# {_time: 2022-01-15T00:00:00Z, tag: "t1", _value: 3.8}, -# {_time: 2022-01-16T00:00:00Z, tag: "t1", _value: 4.2}, -# {_time: 2022-01-20T00:00:00Z, tag: "t1", _value: 5.0}, -# {_time: 2022-01-24T00:00:00Z, tag: "t1", _value: 5.8}, -# {_time: 2022-01-28T00:00:00Z, tag: "t1", _value: 3.9}, -# ], -# ) -# |> range(start: 2022-01-01T00:00:00Z, stop: 2022-01-31T23:59:59Z) -# |> group(columns: ["tag"]) -# -< data -> |> aggregateWindow(every: 1w, offset: -3d, fn: mean) +data + |> aggregateWindow(every: 1w, offset: -3d, fn: mean) + ``` +{{< expand-wrapper >}} +{{% expand "View example input and ouput" %}} + +#### Input data + +| _start | _stop | _time | *tag | _value | +| -------------------- | -------------------- | -------------------- | ---- | ------- | +| 2022-01-01T00:00:00Z | 2022-01-31T23:59:59Z | 2022-01-01T00:00:00Z | t1 | 2 | +| 2022-01-01T00:00:00Z | 2022-01-31T23:59:59Z | 2022-01-03T00:00:00Z | t1 | 2.2 | +| 2022-01-01T00:00:00Z | 2022-01-31T23:59:59Z | 2022-01-06T00:00:00Z | t1 | 4.1 | +| 2022-01-01T00:00:00Z | 2022-01-31T23:59:59Z | 2022-01-09T00:00:00Z | t1 | 3.8 | +| 2022-01-01T00:00:00Z | 2022-01-31T23:59:59Z | 2022-01-11T00:00:00Z | t1 | 1.7 | +| 2022-01-01T00:00:00Z | 2022-01-31T23:59:59Z | 2022-01-12T00:00:00Z | t1 | 2.1 | +| 2022-01-01T00:00:00Z | 2022-01-31T23:59:59Z | 2022-01-15T00:00:00Z | t1 | 3.8 | +| 2022-01-01T00:00:00Z | 2022-01-31T23:59:59Z | 2022-01-16T00:00:00Z | t1 | 4.2 | +| 2022-01-01T00:00:00Z | 2022-01-31T23:59:59Z | 2022-01-20T00:00:00Z | t1 | 5 | +| 2022-01-01T00:00:00Z | 2022-01-31T23:59:59Z | 2022-01-24T00:00:00Z | t1 | 5.8 | +| 2022-01-01T00:00:00Z | 2022-01-31T23:59:59Z | 2022-01-28T00:00:00Z | t1 | 3.9 | + + +#### Output data + +| _time | *tag | *_start | *_stop | _value | +| -------------------- | ---- | -------------------- | -------------------- | ------------------ | +| 2022-01-03T00:00:00Z | t1 | 2022-01-01T00:00:00Z | 2022-01-31T23:59:59Z | 2 | +| 2022-01-10T00:00:00Z | t1 | 2022-01-01T00:00:00Z | 2022-01-31T23:59:59Z | 3.3666666666666667 | +| 2022-01-17T00:00:00Z | t1 | 2022-01-01T00:00:00Z | 2022-01-31T23:59:59Z | 2.95 | +| 2022-01-24T00:00:00Z | t1 | 2022-01-01T00:00:00Z | 2022-01-31T23:59:59Z | 5 | +| 2022-01-31T00:00:00Z | t1 | 2022-01-01T00:00:00Z | 2022-01-31T23:59:59Z | 4.85 | +| 2022-01-31T23:59:59Z | t1 | 2022-01-01T00:00:00Z | 2022-01-31T23:59:59Z | | + +{{% /expand %}} +{{< /expand-wrapper >}} diff --git a/content/flux/v0.x/stdlib/universe/bool.md b/content/flux/v0.x/stdlib/universe/bool.md index 1ac0ebb71..6c1de66ca 100644 --- a/content/flux/v0.x/stdlib/universe/bool.md +++ b/content/flux/v0.x/stdlib/universe/bool.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/universe/universe.flux#L3059-L3059 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3116-L3116 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/bottom.md b/content/flux/v0.x/stdlib/universe/bottom.md index 34cc41ef6..4f5a2c9dd 100644 --- a/content/flux/v0.x/stdlib/universe/bottom.md +++ b/content/flux/v0.x/stdlib/universe/bottom.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/universe/universe.flux#L4061-L4063 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4122-L4124 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/bytes.md b/content/flux/v0.x/stdlib/universe/bytes.md index 5b00dff0d..fd9602920 100644 --- a/content/flux/v0.x/stdlib/universe/bytes.md +++ b/content/flux/v0.x/stdlib/universe/bytes.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/universe/universe.flux#L3077-L3077 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3134-L3134 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/columns.md b/content/flux/v0.x/stdlib/universe/columns.md index 566133d65..dcdcfbe12 100644 --- a/content/flux/v0.x/stdlib/universe/columns.md +++ b/content/flux/v0.x/stdlib/universe/columns.md @@ -73,3 +73,43 @@ sampledata.string() ``` +{{< expand-wrapper >}} +{{% expand "View example input and ouput" %}} + +#### Input data + +| _time | *tag | _value | +| -------------------- | ---- | ----------- | +| 2021-01-01T00:00:00Z | t1 | smpl_g9qczs | +| 2021-01-01T00:00:10Z | t1 | smpl_0mgv9n | +| 2021-01-01T00:00:20Z | t1 | smpl_phw664 | +| 2021-01-01T00:00:30Z | t1 | smpl_guvzy4 | +| 2021-01-01T00:00:40Z | t1 | smpl_5v3cce | +| 2021-01-01T00:00:50Z | t1 | smpl_s9fmgy | + +| _time | *tag | _value | +| -------------------- | ---- | ----------- | +| 2021-01-01T00:00:00Z | t2 | smpl_b5eida | +| 2021-01-01T00:00:10Z | t2 | smpl_eu4oxp | +| 2021-01-01T00:00:20Z | t2 | smpl_5g7tz4 | +| 2021-01-01T00:00:30Z | t2 | smpl_sox1ut | +| 2021-01-01T00:00:40Z | t2 | smpl_wfm757 | +| 2021-01-01T00:00:50Z | t2 | smpl_dtn2bv | + + +#### Output data + +| *tag | labels | +| ---- | ------- | +| t1 | _time | +| t1 | tag | +| t1 | _value | + +| *tag | labels | +| ---- | ------- | +| t2 | _time | +| t2 | tag | +| t2 | _value | + +{{% /expand %}} +{{< /expand-wrapper >}} diff --git a/content/flux/v0.x/stdlib/universe/contains.md b/content/flux/v0.x/stdlib/universe/contains.md index 741542b9d..a0dab9055 100644 --- a/content/flux/v0.x/stdlib/universe/contains.md +++ b/content/flux/v0.x/stdlib/universe/contains.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/universe/universe.flux#L3482-L3482 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3539-L3539 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/cov.md b/content/flux/v0.x/stdlib/universe/cov.md index 28683f632..a3a786c41 100644 --- a/content/flux/v0.x/stdlib/universe/cov.md +++ b/content/flux/v0.x/stdlib/universe/cov.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/universe/universe.flux#L3616-L3618 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3677-L3679 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md @@ -75,11 +75,21 @@ Normalize results to the Pearson R coefficient. Default is `false`. import "generate" stream1 = - generate.from(count: 5, fn: (n) => n * n, start: 2021-01-01T00:00:00Z, stop: 2021-01-01T00:01:00Z) + generate.from( + count: 5, + fn: (n) => n * n, + start: 2021-01-01T00:00:00Z, + stop: 2021-01-01T00:01:00Z, + ) |> toFloat() stream2 = - generate.from(count: 5, fn: (n) => n * n * n / 2, start: 2021-01-01T00:00:00Z, stop: 2021-01-01T00:01:00Z) + generate.from( + count: 5, + fn: (n) => n * n * n / 2, + start: 2021-01-01T00:00:00Z, + stop: 2021-01-01T00:01:00Z, + ) |> toFloat() cov(x: stream1, y: stream2, on: ["_time"]) diff --git a/content/flux/v0.x/stdlib/universe/covariance.md b/content/flux/v0.x/stdlib/universe/covariance.md index e0b17b49b..1b8890a17 100644 --- a/content/flux/v0.x/stdlib/universe/covariance.md +++ b/content/flux/v0.x/stdlib/universe/covariance.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/universe/universe.flux#L192-L195 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L192-L200 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/cumulativesum.md b/content/flux/v0.x/stdlib/universe/cumulativesum.md index ff083d737..9649d5df3 100644 --- a/content/flux/v0.x/stdlib/universe/cumulativesum.md +++ b/content/flux/v0.x/stdlib/universe/cumulativesum.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/universe/universe.flux#L219-L219 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L224-L227 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/derivative.md b/content/flux/v0.x/stdlib/universe/derivative.md index 50140f07e..0662d3dca 100644 --- a/content/flux/v0.x/stdlib/universe/derivative.md +++ b/content/flux/v0.x/stdlib/universe/derivative.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/universe/universe.flux#L268-L278 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L276-L286 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/die.md b/content/flux/v0.x/stdlib/universe/die.md index 291c81eb5..a9c9ce0a5 100644 --- a/content/flux/v0.x/stdlib/universe/die.md +++ b/content/flux/v0.x/stdlib/universe/die.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/universe/universe.flux#L295-L295 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L303-L303 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/difference.md b/content/flux/v0.x/stdlib/universe/difference.md index 44366d447..2bf5863d6 100644 --- a/content/flux/v0.x/stdlib/universe/difference.md +++ b/content/flux/v0.x/stdlib/universe/difference.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/universe/universe.flux#L367-L376 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L375-L384 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/display.md b/content/flux/v0.x/stdlib/universe/display.md index bdf79eced..c45374ada 100644 --- a/content/flux/v0.x/stdlib/universe/display.md +++ b/content/flux/v0.x/stdlib/universe/display.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/universe/universe.flux#L3455-L3455 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3512-L3512 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md @@ -76,7 +76,15 @@ Use `array.from()` and `display()` to quickly observe any value. ```js import "array" -array.from(rows: [{dict: display(v: ["a": 1, "b": 2]), record: display(v: {x: 1, y: 2}), array: display(v: [5, 6, 7])}]) +array.from( + rows: [ + { + dict: display(v: ["a": 1, "b": 2]), + record: display(v: {x: 1, y: 2}), + array: display(v: [5, 6, 7]), + }, + ], +) ``` diff --git a/content/flux/v0.x/stdlib/universe/distinct.md b/content/flux/v0.x/stdlib/universe/distinct.md index 8e81e0600..aa3aea577 100644 --- a/content/flux/v0.x/stdlib/universe/distinct.md +++ b/content/flux/v0.x/stdlib/universe/distinct.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/universe/universe.flux#L417-L417 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L425-L425 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/doubleema.md b/content/flux/v0.x/stdlib/universe/doubleema.md index dddcdc001..1457981db 100644 --- a/content/flux/v0.x/stdlib/universe/doubleema.md +++ b/content/flux/v0.x/stdlib/universe/doubleema.md @@ -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/universe/universe.flux#L4378-L4384 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4439-L4445 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/drop.md b/content/flux/v0.x/stdlib/universe/drop.md index 6aaa8b6ab..559461bee 100644 --- a/content/flux/v0.x/stdlib/universe/drop.md +++ b/content/flux/v0.x/stdlib/universe/drop.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/universe/universe.flux#L454-L457 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L462-L465 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/duplicate.md b/content/flux/v0.x/stdlib/universe/duplicate.md index 7ec8b3ad9..e73162cc6 100644 --- a/content/flux/v0.x/stdlib/universe/duplicate.md +++ b/content/flux/v0.x/stdlib/universe/duplicate.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/universe/universe.flux#L486-L486 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L494-L497 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/duration.md b/content/flux/v0.x/stdlib/universe/duration.md index c75885b8f..f8ccc3fb5 100644 --- a/content/flux/v0.x/stdlib/universe/duration.md +++ b/content/flux/v0.x/stdlib/universe/duration.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/universe/universe.flux#L3127-L3127 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3184-L3184 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/elapsed.md b/content/flux/v0.x/stdlib/universe/elapsed.md index 1e935b6e5..94719c7c2 100644 --- a/content/flux/v0.x/stdlib/universe/elapsed.md +++ b/content/flux/v0.x/stdlib/universe/elapsed.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/universe/universe.flux#L514-L517 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L525-L533 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/exponentialmovingaverage.md b/content/flux/v0.x/stdlib/universe/exponentialmovingaverage.md index 679095b74..90d4b089e 100644 --- a/content/flux/v0.x/stdlib/universe/exponentialmovingaverage.md +++ b/content/flux/v0.x/stdlib/universe/exponentialmovingaverage.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/universe/universe.flux#L558-L560 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L574-L579 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/fill.md b/content/flux/v0.x/stdlib/universe/fill.md index f1481b754..1bf5d5a45 100644 --- a/content/flux/v0.x/stdlib/universe/fill.md +++ b/content/flux/v0.x/stdlib/universe/fill.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/universe/universe.flux#L600-L603 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L619-L622 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/filter.md b/content/flux/v0.x/stdlib/universe/filter.md index e24f8806c..180197d78 100644 --- a/content/flux/v0.x/stdlib/universe/filter.md +++ b/content/flux/v0.x/stdlib/universe/filter.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/universe/universe.flux#L654-L654 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L673-L675 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md @@ -76,7 +76,9 @@ Input data. Default is piped-forward data (`<-`). ```js from(bucket: "example-bucket") |> range(start: -1h) - |> filter(fn: (r) => r._measurement == "cpu" and r._field == "usage_system" and r.cpu == "cpu-total") + |> filter( + fn: (r) => r._measurement == "cpu" and r._field == "usage_system" and r.cpu == "cpu-total", + ) ``` @@ -115,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 | diff --git a/content/flux/v0.x/stdlib/universe/findcolumn.md b/content/flux/v0.x/stdlib/universe/findcolumn.md index 6aa18cd21..62fbbbe6b 100644 --- a/content/flux/v0.x/stdlib/universe/findcolumn.md +++ b/content/flux/v0.x/stdlib/universe/findcolumn.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/universe/universe.flux#L2980-L2980 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3031-L3034 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/findrecord.md b/content/flux/v0.x/stdlib/universe/findrecord.md index 5b42a0a7e..b6af58cb7 100644 --- a/content/flux/v0.x/stdlib/universe/findrecord.md +++ b/content/flux/v0.x/stdlib/universe/findrecord.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/universe/universe.flux#L3014-L3014 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3068-L3071 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/first.md b/content/flux/v0.x/stdlib/universe/first.md index 598f46529..ceb19e7f8 100644 --- a/content/flux/v0.x/stdlib/universe/first.md +++ b/content/flux/v0.x/stdlib/universe/first.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/universe/universe.flux#L678-L678 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L699-L699 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/float.md b/content/flux/v0.x/stdlib/universe/float.md index 71b31f868..d7503fc3b 100644 --- a/content/flux/v0.x/stdlib/universe/float.md +++ b/content/flux/v0.x/stdlib/universe/float.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/universe/universe.flux#L3171-L3171 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3228-L3228 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/getcolumn.md b/content/flux/v0.x/stdlib/universe/getcolumn.md index eef015c19..329f0c719 100644 --- a/content/flux/v0.x/stdlib/universe/getcolumn.md +++ b/content/flux/v0.x/stdlib/universe/getcolumn.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/universe/universe.flux#L2919-L2919 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2970-L2970 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/getrecord.md b/content/flux/v0.x/stdlib/universe/getrecord.md index dd97dd3bd..d5f703f48 100644 --- a/content/flux/v0.x/stdlib/universe/getrecord.md +++ b/content/flux/v0.x/stdlib/universe/getrecord.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/universe/universe.flux#L2946-L2946 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2997-L2997 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/group.md b/content/flux/v0.x/stdlib/universe/group.md index 65532bb92..0e7522432 100644 --- a/content/flux/v0.x/stdlib/universe/group.md +++ b/content/flux/v0.x/stdlib/universe/group.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/universe/universe.flux#L731-L731 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L752-L754 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/highestaverage.md b/content/flux/v0.x/stdlib/universe/highestaverage.md index f1c133959..bd94f0127 100644 --- a/content/flux/v0.x/stdlib/universe/highestaverage.md +++ b/content/flux/v0.x/stdlib/universe/highestaverage.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/universe/universe.flux#L4146-L4154 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4207-L4215 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/highestcurrent.md b/content/flux/v0.x/stdlib/universe/highestcurrent.md index 66b01d30a..3f6a49ba5 100644 --- a/content/flux/v0.x/stdlib/universe/highestcurrent.md +++ b/content/flux/v0.x/stdlib/universe/highestcurrent.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/universe/universe.flux#L4181-L4189 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4242-L4250 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/highestmax.md b/content/flux/v0.x/stdlib/universe/highestmax.md index 5d1e90678..c6f10e262 100644 --- a/content/flux/v0.x/stdlib/universe/highestmax.md +++ b/content/flux/v0.x/stdlib/universe/highestmax.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/universe/universe.flux#L4109-L4119 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4170-L4180 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/histogram.md b/content/flux/v0.x/stdlib/universe/histogram.md index 1c5fa91bf..e7941cf6a 100644 --- a/content/flux/v0.x/stdlib/universe/histogram.md +++ b/content/flux/v0.x/stdlib/universe/histogram.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/universe/universe.flux#L789-L799 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L812-L822 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/histogramquantile.md b/content/flux/v0.x/stdlib/universe/histogramquantile.md index 0affcbd0d..79bbf7aee 100644 --- a/content/flux/v0.x/stdlib/universe/histogramquantile.md +++ b/content/flux/v0.x/stdlib/universe/histogramquantile.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/universe/universe.flux#L853-L863 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L876-L886 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/holtwinters.md b/content/flux/v0.x/stdlib/universe/holtwinters.md index 4e37af4f9..9fe071159 100644 --- a/content/flux/v0.x/stdlib/universe/holtwinters.md +++ b/content/flux/v0.x/stdlib/universe/holtwinters.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/universe/universe.flux#L952-L964 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L975-L987 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/hourselection.md b/content/flux/v0.x/stdlib/universe/hourselection.md index 6a8fa4c0b..ef3405533 100644 --- a/content/flux/v0.x/stdlib/universe/hourselection.md +++ b/content/flux/v0.x/stdlib/universe/hourselection.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/universe/universe.flux#L1011-L1019 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L1034-L1042 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/increase.md b/content/flux/v0.x/stdlib/universe/increase.md index e722568a0..0719d618d 100644 --- a/content/flux/v0.x/stdlib/universe/increase.md +++ b/content/flux/v0.x/stdlib/universe/increase.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/universe/universe.flux#L3841-L3844 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3902-L3905 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/int.md b/content/flux/v0.x/stdlib/universe/int.md index 28bb8f4d8..4e5c00eb4 100644 --- a/content/flux/v0.x/stdlib/universe/int.md +++ b/content/flux/v0.x/stdlib/universe/int.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/universe/universe.flux#L3231-L3231 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3288-L3288 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/integral.md b/content/flux/v0.x/stdlib/universe/integral.md index 4dbaf486b..a9830c564 100644 --- a/content/flux/v0.x/stdlib/universe/integral.md +++ b/content/flux/v0.x/stdlib/universe/integral.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/universe/universe.flux#L1069-L1078 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L1092-L1101 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/join.md b/content/flux/v0.x/stdlib/universe/join.md index c95fc7863..3e017f9a1 100644 --- a/content/flux/v0.x/stdlib/universe/join.md +++ b/content/flux/v0.x/stdlib/universe/join.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/universe/universe.flux#L1152-L1152 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L1175-L1175 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md @@ -98,11 +98,21 @@ Join method. Default is `inner`. import "generate" t1 = - generate.from(count: 4, fn: (n) => n + 1, start: 2021-01-01T00:00:00Z, stop: 2021-01-05T00:00:00Z) + generate.from( + count: 4, + fn: (n) => n + 1, + start: 2021-01-01T00:00:00Z, + stop: 2021-01-05T00:00:00Z, + ) |> set(key: "tag", value: "foo") t2 = - generate.from(count: 4, fn: (n) => n * (-1), start: 2021-01-01T00:00:00Z, stop: 2021-01-05T00:00:00Z) + generate.from( + count: 4, + fn: (n) => n * (-1), + start: 2021-01-01T00:00:00Z, + stop: 2021-01-05T00:00:00Z, + ) |> set(key: "tag", value: "foo") join(tables: {t1: t1, t2: t2}, on: ["_time", "tag"]) diff --git a/content/flux/v0.x/stdlib/universe/kaufmansama.md b/content/flux/v0.x/stdlib/universe/kaufmansama.md index ef63837b7..0ee95ff20 100644 --- a/content/flux/v0.x/stdlib/universe/kaufmansama.md +++ b/content/flux/v0.x/stdlib/universe/kaufmansama.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/universe/universe.flux#L1179-L1179 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L1202-L1205 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/kaufmanser.md b/content/flux/v0.x/stdlib/universe/kaufmanser.md index c7409d1d2..a114be5d2 100644 --- a/content/flux/v0.x/stdlib/universe/kaufmanser.md +++ b/content/flux/v0.x/stdlib/universe/kaufmanser.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/universe/universe.flux#L4411-L4414 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4472-L4475 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/keep.md b/content/flux/v0.x/stdlib/universe/keep.md index cc281dd27..04d777c64 100644 --- a/content/flux/v0.x/stdlib/universe/keep.md +++ b/content/flux/v0.x/stdlib/universe/keep.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/universe/universe.flux#L1216-L1219 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L1242-L1245 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/keys.md b/content/flux/v0.x/stdlib/universe/keys.md index cc9508f0e..58b01d6f6 100644 --- a/content/flux/v0.x/stdlib/universe/keys.md +++ b/content/flux/v0.x/stdlib/universe/keys.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/universe/universe.flux#L1572-L1572 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L1601-L1601 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/keyvalues.md b/content/flux/v0.x/stdlib/universe/keyvalues.md index b6a324bb9..6f7292e60 100644 --- a/content/flux/v0.x/stdlib/universe/keyvalues.md +++ b/content/flux/v0.x/stdlib/universe/keyvalues.md @@ -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/universe/universe.flux#L1337-L1340 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L1363-L1369 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/last.md b/content/flux/v0.x/stdlib/universe/last.md index dd0bc5ecb..2db3fb580 100644 --- a/content/flux/v0.x/stdlib/universe/last.md +++ b/content/flux/v0.x/stdlib/universe/last.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/universe/universe.flux#L1601-L1601 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L1630-L1630 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/length.md b/content/flux/v0.x/stdlib/universe/length.md index 8ec36c645..23f11b741 100644 --- a/content/flux/v0.x/stdlib/universe/length.md +++ b/content/flux/v0.x/stdlib/universe/length.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/universe/universe.flux#L3505-L3505 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3562-L3562 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/limit.md b/content/flux/v0.x/stdlib/universe/limit.md index ac2ca97c0..157ae2355 100644 --- a/content/flux/v0.x/stdlib/universe/limit.md +++ b/content/flux/v0.x/stdlib/universe/limit.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/universe/universe.flux#L1636-L1636 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L1665-L1665 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/linearbins.md b/content/flux/v0.x/stdlib/universe/linearbins.md index 7f6c80258..9b7843633 100644 --- a/content/flux/v0.x/stdlib/universe/linearbins.md +++ b/content/flux/v0.x/stdlib/universe/linearbins.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/universe/universe.flux#L3528-L3528 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3585-L3585 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md @@ -72,7 +72,11 @@ Include an infinite value at the end of the list. Default is `true`. ### Generate a list of linearly increasing values ```js -linearBins(start: 0.0, width: 10.0, count: 10)// Returns [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, +Inf] +linearBins( + start: 0.0, + width: 10.0, + count: 10, +)// Returns [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, +Inf] ``` diff --git a/content/flux/v0.x/stdlib/universe/logarithmicbins.md b/content/flux/v0.x/stdlib/universe/logarithmicbins.md index a1a9eae74..19cde4a50 100644 --- a/content/flux/v0.x/stdlib/universe/logarithmicbins.md +++ b/content/flux/v0.x/stdlib/universe/logarithmicbins.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/universe/universe.flux#L3551-L3551 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3608-L3608 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/lowestaverage.md b/content/flux/v0.x/stdlib/universe/lowestaverage.md index 99bd8a4a2..c9c13ec14 100644 --- a/content/flux/v0.x/stdlib/universe/lowestaverage.md +++ b/content/flux/v0.x/stdlib/universe/lowestaverage.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/universe/universe.flux#L4253-L4261 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4314-L4322 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/lowestcurrent.md b/content/flux/v0.x/stdlib/universe/lowestcurrent.md index ce8bcde67..363ba670b 100644 --- a/content/flux/v0.x/stdlib/universe/lowestcurrent.md +++ b/content/flux/v0.x/stdlib/universe/lowestcurrent.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/universe/universe.flux#L4288-L4296 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4349-L4357 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/lowestmin.md b/content/flux/v0.x/stdlib/universe/lowestmin.md index b1701b727..f5ce1de3b 100644 --- a/content/flux/v0.x/stdlib/universe/lowestmin.md +++ b/content/flux/v0.x/stdlib/universe/lowestmin.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/universe/universe.flux#L4216-L4226 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4277-L4287 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/map.md b/content/flux/v0.x/stdlib/universe/map.md index 70cbc10b4..50c37b28a 100644 --- a/content/flux/v0.x/stdlib/universe/map.md +++ b/content/flux/v0.x/stdlib/universe/map.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/universe/universe.flux#L1711-L1711 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L1740-L1740 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md @@ -161,7 +161,9 @@ sampledata.int() import "sampledata" sampledata.int() - |> map(fn: (r) => ({time: r._time, source: r.tag, alert: if r._value > 10 then true else false})) + |> map( + fn: (r) => ({time: r._time, source: r.tag, alert: if r._value > 10 then true else false}), + ) ``` diff --git a/content/flux/v0.x/stdlib/universe/max.md b/content/flux/v0.x/stdlib/universe/max.md index e64dc158c..fb56c5744 100644 --- a/content/flux/v0.x/stdlib/universe/max.md +++ b/content/flux/v0.x/stdlib/universe/max.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/universe/universe.flux#L1736-L1736 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L1765-L1765 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/mean.md b/content/flux/v0.x/stdlib/universe/mean.md index 768c55425..57e3c31c8 100644 --- a/content/flux/v0.x/stdlib/universe/mean.md +++ b/content/flux/v0.x/stdlib/universe/mean.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/universe/universe.flux#L1759-L1759 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L1788-L1788 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/median.md b/content/flux/v0.x/stdlib/universe/median.md index e17e69dd7..db54e79a2 100644 --- a/content/flux/v0.x/stdlib/universe/median.md +++ b/content/flux/v0.x/stdlib/universe/median.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/universe/universe.flux#L3904-L3906 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3965-L3967 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/min.md b/content/flux/v0.x/stdlib/universe/min.md index f50a1197e..9e2d49d1d 100644 --- a/content/flux/v0.x/stdlib/universe/min.md +++ b/content/flux/v0.x/stdlib/universe/min.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/universe/universe.flux#L1784-L1784 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L1813-L1813 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/mode.md b/content/flux/v0.x/stdlib/universe/mode.md index 15cb331e5..e4ec7c88a 100644 --- a/content/flux/v0.x/stdlib/universe/mode.md +++ b/content/flux/v0.x/stdlib/universe/mode.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/universe/universe.flux#L1812-L1812 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L1841-L1844 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/movingaverage.md b/content/flux/v0.x/stdlib/universe/movingaverage.md index b57b7dcca..e7187c11c 100644 --- a/content/flux/v0.x/stdlib/universe/movingaverage.md +++ b/content/flux/v0.x/stdlib/universe/movingaverage.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/universe/universe.flux#L1850-L1852 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L1882-L1887 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/pearsonr.md b/content/flux/v0.x/stdlib/universe/pearsonr.md index 5c6152abe..0e21a6a84 100644 --- a/content/flux/v0.x/stdlib/universe/pearsonr.md +++ b/content/flux/v0.x/stdlib/universe/pearsonr.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/universe/universe.flux#L3647-L3647 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3708-L3708 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md @@ -71,11 +71,21 @@ List of columns to join on. import "generate" stream1 = - generate.from(count: 5, fn: (n) => n * n, start: 2021-01-01T00:00:00Z, stop: 2021-01-01T00:01:00Z) + generate.from( + count: 5, + fn: (n) => n * n, + start: 2021-01-01T00:00:00Z, + stop: 2021-01-01T00:01:00Z, + ) |> toFloat() stream2 = - generate.from(count: 5, fn: (n) => n * n * n / 2, start: 2021-01-01T00:00:00Z, stop: 2021-01-01T00:01:00Z) + generate.from( + count: 5, + fn: (n) => n * n * n / 2, + start: 2021-01-01T00:00:00Z, + stop: 2021-01-01T00:01:00Z, + ) |> toFloat() pearsonr(x: stream1, y: stream2, on: ["_time"]) diff --git a/content/flux/v0.x/stdlib/universe/pivot.md b/content/flux/v0.x/stdlib/universe/pivot.md index 65cd96d1a..cdfbd1a17 100644 --- a/content/flux/v0.x/stdlib/universe/pivot.md +++ b/content/flux/v0.x/stdlib/universe/pivot.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/universe/universe.flux#L2003-L2006 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2038-L2046 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/quantile.md b/content/flux/v0.x/stdlib/universe/quantile.md index 265ead4ec..a966482fd 100644 --- a/content/flux/v0.x/stdlib/universe/quantile.md +++ b/content/flux/v0.x/stdlib/universe/quantile.md @@ -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/universe/universe.flux#L1916-L1924 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L1951-L1959 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/range.md b/content/flux/v0.x/stdlib/universe/range.md index bcc62098d..3571e82b6 100644 --- a/content/flux/v0.x/stdlib/universe/range.md +++ b/content/flux/v0.x/stdlib/universe/range.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/universe/universe.flux#L2059-L2063 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2099-L2103 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/reduce.md b/content/flux/v0.x/stdlib/universe/reduce.md index 09f52ca28..49829a0b3 100644 --- a/content/flux/v0.x/stdlib/universe/reduce.md +++ b/content/flux/v0.x/stdlib/universe/reduce.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/universe/universe.flux#L2147-L2151 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2187-L2191 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/relativestrengthindex.md b/content/flux/v0.x/stdlib/universe/relativestrengthindex.md index 46caec3d3..5865f7efb 100644 --- a/content/flux/v0.x/stdlib/universe/relativestrengthindex.md +++ b/content/flux/v0.x/stdlib/universe/relativestrengthindex.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/universe/universe.flux#L2187-L2190 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2227-L2230 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/rename.md b/content/flux/v0.x/stdlib/universe/rename.md index 4c344817b..4e01f5754 100644 --- a/content/flux/v0.x/stdlib/universe/rename.md +++ b/content/flux/v0.x/stdlib/universe/rename.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/universe/universe.flux#L2224-L2228 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2264-L2268 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/sample.md b/content/flux/v0.x/stdlib/universe/sample.md index e16670dc2..c18301427 100644 --- a/content/flux/v0.x/stdlib/universe/sample.md +++ b/content/flux/v0.x/stdlib/universe/sample.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/universe/universe.flux#L2258-L2258 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2298-L2300 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/set.md b/content/flux/v0.x/stdlib/universe/set.md index 592f76f92..9a5f92bc3 100644 --- a/content/flux/v0.x/stdlib/universe/set.md +++ b/content/flux/v0.x/stdlib/universe/set.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/universe/universe.flux#L2285-L2285 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2327-L2327 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/skew.md b/content/flux/v0.x/stdlib/universe/skew.md index 809f34da4..530b63831 100644 --- a/content/flux/v0.x/stdlib/universe/skew.md +++ b/content/flux/v0.x/stdlib/universe/skew.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/universe/universe.flux#L2378-L2378 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2420-L2420 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/sort.md b/content/flux/v0.x/stdlib/universe/sort.md index 6b6acf70c..e74193ec0 100644 --- a/content/flux/v0.x/stdlib/universe/sort.md +++ b/content/flux/v0.x/stdlib/universe/sort.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/universe/universe.flux#L2435-L2435 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2477-L2477 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/spread.md b/content/flux/v0.x/stdlib/universe/spread.md index 428ae776a..6a4df4390 100644 --- a/content/flux/v0.x/stdlib/universe/spread.md +++ b/content/flux/v0.x/stdlib/universe/spread.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/universe/universe.flux#L2401-L2401 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2443-L2443 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/statecount.md b/content/flux/v0.x/stdlib/universe/statecount.md index e4af295ac..71f8719c5 100644 --- a/content/flux/v0.x/stdlib/universe/statecount.md +++ b/content/flux/v0.x/stdlib/universe/statecount.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/universe/universe.flux#L3936-L3938 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3997-L3999 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/stateduration.md b/content/flux/v0.x/stdlib/universe/stateduration.md index 6f4ee2c40..5ce4d3c19 100644 --- a/content/flux/v0.x/stdlib/universe/stateduration.md +++ b/content/flux/v0.x/stdlib/universe/stateduration.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/universe/universe.flux#L3987-L3995 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4048-L4056 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/statetracking.md b/content/flux/v0.x/stdlib/universe/statetracking.md index eca66c54b..e8cdb4b7e 100644 --- a/content/flux/v0.x/stdlib/universe/statetracking.md +++ b/content/flux/v0.x/stdlib/universe/statetracking.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/universe/universe.flux#L2504-L2514 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2546-L2556 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/stddev.md b/content/flux/v0.x/stdlib/universe/stddev.md index 7609a9ed5..0e02bc21b 100644 --- a/content/flux/v0.x/stdlib/universe/stddev.md +++ b/content/flux/v0.x/stdlib/universe/stddev.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/universe/universe.flux#L2546-L2546 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2588-L2591 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/string.md b/content/flux/v0.x/stdlib/universe/string.md index 0d74662fd..1634a2958 100644 --- a/content/flux/v0.x/stdlib/universe/string.md +++ b/content/flux/v0.x/stdlib/universe/string.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/universe/universe.flux#L3268-L3268 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3325-L3325 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/sum.md b/content/flux/v0.x/stdlib/universe/sum.md index ae6a31aa0..2305fd78c 100644 --- a/content/flux/v0.x/stdlib/universe/sum.md +++ b/content/flux/v0.x/stdlib/universe/sum.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/universe/universe.flux#L2568-L2568 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2613-L2613 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/tablefind.md b/content/flux/v0.x/stdlib/universe/tablefind.md index d7ae97420..ee58353a8 100644 --- a/content/flux/v0.x/stdlib/universe/tablefind.md +++ b/content/flux/v0.x/stdlib/universe/tablefind.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/universe/universe.flux#L2879-L2879 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2927-L2930 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md @@ -68,7 +68,9 @@ import "sampledata" t = sampledata.int() - |> tableFind(fn: (key) => key.tag == "t2")// t represents the first table in a stream whose group key + |> tableFind( + fn: (key) => key.tag == "t2", + )// t represents the first table in a stream whose group key // contains "tag" with a value of "t2". diff --git a/content/flux/v0.x/stdlib/universe/tail.md b/content/flux/v0.x/stdlib/universe/tail.md index cd3bb4175..476fe5b40 100644 --- a/content/flux/v0.x/stdlib/universe/tail.md +++ b/content/flux/v0.x/stdlib/universe/tail.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/universe/universe.flux#L2322-L2322 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2364-L2364 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/time.md b/content/flux/v0.x/stdlib/universe/time.md index 7f6874b15..4ed76a7c1 100644 --- a/content/flux/v0.x/stdlib/universe/time.md +++ b/content/flux/v0.x/stdlib/universe/time.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/universe/universe.flux#L3310-L3310 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3367-L3367 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/timedmovingaverage.md b/content/flux/v0.x/stdlib/universe/timedmovingaverage.md index 86501040d..aa2049c96 100644 --- a/content/flux/v0.x/stdlib/universe/timedmovingaverage.md +++ b/content/flux/v0.x/stdlib/universe/timedmovingaverage.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/universe/universe.flux#L4341-L4346 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4402-L4407 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/timeshift.md b/content/flux/v0.x/stdlib/universe/timeshift.md index 44744b1ab..a5655d83f 100644 --- a/content/flux/v0.x/stdlib/universe/timeshift.md +++ b/content/flux/v0.x/stdlib/universe/timeshift.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/universe/universe.flux#L2356-L2356 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2398-L2398 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/timeweightedavg.md b/content/flux/v0.x/stdlib/universe/timeweightedavg.md index 7ea633b4b..fc2e11412 100644 --- a/content/flux/v0.x/stdlib/universe/timeweightedavg.md +++ b/content/flux/v0.x/stdlib/universe/timeweightedavg.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/universe/universe.flux#L3581-L3587 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3638-L3648 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/tobool.md b/content/flux/v0.x/stdlib/universe/tobool.md index 22595da10..6492fdc57 100644 --- a/content/flux/v0.x/stdlib/universe/tobool.md +++ b/content/flux/v0.x/stdlib/universe/tobool.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/universe/universe.flux#L4688-L4688 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4749-L4749 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/today.md b/content/flux/v0.x/stdlib/universe/today.md index c51afe06e..cc2e402a2 100644 --- a/content/flux/v0.x/stdlib/universe/today.md +++ b/content/flux/v0.x/stdlib/universe/today.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/universe/universe.flux#L4743-L4743 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4804-L4804 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/tofloat.md b/content/flux/v0.x/stdlib/universe/tofloat.md index 539b9a2fa..eb52c48ca 100644 --- a/content/flux/v0.x/stdlib/universe/tofloat.md +++ b/content/flux/v0.x/stdlib/universe/tofloat.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/universe/universe.flux#L4661-L4661 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4722-L4722 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/toint.md b/content/flux/v0.x/stdlib/universe/toint.md index a92d40cce..5fed082e2 100644 --- a/content/flux/v0.x/stdlib/universe/toint.md +++ b/content/flux/v0.x/stdlib/universe/toint.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/universe/universe.flux#L4577-L4577 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4638-L4638 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/top.md b/content/flux/v0.x/stdlib/universe/top.md index 554387630..110cf14d2 100644 --- a/content/flux/v0.x/stdlib/universe/top.md +++ b/content/flux/v0.x/stdlib/universe/top.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/universe/universe.flux#L4030-L4032 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4091-L4093 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/tostring.md b/content/flux/v0.x/stdlib/universe/tostring.md index 4cfee2d36..b7fa9bf0b 100644 --- a/content/flux/v0.x/stdlib/universe/tostring.md +++ b/content/flux/v0.x/stdlib/universe/tostring.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/universe/universe.flux#L4528-L4528 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4589-L4589 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/totime.md b/content/flux/v0.x/stdlib/universe/totime.md index 1ddd321a9..120349cc9 100644 --- a/content/flux/v0.x/stdlib/universe/totime.md +++ b/content/flux/v0.x/stdlib/universe/totime.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/universe/universe.flux#L4719-L4719 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4780-L4780 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/touint.md b/content/flux/v0.x/stdlib/universe/touint.md index 7452542a6..cb9a0a801 100644 --- a/content/flux/v0.x/stdlib/universe/touint.md +++ b/content/flux/v0.x/stdlib/universe/touint.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/universe/universe.flux#L4626-L4626 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4687-L4687 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/tripleema.md b/content/flux/v0.x/stdlib/universe/tripleema.md index 2dbfb0c5e..b6261d6ce 100644 --- a/content/flux/v0.x/stdlib/universe/tripleema.md +++ b/content/flux/v0.x/stdlib/universe/tripleema.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/universe/universe.flux#L4451-L4459 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4512-L4520 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/tripleexponentialderivative.md b/content/flux/v0.x/stdlib/universe/tripleexponentialderivative.md index 8818d6f6b..8a87b25ae 100644 --- a/content/flux/v0.x/stdlib/universe/tripleexponentialderivative.md +++ b/content/flux/v0.x/stdlib/universe/tripleexponentialderivative.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/universe/universe.flux#L2616-L2619 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2661-L2667 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/truncatetimecolumn.md b/content/flux/v0.x/stdlib/universe/truncatetimecolumn.md index 2527d6864..584744c91 100644 --- a/content/flux/v0.x/stdlib/universe/truncatetimecolumn.md +++ b/content/flux/v0.x/stdlib/universe/truncatetimecolumn.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/universe/universe.flux#L4505-L4507 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4566-L4568 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/uint.md b/content/flux/v0.x/stdlib/universe/uint.md index c04adadc8..08891e469 100644 --- a/content/flux/v0.x/stdlib/universe/uint.md +++ b/content/flux/v0.x/stdlib/universe/uint.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/universe/universe.flux#L3359-L3359 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3416-L3416 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/union.md b/content/flux/v0.x/stdlib/universe/union.md index 692ea7a48..f58c95992 100644 --- a/content/flux/v0.x/stdlib/universe/union.md +++ b/content/flux/v0.x/stdlib/universe/union.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/universe/universe.flux#L2676-L2676 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2724-L2724 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md @@ -68,12 +68,22 @@ List of two or more streams of tables to union together. import "generate" t1 = - generate.from(count: 4, fn: (n) => n + 1, start: 2022-01-01T00:00:00Z, stop: 2022-01-05T00:00:00Z) + generate.from( + count: 4, + fn: (n) => n + 1, + start: 2022-01-01T00:00:00Z, + stop: 2022-01-05T00:00:00Z, + ) |> set(key: "tag", value: "foo") |> group(columns: ["tag"]) t2 = - generate.from(count: 4, fn: (n) => n * (-1), start: 2022-01-01T00:00:00Z, stop: 2022-01-05T00:00:00Z) + generate.from( + count: 4, + fn: (n) => n * (-1), + start: 2022-01-01T00:00:00Z, + stop: 2022-01-05T00:00:00Z, + ) |> set(key: "tag", value: "bar") |> group(columns: ["tag"]) @@ -109,12 +119,22 @@ union(tables: [t1, t2]) import "generate" t1 = - generate.from(count: 4, fn: (n) => n + 1, start: 2021-01-01T00:00:00Z, stop: 2021-01-05T00:00:00Z) + generate.from( + count: 4, + fn: (n) => n + 1, + start: 2021-01-01T00:00:00Z, + stop: 2021-01-05T00:00:00Z, + ) |> set(key: "tag", value: "foo") |> group() t2 = - generate.from(count: 4, fn: (n) => n * (-1), start: 2021-01-01T00:00:00Z, stop: 2021-01-05T00:00:00Z) + generate.from( + count: 4, + fn: (n) => n * (-1), + start: 2021-01-01T00:00:00Z, + stop: 2021-01-05T00:00:00Z, + ) |> set(key: "tag", value: "bar") |> group() @@ -129,14 +149,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 >}} diff --git a/content/flux/v0.x/stdlib/universe/unique.md b/content/flux/v0.x/stdlib/universe/unique.md index 72761726d..627b5b3c5 100644 --- a/content/flux/v0.x/stdlib/universe/unique.md +++ b/content/flux/v0.x/stdlib/universe/unique.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/universe/universe.flux#L2701-L2701 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2749-L2749 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/window.md b/content/flux/v0.x/stdlib/universe/window.md index 94b07f0ec..cee2d119d 100644 --- a/content/flux/v0.x/stdlib/universe/window.md +++ b/content/flux/v0.x/stdlib/universe/window.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/universe/universe.flux#L2798-L2819 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2846-L2867 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md diff --git a/content/flux/v0.x/stdlib/universe/yield.md b/content/flux/v0.x/stdlib/universe/yield.md index d3729cd1f..28bb2c3fa 100644 --- a/content/flux/v0.x/stdlib/universe/yield.md +++ b/content/flux/v0.x/stdlib/universe/yield.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/universe/universe.flux#L2849-L2849 +https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2897-L2897 Contributing to Flux: https://github.com/influxdata/flux#contributing Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md