ai_api_client_sdk.models.execution module

class ai_api_client_sdk.models.execution.Execution(id: str, configuration_id: str, configuration_name: str, scenario_id: str, status: Status, target_status: TargetStatus, created_at: datetime, modified_at: datetime, output_artifacts: List[Artifact] = None, status_message: str = None, status_details: Dict[str, Any] = None, submission_time: datetime = None, start_time: datetime = None, execution_schedule_id: str = None, completion_time: datetime = None, **kwargs)

Bases: Enactment

The Execution object defines an execution

Parameters:
  • id (str) – ID of the execution

  • configuration_id (str) – ID of the configuration which configured the execution

  • configuration_name (str) – Name of the configuration which configured the execution

  • scenario_id (str) – ID of the scenario which the execution belongs to

  • status (class:ai_api_client_sdk.models.status.Status) – Status of the execution

  • target_status (class:ai_api_client_sdk.models.target_status.TargetStatus) – Target status of the execution

  • execution_schedule_id (str, optional) – ID of the execution schedule, defaults to None

  • created_at (datetime) – Time when the execution was created

  • modified_at (datetime) – Time when the execution was last modified

  • output_artifacts (List[class:ai_api_client_sdk.models.artifact.Artifact], optional) – List of the artifacts created by the execution, defaults to None

  • status_message (str, optional) – Gives information about the status of the execution, defaults to None

  • status_details (Dict[str, Any], optional) – A dict, which gives detailed information about the status of the execution, defaults to None

  • submission_time (datetime, optional) – Time when the execution was submitted

  • start_time (datetime, optional) – Time when the execution status changed to RUNNING

  • completion_time (datetime, optional) – Time when the execution status changed to COMPLETED/DEAD/STOPPED

  • **kwargs – The keyword arguments are there in case there are additional attributes returned from server

__init__(id: str, configuration_id: str, configuration_name: str, scenario_id: str, status: Status, target_status: TargetStatus, created_at: datetime, modified_at: datetime, output_artifacts: List[Artifact] = None, status_message: str = None, status_details: Dict[str, Any] = None, submission_time: datetime = None, start_time: datetime = None, execution_schedule_id: str = None, completion_time: datetime = None, **kwargs)
static from_dict(execution_dict: Dict[str, Any])

Returns a ai_api_client_sdk.models.execution.Execution object, created from the values in the dict provided as parameter

Parameters:

execution_dict (Dict[str, Any]) – Dict which includes the necessary values to create the object

Returns:

An object, created from the values provided

Return type:

class:ai_api_client_sdk.models.execution.Execution