parent
7b9c3b63df
commit
38e94faaef
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
)
|
||||
|
||||
```
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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(),
|
||||
}),
|
||||
)()
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
)
|
||||
|
||||
```
|
||||
|
||||
|
|
|
@ -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"],
|
||||
)
|
||||
|
||||
```
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
)}",
|
||||
},
|
||||
)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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}",
|
||||
}),
|
||||
)()
|
||||
|
||||
```
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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}),
|
||||
)()
|
||||
|
||||
```
|
||||
|
||||
|
|
|
@ -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}**.",
|
||||
}),
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
||||
|
||||
```
|
||||
|
|
|
@ -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}
|
||||
|
||||
|
||||
```
|
||||
|
|
|
@ -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}
|
||||
|
||||
|
||||
```
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"]
|
||||
|
||||
|
||||
```
|
||||
|
|
|
@ -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",
|
||||
)
|
||||
|
||||
```
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
||||
|
||||
```
|
||||
|
|
|
@ -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}
|
||||
|
||||
|
||||
```
|
||||
|
|
|
@ -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}
|
||||
|
||||
|
||||
```
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)}),
|
||||
)
|
||||
|
||||
```
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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 %}}
|
||||
|
|
|
@ -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}),
|
||||
)
|
||||
|
||||
```
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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,
|
||||
)
|
||||
|
||||
```
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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 %}}
|
||||
|
|
|
@ -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",
|
||||
)
|
||||
|
||||
```
|
||||
|
||||
|
|
|
@ -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,
|
||||
)
|
||||
|
||||
```
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue