The Job object provides information about a scheduled job or task, including its name, command line, and state. It encompasses attributes that describe the properties and status of the scheduled job.
Attributes
Section titled “Attributes”file
- Type:
file - Requirement: required
The file that pertains to the job.
name
- Type:
string_t - Requirement: required
The name of the job.
cmd_line
- Type:
string_t - Requirement: recommended
The job command line.
created_time
- Type:
timestamp_t - Requirement: recommended
The time when the job was created.
desc
- Type:
string_t - Requirement: recommended
The description of the job.
last_run_time
- Type:
timestamp_t - Requirement: recommended
The time when the job was last run.
run_state_id
- Type:
integer_t - Requirement: recommended
- Values:
0-Unknown: The run state is unknown.1-Ready2-Queued3-Running4-Stopped99-Other: The run state is not mapped. See therun_stateattribute, which contains a data source specific value.
The run state ID of the job.
created_time_dt
- Type:
datetime_t - Requirement: optional
The time when the job was created.
last_run_time_dt
- Type:
datetime_t - Requirement: optional
The time when the job was last run.
next_run_time
- Type:
timestamp_t - Requirement: optional
The time when the job will next be run.
next_run_time_dt
- Type:
datetime_t - Requirement: optional
The time when the job will next be run.
run_state
- Type:
string_t - Requirement: optional
The run state of the job.
user
- Type:
user - Requirement: optional
The user that created the job.