JobActivity

class oci.fleet_apps_management.models.JobActivity(**kwargs)

Bases: object

Description of JobActivity.

Attributes

STATUS_ABORTED A constant which can be used with the status property of a JobActivity.
STATUS_ACCEPTED A constant which can be used with the status property of a JobActivity.
STATUS_CANCELED A constant which can be used with the status property of a JobActivity.
STATUS_FAILED A constant which can be used with the status property of a JobActivity.
STATUS_IGNORED A constant which can be used with the status property of a JobActivity.
STATUS_IN_PROGRESS A constant which can be used with the status property of a JobActivity.
STATUS_NOT_APPLICABLE A constant which can be used with the status property of a JobActivity.
STATUS_SKIPPED A constant which can be used with the status property of a JobActivity.
STATUS_SUCCEEDED A constant which can be used with the status property of a JobActivity.
STATUS_TIMED_OUT A constant which can be used with the status property of a JobActivity.
STATUS_WAITING A constant which can be used with the status property of a JobActivity.
id [Required] Gets the id of this JobActivity.
resource_level_executions Gets the resource_level_executions of this JobActivity.
runbook_id Gets the runbook_id of this JobActivity.
runbook_name Gets the runbook_name of this JobActivity.
status [Required] Gets the status of this JobActivity.
time_ended Gets the time_ended of this JobActivity.
time_started Gets the time_started of this JobActivity.

Methods

__init__(**kwargs) Initializes a new JobActivity object with values from keyword arguments.
STATUS_ABORTED = 'ABORTED'

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

STATUS_ACCEPTED = 'ACCEPTED'

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

STATUS_CANCELED = 'CANCELED'

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

STATUS_FAILED = 'FAILED'

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

STATUS_IGNORED = 'IGNORED'

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

STATUS_IN_PROGRESS = 'IN_PROGRESS'

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

STATUS_NOT_APPLICABLE = 'NOT_APPLICABLE'

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

STATUS_SKIPPED = 'SKIPPED'

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

STATUS_SUCCEEDED = 'SUCCEEDED'

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

STATUS_TIMED_OUT = 'TIMED_OUT'

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

STATUS_WAITING = 'WAITING'

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

__init__(**kwargs)

Initializes a new JobActivity 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 JobActivity.
  • status (str) – The value to assign to the status property of this JobActivity. Allowed values for this property are: “ACCEPTED”, “WAITING”, “IN_PROGRESS”, “FAILED”, “SUCCEEDED”, “CANCELED”, “SKIPPED”, “IGNORED”, “NOT_APPLICABLE”, “ABORTED”, “TIMED_OUT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • time_started (datetime) – The value to assign to the time_started property of this JobActivity.
  • time_ended (datetime) – The value to assign to the time_ended property of this JobActivity.
  • runbook_id (str) – The value to assign to the runbook_id property of this JobActivity.
  • runbook_name (str) – The value to assign to the runbook_name property of this JobActivity.
  • resource_level_executions (list[oci.fleet_apps_management.models.EntityExecutionDetails]) – The value to assign to the resource_level_executions property of this JobActivity.
id

[Required] Gets the id of this JobActivity. Unique activity id at action group level

Returns:The id of this JobActivity.
Return type:str
resource_level_executions

Gets the resource_level_executions of this JobActivity. Resources execution details and outcomes associated with the Task.

Returns:The resource_level_executions of this JobActivity.
Return type:list[oci.fleet_apps_management.models.EntityExecutionDetails]
runbook_id

Gets the runbook_id of this JobActivity. ID of the runbook

Returns:The runbook_id of this JobActivity.
Return type:str
runbook_name

Gets the runbook_name of this JobActivity. Name of the runbook

Returns:The runbook_name of this JobActivity.
Return type:str
status

[Required] Gets the status of this JobActivity. Status of the Job at Action Group Level

Allowed values for this property are: “ACCEPTED”, “WAITING”, “IN_PROGRESS”, “FAILED”, “SUCCEEDED”, “CANCELED”, “SKIPPED”, “IGNORED”, “NOT_APPLICABLE”, “ABORTED”, “TIMED_OUT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The status of this JobActivity.
Return type:str
time_ended

Gets the time_ended of this JobActivity. The time the Scheduler Job ended. An RFC3339 formatted datetime string

Returns:The time_ended of this JobActivity.
Return type:datetime
time_started

Gets the time_started of this JobActivity. The time the the Scheduler Job started. An RFC3339 formatted datetime string

Returns:The time_started of this JobActivity.
Return type:datetime