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_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()
The ID of the authorization used when this task communicates with the query engine.
|
OffsetDateTime |
getCreatedAt()
Get createdAt
|
String |
getCron()
A task repetition schedule in the form '* * * * * *'; parsed from Flux.
|
String |
getDescription()
An optional description of the task.
|
String |
getEvery()
A simple task repetition schedule; parsed from Flux.
|
String |
getFlux()
The 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 latest scheduled, completed run, RFC3339.
|
TaskLinks |
getLinks()
Get links
|
String |
getName()
The name of the task.
|
String |
getOffset()
Duration to delay after the schedule, before executing the task; parsed from flux, if set to zero it will remove this option and use 0 as the default.
|
String |
getOrg()
The name of the organization that owns this Task.
|
String |
getOrgID()
The ID of the organization that owns this Task.
|
TaskStatusType |
getStatus()
Get status
|
String |
getType()
The type of task, this can be used for filtering tasks on list actions.
|
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) |
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 |
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_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 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–2021 InfluxData, Inc.. All rights reserved.