JobRun¶
- class oci.database_management.models.JobRun(**kwargs)¶
Bases:
objectThe details of a specific job run.
Attributes:
A constant which can be used with the run_status property of a JobRun.
A constant which can be used with the run_status property of a JobRun.
A constant which can be used with the run_status property of a JobRun.
[Required] Gets the compartment_id of this JobRun.
[Required] Gets the id of this JobRun.
[Required] Gets the job_id of this JobRun.
[Required] Gets the job_name of this JobRun.
Gets the managed_database_group_id of this JobRun.
Gets the managed_database_id of this JobRun.
[Required] Gets the name of this JobRun.
[Required] Gets the run_status of this JobRun.
[Required] Gets the time_submitted of this JobRun.
[Required] Gets the time_updated of this JobRun.
Methods:
__init__(**kwargs)Initializes a new JobRun object with values from keyword arguments.
- RUN_STATUS_COMPLETED = 'COMPLETED'¶
A constant which can be used with the run_status property of a JobRun. This constant has a value of “COMPLETED”
- RUN_STATUS_FAILED = 'FAILED'¶
A constant which can be used with the run_status property of a JobRun. This constant has a value of “FAILED”
- RUN_STATUS_IN_PROGRESS = 'IN_PROGRESS'¶
A constant which can be used with the run_status property of a JobRun. This constant has a value of “IN_PROGRESS”
- __init__(**kwargs)¶
Initializes a new JobRun object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
id (str) – The value to assign to the id property of this JobRun.
name (str) – The value to assign to the name property of this JobRun.
compartment_id (str) – The value to assign to the compartment_id property of this JobRun.
job_id (str) – The value to assign to the job_id property of this JobRun.
job_name (str) – The value to assign to the job_name property of this JobRun.
managed_database_group_id (str) – The value to assign to the managed_database_group_id property of this JobRun.
managed_database_id (str) – The value to assign to the managed_database_id property of this JobRun.
run_status (str) – The value to assign to the run_status property of this JobRun. Allowed values for this property are: “COMPLETED”, “FAILED”, “IN_PROGRESS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
time_submitted (datetime) – The value to assign to the time_submitted property of this JobRun.
time_updated (datetime) – The value to assign to the time_updated property of this JobRun.
- property compartment_id¶
[Required] Gets the compartment_id of this JobRun. The OCID of the compartment in which the parent job resides.
- Returns
The compartment_id of this JobRun.
- Return type
str
- property id¶
[Required] Gets the id of this JobRun. The identifier of the job run.
- Returns
The id of this JobRun.
- Return type
str
- property job_id¶
[Required] Gets the job_id of this JobRun. The OCID of the parent job.
- Returns
The job_id of this JobRun.
- Return type
str
- property job_name¶
[Required] Gets the job_name of this JobRun. The name of the parent job.
- Returns
The job_name of this JobRun.
- Return type
str
- property managed_database_group_id¶
Gets the managed_database_group_id of this JobRun. The OCID of the Managed Database Group where the parent job has to be executed.
- Returns
The managed_database_group_id of this JobRun.
- Return type
str
- property managed_database_id¶
Gets the managed_database_id of this JobRun. The OCID of Managed Database where the parent job has to be executed.
- Returns
The managed_database_id of this JobRun.
- Return type
str
- property name¶
[Required] Gets the name of this JobRun. The name of the job run.
- Returns
The name of this JobRun.
- Return type
str
- property run_status¶
[Required] Gets the run_status of this JobRun. The status of the job run.
Allowed values for this property are: “COMPLETED”, “FAILED”, “IN_PROGRESS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The run_status of this JobRun.
- Return type
str
- property time_submitted¶
[Required] Gets the time_submitted of this JobRun. The date and time when the job run was submitted.
- Returns
The time_submitted of this JobRun.
- Return type
datetime
- property time_updated¶
[Required] Gets the time_updated of this JobRun. The date and time when the job run was last updated.
- Returns
The time_updated of this JobRun.
- Return type
datetime