Package com.influxdb.client.domain
Class Task
java.lang.Object
com.influxdb.client.domain.Task
Task
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddLabelsItem
(Label labelsItem) authorizationID
(String authorizationID) description
(String description) boolean
ID of the authorization used when the task communicates with the query engine.Get createdAtgetCron()
[Cron expression](https://en.wikipedia.org/wiki/Cron#Overview) that defines the schedule on which the task runs.Description of the task.getEvery()
Interval at which the task runs.getFlux()
Flux script to run for this task.getId()
Get idGet labelsGet lastRunErrorGet lastRunStatusTimestamp of the latest scheduled and completed run.getLinks()
Get linksgetName()
Name of the task.[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.getOrg()
Name of the organization that owns the task.getOrgID()
ID of the organization that owns the task.ID of the user who owns this Task.Get statusgetType()
Type of the task, useful for filtering a task list.Get updatedAtint
hashCode()
void
setAuthorizationID
(String authorizationID) void
void
setDescription
(String description) void
void
void
void
void
void
void
void
void
setOwnerID
(String ownerID) void
setStatus
(TaskStatusType status) void
status
(TaskStatusType status) toString()
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_ORG_I_D
- See Also:
-
SERIALIZED_NAME_ORG
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_OWNER_I_D
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_LABELS
- See Also:
-
SERIALIZED_NAME_AUTHORIZATION_I_D
- See Also:
-
SERIALIZED_NAME_FLUX
- See Also:
-
SERIALIZED_NAME_EVERY
- See Also:
-
SERIALIZED_NAME_CRON
- See Also:
-
SERIALIZED_NAME_OFFSET
- See Also:
-
SERIALIZED_NAME_LATEST_COMPLETED
- See Also:
-
SERIALIZED_NAME_LAST_RUN_STATUS
- See Also:
-
SERIALIZED_NAME_LAST_RUN_ERROR
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_LINKS
- See Also:
-
-
Constructor Details
-
Task
public Task()
-
-
Method Details
-
getId
Get id- Returns:
- id
-
type
-
getType
Type of the task, useful for filtering a task list.- Returns:
- type
-
setType
-
orgID
-
getOrgID
ID of the organization that owns the task.- Returns:
- orgID
-
setOrgID
-
org
-
getOrg
Name of the organization that owns the task.- Returns:
- org
-
setOrg
-
name
-
getName
Name of the task.- Returns:
- name
-
setName
-
ownerID
-
getOwnerID
ID of the user who owns this Task.- Returns:
- ownerID
-
setOwnerID
-
description
-
getDescription
Description of the task.- Returns:
- description
-
setDescription
-
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
labels
-
addLabelsItem
-
getLabels
Get labels- Returns:
- labels
-
setLabels
-
authorizationID
-
getAuthorizationID
ID of the authorization used when the task communicates with the query engine.- Returns:
- authorizationID
-
setAuthorizationID
-
flux
-
getFlux
Flux script to run for this task.- Returns:
- flux
-
setFlux
-
every
-
getEvery
Interval at which the task runs. `every` also determines when the task first runs, depending on the specified time. Value is a [duration literal](https://docs.influxdata.com/flux/v0.x/spec/lexical-elements/#duration-literals)).- Returns:
- every
-
setEvery
-
cron
-
getCron
[Cron expression](https://en.wikipedia.org/wiki/Cron#Overview) that defines the schedule on which the task runs. Cron scheduling is based on system time. Value is a [Cron expression](https://en.wikipedia.org/wiki/Cron#Overview).- Returns:
- cron
-
setCron
-
offset
-
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. `0` removes the offset. The value is a [duration literal](https://docs.influxdata.com/flux/v0.x/spec/lexical-elements/#duration-literals).- Returns:
- offset
-
setOffset
-
getLatestCompleted
Timestamp of the latest scheduled and completed run. Value is a timestamp in [RFC3339 date/time format](https://docs.influxdata.com/flux/v0.x/data-types/basic/time/#time-syntax).- Returns:
- latestCompleted
-
getLastRunStatus
Get lastRunStatus- Returns:
- lastRunStatus
-
getLastRunError
Get lastRunError- Returns:
- lastRunError
-
getCreatedAt
Get createdAt- Returns:
- createdAt
-
getUpdatedAt
Get updatedAt- Returns:
- updatedAt
-
links
-
getLinks
Get links- Returns:
- links
-
setLinks
-
equals
-
hashCode
public int hashCode() -
toString
-