options task >> option task
parent
b858fa254b
commit
bdee29bbc2
|
@ -55,8 +55,8 @@ The InfluxDB UI provides multiple ways to create a task:
|
|||
6. In the right panel, enter your task script.
|
||||
|
||||
{{% note %}}
|
||||
##### Leave out the options tasks assignment
|
||||
When creating a _new_ task in the InfluxDB Task UI, leave out the `options task`
|
||||
##### Leave out the option tasks assignment
|
||||
When creating a _new_ task in the InfluxDB Task UI, leave out the `option task`
|
||||
assignment that defines [task options](/influxdb/v2.0/process-data/task-options/).
|
||||
The InfluxDB UI injects this code using settings specified in the **Task options**
|
||||
fields in the left panel when you save the task.
|
||||
|
@ -111,7 +111,7 @@ influx task create --org my-org -f /tasks/cq-mean-1h.flux
|
|||
```sh
|
||||
influx task create --org my-org - # <return> to open stdin pipe
|
||||
|
||||
options task = {
|
||||
option task = {
|
||||
name: "task-name",
|
||||
every: 6h
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@ _**Data type:** Time | Duration_
|
|||
```js
|
||||
import "influxdata/influxdb/tasks"
|
||||
|
||||
options task = {
|
||||
option task = {
|
||||
name: "Example task",
|
||||
every: 30m
|
||||
}
|
||||
|
|
|
@ -55,8 +55,8 @@ The InfluxDB UI provides multiple ways to create a task:
|
|||
6. In the right panel, enter your task script.
|
||||
|
||||
{{% note %}}
|
||||
##### Leave out the options tasks assignment
|
||||
When creating a _new_ task in the InfluxDB Task UI, leave out the `options task`
|
||||
##### Leave out the option tasks assignment
|
||||
When creating a _new_ task in the InfluxDB Task UI, leave out the `option task`
|
||||
assignment that defines [task options](/influxdb/v2.0/process-data/task-options/).
|
||||
The InfluxDB UI injects this code using settings specified in the **Task options**
|
||||
fields in the left panel when you save the task.
|
||||
|
@ -111,7 +111,7 @@ influx task create --org my-org -f /tasks/cq-mean-1h.flux
|
|||
```sh
|
||||
influx task create --org my-org - # <return> to open stdin pipe
|
||||
|
||||
options task = {
|
||||
option task = {
|
||||
name: "task-name",
|
||||
every: 6h
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ The name of the task. _**Required**_.
|
|||
_**Data type:** String_
|
||||
|
||||
```js
|
||||
options task = {
|
||||
option task = {
|
||||
name: "taskName",
|
||||
// ...
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ The interval at which the task runs.
|
|||
_**Data type:** Duration_
|
||||
|
||||
```js
|
||||
options task = {
|
||||
option task = {
|
||||
// ...
|
||||
every: 1h,
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ Cron scheduling is based on system time.
|
|||
_**Data type:** String_
|
||||
|
||||
```js
|
||||
options task = {
|
||||
option task = {
|
||||
// ...
|
||||
cron: "0 * * * *",
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ A common use case is offsetting execution to account for data that may arrive la
|
|||
_**Data type:** Duration_
|
||||
|
||||
```js
|
||||
options task = {
|
||||
option task = {
|
||||
// ...
|
||||
offset: 10m,
|
||||
}
|
||||
|
@ -94,7 +94,7 @@ other running task executions complete.
|
|||
_**Data type:** Integer_
|
||||
|
||||
```js
|
||||
options task = {
|
||||
option task = {
|
||||
// ...
|
||||
concurrency: 2,
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@ _**Data type:** Time | Duration_
|
|||
```js
|
||||
import "influxdata/influxdb/tasks"
|
||||
|
||||
options task = {
|
||||
option task = {
|
||||
name: "Example task",
|
||||
every: 30m
|
||||
}
|
||||
|
|
|
@ -69,7 +69,7 @@ END
|
|||
|
||||
##### Equivalent Flux task
|
||||
```js
|
||||
options task = {
|
||||
option task = {
|
||||
name: "downsample-daily",
|
||||
every: 1d
|
||||
}
|
||||
|
@ -306,7 +306,7 @@ GROUP BY time(1h)
|
|||
|
||||
###### Flux
|
||||
```js
|
||||
options task = {
|
||||
option task = {
|
||||
name: "task-name",
|
||||
every: 1h
|
||||
}
|
||||
|
@ -345,7 +345,7 @@ END
|
|||
|
||||
###### Flux
|
||||
```js
|
||||
options task = {
|
||||
option task = {
|
||||
name: "resample-example",
|
||||
every: 1m
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue