influxdb.Task
Explore with Pulumi AI
Creates and manages a task using Flux scripts with task options.
Task Configuration
Tasks are configured using Flux scripts that include an option task
block. All task configuration, including scheduling, is defined within the Flux script itself. For more information on Flux scripts and task options, refer to the InfluxDB documentation on tasks.
Task Options in Flux
The Flux script must include an option task
block that defines the task’s behavior. For detailed information about all available task options, see the InfluxDB documentation on defining task options.
Example configuration with cron scheduling:
import * as pulumi from "@pulumi/pulumi";
import * as influxdb from "@komminarlabs/influxdb";
const exampleCron = new influxdb.Task("example_cron", {
orgId: orgId,
flux: `option task = {
name: "Daily Processing Task",
cron: "0 0 * * *", # Run daily at midnight
offset: 30s, # Delay execution by 30 seconds
}
from(bucket: "my-bucket")
|> range(start: -24h)
|> filter(fn: (r) => r._measurement == "temperature")
|> mean()
|> to(bucket: "daily-averages")
`,
});
import pulumi
import komminarlabs_influxdb as influxdb
example_cron = influxdb.Task("example_cron",
org_id=org_id,
flux="""option task = {
name: "Daily Processing Task",
cron: "0 0 * * *", # Run daily at midnight
offset: 30s, # Delay execution by 30 seconds
}
from(bucket: "my-bucket")
|> range(start: -24h)
|> filter(fn: (r) => r._measurement == "temperature")
|> mean()
|> to(bucket: "daily-averages")
""")
package main
import (
"github.com/komminarlabs/pulumi-influxdb/sdk/go/influxdb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := influxdb.NewTask(ctx, "example_cron", &influxdb.TaskArgs{
OrgId: pulumi.Any(orgId),
Flux: pulumi.String(`option task = {
name: "Daily Processing Task",
cron: "0 0 * * *", # Run daily at midnight
offset: 30s, # Delay execution by 30 seconds
}
from(bucket: "my-bucket")
|> range(start: -24h)
|> filter(fn: (r) => r._measurement == "temperature")
|> mean()
|> to(bucket: "daily-averages")
`),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using InfluxDB = KomminarLabs.InfluxDB;
return await Deployment.RunAsync(() =>
{
var exampleCron = new InfluxDB.Task("example_cron", new()
{
OrgId = orgId,
Flux = @"option task = {
name: ""Daily Processing Task"",
cron: ""0 0 * * *"", # Run daily at midnight
offset: 30s, # Delay execution by 30 seconds
}
from(bucket: ""my-bucket"")
|> range(start: -24h)
|> filter(fn: (r) => r._measurement == ""temperature"")
|> mean()
|> to(bucket: ""daily-averages"")
",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.influxdb.Task;
import com.pulumi.influxdb.TaskArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleCron = new Task("exampleCron", TaskArgs.builder()
.orgId(orgId)
.flux("""
option task = {
name: "Daily Processing Task",
cron: "0 0 * * *", # Run daily at midnight
offset: 30s, # Delay execution by 30 seconds
}
from(bucket: "my-bucket")
|> range(start: -24h)
|> filter(fn: (r) => r._measurement == "temperature")
|> mean()
|> to(bucket: "daily-averages")
""")
.build());
}
}
resources:
exampleCron:
type: influxdb:Task
name: example_cron
properties:
orgId: ${orgId}
flux: "option task = {\n name: \"Daily Processing Task\",\n cron: \"0 0 * * *\", # Run daily at midnight\n offset: 30s, # Delay execution by 30 seconds\n}\n \nfrom(bucket: \"my-bucket\")\n |> range(start: -24h)\n |> filter(fn: (r) => r._measurement == \"temperature\")\n |> mean()\n |> to(bucket: \"daily-averages\")\n"
Example configuration with interval scheduling:
import * as pulumi from "@pulumi/pulumi";
import * as influxdb from "@komminarlabs/influxdb";
const exampleInterval = new influxdb.Task("example_interval", {
orgId: orgId,
flux: `option task = {
name: "Hourly Processing Task",
every: 1h, # Run every hour
offset: 10m, # Start 10 minutes into each hour
}
from(bucket: "my-bucket")
|> range(start: -1h)
|> filter(fn: (r) => r._measurement == "cpu")
|> mean()
|> to(bucket: "hourly-stats")
`,
});
import pulumi
import komminarlabs_influxdb as influxdb
example_interval = influxdb.Task("example_interval",
org_id=org_id,
flux="""option task = {
name: "Hourly Processing Task",
every: 1h, # Run every hour
offset: 10m, # Start 10 minutes into each hour
}
from(bucket: "my-bucket")
|> range(start: -1h)
|> filter(fn: (r) => r._measurement == "cpu")
|> mean()
|> to(bucket: "hourly-stats")
""")
package main
import (
"github.com/komminarlabs/pulumi-influxdb/sdk/go/influxdb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := influxdb.NewTask(ctx, "example_interval", &influxdb.TaskArgs{
OrgId: pulumi.Any(orgId),
Flux: pulumi.String(`option task = {
name: "Hourly Processing Task",
every: 1h, # Run every hour
offset: 10m, # Start 10 minutes into each hour
}
from(bucket: "my-bucket")
|> range(start: -1h)
|> filter(fn: (r) => r._measurement == "cpu")
|> mean()
|> to(bucket: "hourly-stats")
`),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using InfluxDB = KomminarLabs.InfluxDB;
return await Deployment.RunAsync(() =>
{
var exampleInterval = new InfluxDB.Task("example_interval", new()
{
OrgId = orgId,
Flux = @"option task = {
name: ""Hourly Processing Task"",
every: 1h, # Run every hour
offset: 10m, # Start 10 minutes into each hour
}
from(bucket: ""my-bucket"")
|> range(start: -1h)
|> filter(fn: (r) => r._measurement == ""cpu"")
|> mean()
|> to(bucket: ""hourly-stats"")
",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.influxdb.Task;
import com.pulumi.influxdb.TaskArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleInterval = new Task("exampleInterval", TaskArgs.builder()
.orgId(orgId)
.flux("""
option task = {
name: "Hourly Processing Task",
every: 1h, # Run every hour
offset: 10m, # Start 10 minutes into each hour
}
from(bucket: "my-bucket")
|> range(start: -1h)
|> filter(fn: (r) => r._measurement == "cpu")
|> mean()
|> to(bucket: "hourly-stats")
""")
.build());
}
}
resources:
exampleInterval:
type: influxdb:Task
name: example_interval
properties:
orgId: ${orgId}
flux: "option task = {\n name: \"Hourly Processing Task\",\n every: 1h, # Run every hour\n offset: 10m, # Start 10 minutes into each hour\n}\n \nfrom(bucket: \"my-bucket\")\n |> range(start: -1h)\n |> filter(fn: (r) => r._measurement == \"cpu\")\n |> mean()\n |> to(bucket: \"hourly-stats\")\n"
Create Task Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Task(name: string, args: TaskArgs, opts?: CustomResourceOptions);
@overload
def Task(resource_name: str,
args: TaskArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Task(resource_name: str,
opts: Optional[ResourceOptions] = None,
flux: Optional[str] = None,
org_id: Optional[str] = None,
status: Optional[str] = None)
func NewTask(ctx *Context, name string, args TaskArgs, opts ...ResourceOption) (*Task, error)
public Task(string name, TaskArgs args, CustomResourceOptions? opts = null)
type: influxdb:Task
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TaskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TaskArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TaskArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TaskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TaskArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var taskResource = new InfluxDB.Task("taskResource", new()
{
Flux = "string",
OrgId = "string",
Status = "string",
});
example, err := influxdb.NewTask(ctx, "taskResource", &influxdb.TaskArgs{
Flux: pulumi.String("string"),
OrgId: pulumi.String("string"),
Status: pulumi.String("string"),
})
var taskResource = new Task("taskResource", TaskArgs.builder()
.flux("string")
.orgId("string")
.status("string")
.build());
task_resource = influxdb.Task("taskResource",
flux="string",
org_id="string",
status="string")
const taskResource = new influxdb.Task("taskResource", {
flux: "string",
orgId: "string",
status: "string",
});
type: influxdb:Task
properties:
flux: string
orgId: string
status: string
Task Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Task resource accepts the following input properties:
- Flux string
- The Flux script that the task executes.
- Org
Id string - The organization ID. Specifies the organization that owns the task.
- Status string
- The status of the task (
active
orinactive
).
- Flux string
- The Flux script that the task executes.
- Org
Id string - The organization ID. Specifies the organization that owns the task.
- Status string
- The status of the task (
active
orinactive
).
- flux String
- The Flux script that the task executes.
- org
Id String - The organization ID. Specifies the organization that owns the task.
- status String
- The status of the task (
active
orinactive
).
- flux string
- The Flux script that the task executes.
- org
Id string - The organization ID. Specifies the organization that owns the task.
- status string
- The status of the task (
active
orinactive
).
- flux str
- The Flux script that the task executes.
- org_
id str - The organization ID. Specifies the organization that owns the task.
- status str
- The status of the task (
active
orinactive
).
- flux String
- The Flux script that the task executes.
- org
Id String - The organization ID. Specifies the organization that owns the task.
- status String
- The status of the task (
active
orinactive
).
Outputs
All input properties are implicitly available as output properties. Additionally, the Task resource produces the following output properties:
- string
- The authorization ID. Specifies the authorization used when the task communicates with the query engine.
- Created
At string - The timestamp when the task was created.
- Cron string
- The Cron expression that defines the schedule on which the task runs.
- Description string
- The description of the task.
- Every string
- The interval duration literal at which the task runs. every also determines when the task first runs, depending on the specified time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Labels
List<Komminar
Labs. Influx DB. Outputs. Task Label> - The labels associated with the task.
- Last
Run stringError - The error message from the last task run, if any.
- Last
Run stringStatus - The status of the last task run.
- Latest
Completed string - A timestamp RFC3339 date/time format of the latest scheduled and completed run.
- Links
Komminar
Labs. Influx DB. Outputs. Task Links - Links related to the task.
- Name string
- The name of the task.
- Offset string
- The duration to delay execution of the task after the scheduled time has elapsed. 0 removes the offset.
- Org string
- The organization name. Specifies the organization that owns the task.
- Owner
Id string - The user ID. Specifies the owner of the task.
- Updated
At string - The timestamp when the task was last updated.
- string
- The authorization ID. Specifies the authorization used when the task communicates with the query engine.
- Created
At string - The timestamp when the task was created.
- Cron string
- The Cron expression that defines the schedule on which the task runs.
- Description string
- The description of the task.
- Every string
- The interval duration literal at which the task runs. every also determines when the task first runs, depending on the specified time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Labels
[]Task
Label - The labels associated with the task.
- Last
Run stringError - The error message from the last task run, if any.
- Last
Run stringStatus - The status of the last task run.
- Latest
Completed string - A timestamp RFC3339 date/time format of the latest scheduled and completed run.
- Links
Task
Links - Links related to the task.
- Name string
- The name of the task.
- Offset string
- The duration to delay execution of the task after the scheduled time has elapsed. 0 removes the offset.
- Org string
- The organization name. Specifies the organization that owns the task.
- Owner
Id string - The user ID. Specifies the owner of the task.
- Updated
At string - The timestamp when the task was last updated.
- String
- The authorization ID. Specifies the authorization used when the task communicates with the query engine.
- created
At String - The timestamp when the task was created.
- cron String
- The Cron expression that defines the schedule on which the task runs.
- description String
- The description of the task.
- every String
- The interval duration literal at which the task runs. every also determines when the task first runs, depending on the specified time.
- id String
- The provider-assigned unique ID for this managed resource.
- labels
List<Task
Label> - The labels associated with the task.
- last
Run StringError - The error message from the last task run, if any.
- last
Run StringStatus - The status of the last task run.
- latest
Completed String - A timestamp RFC3339 date/time format of the latest scheduled and completed run.
- links
Task
Links - Links related to the task.
- name String
- The name of the task.
- offset String
- The duration to delay execution of the task after the scheduled time has elapsed. 0 removes the offset.
- org String
- The organization name. Specifies the organization that owns the task.
- owner
Id String - The user ID. Specifies the owner of the task.
- updated
At String - The timestamp when the task was last updated.
- string
- The authorization ID. Specifies the authorization used when the task communicates with the query engine.
- created
At string - The timestamp when the task was created.
- cron string
- The Cron expression that defines the schedule on which the task runs.
- description string
- The description of the task.
- every string
- The interval duration literal at which the task runs. every also determines when the task first runs, depending on the specified time.
- id string
- The provider-assigned unique ID for this managed resource.
- labels
Task
Label[] - The labels associated with the task.
- last
Run stringError - The error message from the last task run, if any.
- last
Run stringStatus - The status of the last task run.
- latest
Completed string - A timestamp RFC3339 date/time format of the latest scheduled and completed run.
- links
Task
Links - Links related to the task.
- name string
- The name of the task.
- offset string
- The duration to delay execution of the task after the scheduled time has elapsed. 0 removes the offset.
- org string
- The organization name. Specifies the organization that owns the task.
- owner
Id string - The user ID. Specifies the owner of the task.
- updated
At string - The timestamp when the task was last updated.
- str
- The authorization ID. Specifies the authorization used when the task communicates with the query engine.
- created_
at str - The timestamp when the task was created.
- cron str
- The Cron expression that defines the schedule on which the task runs.
- description str
- The description of the task.
- every str
- The interval duration literal at which the task runs. every also determines when the task first runs, depending on the specified time.
- id str
- The provider-assigned unique ID for this managed resource.
- labels
Sequence[Task
Label] - The labels associated with the task.
- last_
run_ strerror - The error message from the last task run, if any.
- last_
run_ strstatus - The status of the last task run.
- latest_
completed str - A timestamp RFC3339 date/time format of the latest scheduled and completed run.
- links
Task
Links - Links related to the task.
- name str
- The name of the task.
- offset str
- The duration to delay execution of the task after the scheduled time has elapsed. 0 removes the offset.
- org str
- The organization name. Specifies the organization that owns the task.
- owner_
id str - The user ID. Specifies the owner of the task.
- updated_
at str - The timestamp when the task was last updated.
- String
- The authorization ID. Specifies the authorization used when the task communicates with the query engine.
- created
At String - The timestamp when the task was created.
- cron String
- The Cron expression that defines the schedule on which the task runs.
- description String
- The description of the task.
- every String
- The interval duration literal at which the task runs. every also determines when the task first runs, depending on the specified time.
- id String
- The provider-assigned unique ID for this managed resource.
- labels List<Property Map>
- The labels associated with the task.
- last
Run StringError - The error message from the last task run, if any.
- last
Run StringStatus - The status of the last task run.
- latest
Completed String - A timestamp RFC3339 date/time format of the latest scheduled and completed run.
- links Property Map
- Links related to the task.
- name String
- The name of the task.
- offset String
- The duration to delay execution of the task after the scheduled time has elapsed. 0 removes the offset.
- org String
- The organization name. Specifies the organization that owns the task.
- owner
Id String - The user ID. Specifies the owner of the task.
- updated
At String - The timestamp when the task was last updated.
Look up Existing Task Resource
Get an existing Task resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TaskState, opts?: CustomResourceOptions): Task
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
authorization_id: Optional[str] = None,
created_at: Optional[str] = None,
cron: Optional[str] = None,
description: Optional[str] = None,
every: Optional[str] = None,
flux: Optional[str] = None,
labels: Optional[Sequence[TaskLabelArgs]] = None,
last_run_error: Optional[str] = None,
last_run_status: Optional[str] = None,
latest_completed: Optional[str] = None,
links: Optional[TaskLinksArgs] = None,
name: Optional[str] = None,
offset: Optional[str] = None,
org: Optional[str] = None,
org_id: Optional[str] = None,
owner_id: Optional[str] = None,
status: Optional[str] = None,
updated_at: Optional[str] = None) -> Task
func GetTask(ctx *Context, name string, id IDInput, state *TaskState, opts ...ResourceOption) (*Task, error)
public static Task Get(string name, Input<string> id, TaskState? state, CustomResourceOptions? opts = null)
public static Task get(String name, Output<String> id, TaskState state, CustomResourceOptions options)
resources: _: type: influxdb:Task get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- string
- The authorization ID. Specifies the authorization used when the task communicates with the query engine.
- Created
At string - The timestamp when the task was created.
- Cron string
- The Cron expression that defines the schedule on which the task runs.
- Description string
- The description of the task.
- Every string
- The interval duration literal at which the task runs. every also determines when the task first runs, depending on the specified time.
- Flux string
- The Flux script that the task executes.
- Labels
List<Komminar
Labs. Influx DB. Inputs. Task Label> - The labels associated with the task.
- Last
Run stringError - The error message from the last task run, if any.
- Last
Run stringStatus - The status of the last task run.
- Latest
Completed string - A timestamp RFC3339 date/time format of the latest scheduled and completed run.
- Links
Komminar
Labs. Influx DB. Inputs. Task Links - Links related to the task.
- Name string
- The name of the task.
- Offset string
- The duration to delay execution of the task after the scheduled time has elapsed. 0 removes the offset.
- Org string
- The organization name. Specifies the organization that owns the task.
- Org
Id string - The organization ID. Specifies the organization that owns the task.
- Owner
Id string - The user ID. Specifies the owner of the task.
- Status string
- The status of the task (
active
orinactive
). - Updated
At string - The timestamp when the task was last updated.
- string
- The authorization ID. Specifies the authorization used when the task communicates with the query engine.
- Created
At string - The timestamp when the task was created.
- Cron string
- The Cron expression that defines the schedule on which the task runs.
- Description string
- The description of the task.
- Every string
- The interval duration literal at which the task runs. every also determines when the task first runs, depending on the specified time.
- Flux string
- The Flux script that the task executes.
- Labels
[]Task
Label Args - The labels associated with the task.
- Last
Run stringError - The error message from the last task run, if any.
- Last
Run stringStatus - The status of the last task run.
- Latest
Completed string - A timestamp RFC3339 date/time format of the latest scheduled and completed run.
- Links
Task
Links Args - Links related to the task.
- Name string
- The name of the task.
- Offset string
- The duration to delay execution of the task after the scheduled time has elapsed. 0 removes the offset.
- Org string
- The organization name. Specifies the organization that owns the task.
- Org
Id string - The organization ID. Specifies the organization that owns the task.
- Owner
Id string - The user ID. Specifies the owner of the task.
- Status string
- The status of the task (
active
orinactive
). - Updated
At string - The timestamp when the task was last updated.
- String
- The authorization ID. Specifies the authorization used when the task communicates with the query engine.
- created
At String - The timestamp when the task was created.
- cron String
- The Cron expression that defines the schedule on which the task runs.
- description String
- The description of the task.
- every String
- The interval duration literal at which the task runs. every also determines when the task first runs, depending on the specified time.
- flux String
- The Flux script that the task executes.
- labels
List<Task
Label> - The labels associated with the task.
- last
Run StringError - The error message from the last task run, if any.
- last
Run StringStatus - The status of the last task run.
- latest
Completed String - A timestamp RFC3339 date/time format of the latest scheduled and completed run.
- links
Task
Links - Links related to the task.
- name String
- The name of the task.
- offset String
- The duration to delay execution of the task after the scheduled time has elapsed. 0 removes the offset.
- org String
- The organization name. Specifies the organization that owns the task.
- org
Id String - The organization ID. Specifies the organization that owns the task.
- owner
Id String - The user ID. Specifies the owner of the task.
- status String
- The status of the task (
active
orinactive
). - updated
At String - The timestamp when the task was last updated.
- string
- The authorization ID. Specifies the authorization used when the task communicates with the query engine.
- created
At string - The timestamp when the task was created.
- cron string
- The Cron expression that defines the schedule on which the task runs.
- description string
- The description of the task.
- every string
- The interval duration literal at which the task runs. every also determines when the task first runs, depending on the specified time.
- flux string
- The Flux script that the task executes.
- labels
Task
Label[] - The labels associated with the task.
- last
Run stringError - The error message from the last task run, if any.
- last
Run stringStatus - The status of the last task run.
- latest
Completed string - A timestamp RFC3339 date/time format of the latest scheduled and completed run.
- links
Task
Links - Links related to the task.
- name string
- The name of the task.
- offset string
- The duration to delay execution of the task after the scheduled time has elapsed. 0 removes the offset.
- org string
- The organization name. Specifies the organization that owns the task.
- org
Id string - The organization ID. Specifies the organization that owns the task.
- owner
Id string - The user ID. Specifies the owner of the task.
- status string
- The status of the task (
active
orinactive
). - updated
At string - The timestamp when the task was last updated.
- str
- The authorization ID. Specifies the authorization used when the task communicates with the query engine.
- created_
at str - The timestamp when the task was created.
- cron str
- The Cron expression that defines the schedule on which the task runs.
- description str
- The description of the task.
- every str
- The interval duration literal at which the task runs. every also determines when the task first runs, depending on the specified time.
- flux str
- The Flux script that the task executes.
- labels
Sequence[Task
Label Args] - The labels associated with the task.
- last_
run_ strerror - The error message from the last task run, if any.
- last_
run_ strstatus - The status of the last task run.
- latest_
completed str - A timestamp RFC3339 date/time format of the latest scheduled and completed run.
- links
Task
Links Args - Links related to the task.
- name str
- The name of the task.
- offset str
- The duration to delay execution of the task after the scheduled time has elapsed. 0 removes the offset.
- org str
- The organization name. Specifies the organization that owns the task.
- org_
id str - The organization ID. Specifies the organization that owns the task.
- owner_
id str - The user ID. Specifies the owner of the task.
- status str
- The status of the task (
active
orinactive
). - updated_
at str - The timestamp when the task was last updated.
- String
- The authorization ID. Specifies the authorization used when the task communicates with the query engine.
- created
At String - The timestamp when the task was created.
- cron String
- The Cron expression that defines the schedule on which the task runs.
- description String
- The description of the task.
- every String
- The interval duration literal at which the task runs. every also determines when the task first runs, depending on the specified time.
- flux String
- The Flux script that the task executes.
- labels List<Property Map>
- The labels associated with the task.
- last
Run StringError - The error message from the last task run, if any.
- last
Run StringStatus - The status of the last task run.
- latest
Completed String - A timestamp RFC3339 date/time format of the latest scheduled and completed run.
- links Property Map
- Links related to the task.
- name String
- The name of the task.
- offset String
- The duration to delay execution of the task after the scheduled time has elapsed. 0 removes the offset.
- org String
- The organization name. Specifies the organization that owns the task.
- org
Id String - The organization ID. Specifies the organization that owns the task.
- owner
Id String - The user ID. Specifies the owner of the task.
- status String
- The status of the task (
active
orinactive
). - updated
At String - The timestamp when the task was last updated.
Supporting Types
TaskLabel, TaskLabelArgs
- Id string
- The label ID.
- Name string
- The label name.
- Org
Id string - The organization ID.
- Properties Dictionary<string, string>
- The key-value pairs associated with this label.
- Id string
- The label ID.
- Name string
- The label name.
- Org
Id string - The organization ID.
- Properties map[string]string
- The key-value pairs associated with this label.
- id String
- The label ID.
- name String
- The label name.
- org
Id String - The organization ID.
- properties Map<String,String>
- The key-value pairs associated with this label.
- id string
- The label ID.
- name string
- The label name.
- org
Id string - The organization ID.
- properties {[key: string]: string}
- The key-value pairs associated with this label.
- id str
- The label ID.
- name str
- The label name.
- org_
id str - The organization ID.
- properties Mapping[str, str]
- The key-value pairs associated with this label.
- id String
- The label ID.
- name String
- The label name.
- org
Id String - The organization ID.
- properties Map<String>
- The key-value pairs associated with this label.
TaskLinks, TaskLinksArgs
Package Details
- Repository
- influxdb komminarlabs/pulumi-influxdb
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
influxdb
Terraform Provider.