JobActivity¶
-
class
oci.fleet_apps_management.models.JobActivity(**kwargs)¶ Bases:
objectActivity details including status corresponding to an Action Group.
Attributes
STATUS_ABORTEDA constant which can be used with the status property of a JobActivity. STATUS_ACCEPTEDA constant which can be used with the status property of a JobActivity. STATUS_CANCELEDA constant which can be used with the status property of a JobActivity. STATUS_FAILEDA constant which can be used with the status property of a JobActivity. STATUS_IGNOREDA constant which can be used with the status property of a JobActivity. STATUS_IN_PROGRESSA constant which can be used with the status property of a JobActivity. STATUS_NOT_APPLICABLEA constant which can be used with the status property of a JobActivity. STATUS_PAUSEDA constant which can be used with the status property of a JobActivity. STATUS_SKIPPEDA constant which can be used with the status property of a JobActivity. STATUS_SUCCEEDEDA constant which can be used with the status property of a JobActivity. STATUS_TIMED_OUTA constant which can be used with the status property of a JobActivity. STATUS_WAITINGA constant which can be used with the status property of a JobActivity. descriptionGets the description of this JobActivity. id[Required] Gets the id of this JobActivity. resource_level_executionsGets the resource_level_executions of this JobActivity. runbook_idGets the runbook_id of this JobActivity. runbook_nameGets the runbook_name of this JobActivity. runbook_version_nameGets the runbook_version_name of this JobActivity. status[Required] Gets the status of this JobActivity. time_endedGets the time_ended of this JobActivity. time_startedGets 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_PAUSED= 'PAUSED'¶ A constant which can be used with the status property of a JobActivity. This constant has a value of “PAUSED”
-
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”, “PAUSED”, ‘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_version_name (str) – The value to assign to the runbook_version_name property of this JobActivity.
- runbook_name (str) – The value to assign to the runbook_name property of this JobActivity.
- description (str) – The value to assign to the description 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.
-
description¶ Gets the description of this JobActivity. A description of the Job Activity status. If there are any errors, this can also include a short error message.
Returns: The description of this JobActivity. Return type: str
-
id¶ [Required] Gets the id of this JobActivity. Unique activity id at the action group level. In most cases, this would be a generated ActionGroupId.
Returns: The id of this JobActivity. Return type: str
-
resource_level_executions¶ Gets the resource_level_executions of this JobActivity. List of Resource executions associated with the Action Group.
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. OCID of the runbook associated with the Action Group.
Returns: The runbook_id of this JobActivity. Return type: str
-
runbook_name¶ Gets the runbook_name of this JobActivity. Name of the runbook associated with the Action Group.
Returns: The runbook_name of this JobActivity. Return type: str
-
runbook_version_name¶ Gets the runbook_version_name of this JobActivity. Name of the RunbookVersion associated with the Action Group.
Returns: The runbook_version_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”, “PAUSED”, ‘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 execution for the Action Group 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 execution for the Action Group started. An RFC3339 formatted datetime string.
Returns: The time_started of this JobActivity. Return type: datetime
-