public class Task extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Task.LastRunStatusEnum
Gets or Sets lastRunStatus
|
Modifier and Type | Field and Description |
---|---|
static String |
SERIALIZED_NAME_AUTHORIZATION_I_D |
static String |
SERIALIZED_NAME_CREATED_AT |
static String |
SERIALIZED_NAME_CRON |
static String |
SERIALIZED_NAME_DESCRIPTION |
static String |
SERIALIZED_NAME_EVERY |
static String |
SERIALIZED_NAME_FLUX |
static String |
SERIALIZED_NAME_ID |
static String |
SERIALIZED_NAME_LABELS |
static String |
SERIALIZED_NAME_LAST_RUN_ERROR |
static String |
SERIALIZED_NAME_LAST_RUN_STATUS |
static String |
SERIALIZED_NAME_LATEST_COMPLETED |
static String |
SERIALIZED_NAME_LINKS |
static String |
SERIALIZED_NAME_NAME |
static String |
SERIALIZED_NAME_OFFSET |
static String |
SERIALIZED_NAME_ORG |
static String |
SERIALIZED_NAME_ORG_I_D |
static String |
SERIALIZED_NAME_OWNER_I_D |
static String |
SERIALIZED_NAME_STATUS |
static String |
SERIALIZED_NAME_TYPE |
static String |
SERIALIZED_NAME_UPDATED_AT |
Constructor and Description |
---|
Task() |
Modifier and Type | Method and Description |
---|---|
Task |
addLabelsItem(Label labelsItem) |
Task |
authorizationID(String authorizationID) |
Task |
cron(String cron) |
Task |
description(String description) |
boolean |
equals(Object o) |
Task |
every(String every) |
Task |
flux(String flux) |
String |
getAuthorizationID()
ID of the authorization used when the task communicates with the query engine.
|
OffsetDateTime |
getCreatedAt()
Get createdAt
|
String |
getCron()
[Cron expression](https://en.wikipedia.org/wiki/Cron#Overview) that defines the schedule on which the task runs.
|
String |
getDescription()
Description of the task.
|
String |
getEvery()
Interval at which the task runs.
|
String |
getFlux()
Flux script to run for this task.
|
String |
getId()
Get id
|
List<Label> |
getLabels()
Get labels
|
String |
getLastRunError()
Get lastRunError
|
Task.LastRunStatusEnum |
getLastRunStatus()
Get lastRunStatus
|
OffsetDateTime |
getLatestCompleted()
Timestamp of the latest scheduled and completed run.
|
TaskLinks |
getLinks()
Get links
|
String |
getName()
Name of the task.
|
String |
getOffset()
[Duration](https://docs.influxdata.com/flux/v0.x/spec/lexical-elements/#duration-literals) to delay execution of the task after the scheduled time has elapsed.
|
String |
getOrg()
Name of the organization that owns the task.
|
String |
getOrgID()
ID of the organization that owns the task.
|
String |
getOwnerID()
ID of the user who owns this Task.
|
TaskStatusType |
getStatus()
Get status
|
String |
getType()
Type of the task, useful for filtering a task list.
|
OffsetDateTime |
getUpdatedAt()
Get updatedAt
|
int |
hashCode() |
Task |
labels(List<Label> labels) |
Task |
links(TaskLinks links) |
Task |
name(String name) |
Task |
offset(String offset) |
Task |
org(String org) |
Task |
orgID(String orgID) |
Task |
ownerID(String ownerID) |
void |
setAuthorizationID(String authorizationID) |
void |
setCron(String cron) |
void |
setDescription(String description) |
void |
setEvery(String every) |
void |
setFlux(String flux) |
void |
setLabels(List<Label> labels) |
void |
setLinks(TaskLinks links) |
void |
setName(String name) |
void |
setOffset(String offset) |
void |
setOrg(String org) |
void |
setOrgID(String orgID) |
void |
setOwnerID(String ownerID) |
void |
setStatus(TaskStatusType status) |
void |
setType(String type) |
Task |
status(TaskStatusType status) |
String |
toString() |
Task |
type(String type) |
public static final String SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_ORG_I_D
public static final String SERIALIZED_NAME_ORG
public static final String SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_OWNER_I_D
public static final String SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_LABELS
public static final String SERIALIZED_NAME_AUTHORIZATION_I_D
public static final String SERIALIZED_NAME_FLUX
public static final String SERIALIZED_NAME_EVERY
public static final String SERIALIZED_NAME_CRON
public static final String SERIALIZED_NAME_OFFSET
public static final String SERIALIZED_NAME_LATEST_COMPLETED
public static final String SERIALIZED_NAME_LAST_RUN_STATUS
public static final String SERIALIZED_NAME_LAST_RUN_ERROR
public static final String SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_UPDATED_AT
public static final String SERIALIZED_NAME_LINKS
public String getId()
public String getType()
public void setType(String type)
public String getOrgID()
public void setOrgID(String orgID)
public String getOrg()
public void setOrg(String org)
public String getName()
public void setName(String name)
public String getOwnerID()
public void setOwnerID(String ownerID)
public String getDescription()
public void setDescription(String description)
public Task status(TaskStatusType status)
public TaskStatusType getStatus()
public void setStatus(TaskStatusType status)
public String getAuthorizationID()
public void setAuthorizationID(String authorizationID)
public String getFlux()
public void setFlux(String flux)
public String getEvery()
public void setEvery(String every)
public String getCron()
public void setCron(String cron)
public String getOffset()
public void setOffset(String offset)
public OffsetDateTime getLatestCompleted()
public Task.LastRunStatusEnum getLastRunStatus()
public String getLastRunError()
public OffsetDateTime getCreatedAt()
public OffsetDateTime getUpdatedAt()
public TaskLinks getLinks()
public void setLinks(TaskLinks links)
Copyright © 2018–2022 InfluxData, Inc.. All rights reserved.