JobExecution

class oci.database_management.models.JobExecution(**kwargs)

Bases: object

The details of a job execution.

Attributes

STATUS_FAILED A constant which can be used with the status property of a JobExecution.
STATUS_IN_PROGRESS A constant which can be used with the status property of a JobExecution.
STATUS_SUCCEEDED A constant which can be used with the status property of a JobExecution.
compartment_id [Required] Gets the compartment_id of this JobExecution.
error_message Gets the error_message of this JobExecution.
id [Required] Gets the id of this JobExecution.
job_id [Required] Gets the job_id of this JobExecution.
job_name [Required] Gets the job_name of this JobExecution.
job_run_id [Required] Gets the job_run_id of this JobExecution.
managed_database_group_id Gets the managed_database_group_id of this JobExecution.
managed_database_id [Required] Gets the managed_database_id of this JobExecution.
managed_database_name [Required] Gets the managed_database_name of this JobExecution.
name [Required] Gets the name of this JobExecution.
result_details Gets the result_details of this JobExecution.
status [Required] Gets the status of this JobExecution.
time_completed Gets the time_completed of this JobExecution.
time_created [Required] Gets the time_created of this JobExecution.

Methods

__init__(**kwargs) Initializes a new JobExecution object with values from keyword arguments.
STATUS_FAILED = 'FAILED'

A constant which can be used with the status property of a JobExecution. This constant has a value of “FAILED”

STATUS_IN_PROGRESS = 'IN_PROGRESS'

A constant which can be used with the status property of a JobExecution. This constant has a value of “IN_PROGRESS”

STATUS_SUCCEEDED = 'SUCCEEDED'

A constant which can be used with the status property of a JobExecution. This constant has a value of “SUCCEEDED”

__init__(**kwargs)

Initializes a new JobExecution 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 JobExecution.
  • name (str) – The value to assign to the name property of this JobExecution.
  • compartment_id (str) – The value to assign to the compartment_id property of this JobExecution.
  • managed_database_group_id (str) – The value to assign to the managed_database_group_id property of this JobExecution.
  • managed_database_id (str) – The value to assign to the managed_database_id property of this JobExecution.
  • managed_database_name (str) – The value to assign to the managed_database_name property of this JobExecution.
  • job_id (str) – The value to assign to the job_id property of this JobExecution.
  • job_name (str) – The value to assign to the job_name property of this JobExecution.
  • job_run_id (str) – The value to assign to the job_run_id property of this JobExecution.
  • status (str) – The value to assign to the status property of this JobExecution. Allowed values for this property are: “SUCCEEDED”, “FAILED”, “IN_PROGRESS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • error_message (str) – The value to assign to the error_message property of this JobExecution.
  • result_details (oci.database_management.models.JobExecutionResultDetails) – The value to assign to the result_details property of this JobExecution.
  • time_created (datetime) – The value to assign to the time_created property of this JobExecution.
  • time_completed (datetime) – The value to assign to the time_completed property of this JobExecution.
compartment_id

[Required] Gets the compartment_id of this JobExecution. The OCID of the compartment in which the parent job resides.

Returns:The compartment_id of this JobExecution.
Return type:str
error_message

Gets the error_message of this JobExecution. The error message that is returned if the job execution fails. Null is returned if the job is still running or if the job execution is successful.

Returns:The error_message of this JobExecution.
Return type:str
id

[Required] Gets the id of this JobExecution. The identifier of the job execution.

Returns:The id of this JobExecution.
Return type:str
job_id

[Required] Gets the job_id of this JobExecution. The OCID of the parent job.

Returns:The job_id of this JobExecution.
Return type:str
job_name

[Required] Gets the job_name of this JobExecution. The name of the parent job.

Returns:The job_name of this JobExecution.
Return type:str
job_run_id

[Required] Gets the job_run_id of this JobExecution. The identifier of the associated job run.

Returns:The job_run_id of this JobExecution.
Return type:str
managed_database_group_id

Gets the managed_database_group_id of this JobExecution. The OCID of the Managed Database Group where the parent job has to be executed.

Returns:The managed_database_group_id of this JobExecution.
Return type:str
managed_database_id

[Required] Gets the managed_database_id of this JobExecution. The OCID of the Managed Database associated with the job execution.

Returns:The managed_database_id of this JobExecution.
Return type:str
managed_database_name

[Required] Gets the managed_database_name of this JobExecution. The name of the Managed Database associated with the job execution.

Returns:The managed_database_name of this JobExecution.
Return type:str
name

[Required] Gets the name of this JobExecution. The name of the job execution.

Returns:The name of this JobExecution.
Return type:str
result_details

Gets the result_details of this JobExecution.

Returns:The result_details of this JobExecution.
Return type:oci.database_management.models.JobExecutionResultDetails
status

[Required] Gets the status of this JobExecution. The status of the job execution.

Allowed values for this property are: “SUCCEEDED”, “FAILED”, “IN_PROGRESS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The status of this JobExecution.
Return type:str
time_completed

Gets the time_completed of this JobExecution. The date and time when the job execution completed.

Returns:The time_completed of this JobExecution.
Return type:datetime
time_created

[Required] Gets the time_created of this JobExecution. The date and time when the job execution was created.

Returns:The time_created of this JobExecution.
Return type:datetime