interface Task {
    authorizationID?: string;
    createdAt?: string;
    cron?: string;
    description?: string;
    every?: string;
    flux: string;
    id: string;
    labels?: Labels;
    lastRunError?: string;
    lastRunStatus?: "failed" | "success" | "canceled";
    latestCompleted?: string;
    links?: {
        labels?: string;
        logs?: string;
        members?: string;
        owners?: string;
        runs?: string;
        self?: string;
    };
    name: string;
    offset?: string;
    org?: string;
    orgID: string;
    ownerID?: string;
    status?: TaskStatusType;
    updatedAt?: string;
}

Properties

authorizationID?: string

An authorization ID. Specifies the authorization used when the task communicates with the query engine.

To find an authorization ID, you can use the GET /api/v2/authorizations endpoint to list authorizations.

createdAt?: string
cron?: string

A Cron expression that defines the schedule on which the task runs. InfluxDB uses the system time when evaluating Cron expressions.

description?: string

A 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.

id: string
labels?: Labels
lastRunError?: string
lastRunStatus?: "failed" | "success" | "canceled"
latestCompleted?: string

A timestamp (RFC3339 date/time format) of the latest scheduled and completed run.

links?: {
    labels?: string;
    logs?: string;
    members?: string;
    owners?: string;
    runs?: string;
    self?: string;
}
name: string

The name of the task.

offset?: string

A duration to delay execution of the task after the scheduled time has elapsed. 0 removes the offset.

org?: string

An organization name. Specifies the organization that owns the task.

orgID: string

An organization ID. Specifies the organization that owns the task.

ownerID?: string

A user ID. Specifies the owner of the task.

To find a user ID, you can use the GET /api/v2/users endpoint to list users.

updatedAt?: string
MMNEPVFCICPMFPCPTTAAATR