execution log contains all information about a current execution. It is the object returned by experiment() and run() methods on WizataDSAPIClient.
Attributes
| Name | Type | Description |
|---|---|---|
| execution_id | uuid.UUID | technical id of the execution. |
| experiment | Experiment | experiment associated (read-only, use properties to get id/key). |
| pipeline | Pipeline | pipeline associated (read-only, use properties to get id/key). |
| twin | Twin | twin associated (read-only, use properties to get id/key). |
| template | Template | template associated (read-only, use properties to get id/key). |
| registration | TwinRegistration | registration associated (read-only). |
| edge_device_id | uuid.UUID | edge device identifier if executed on edge. |
| status | ExecutionStatus | execution status. |
| level | int | log level. |
| pipeline_image_id | uuid.UUID | pipeline image package used. |
| timestamp | int | timestamp of the execution log. |
| started_date | int | timestamp on which execution started. |
| queued_date | int | timestamp on which execution was queued. |
| waiting_time | int | duration of the waiting time in the queue. |
| execution_time | int | duration of the execution from started. |
| trigger_id | uuid.UUID | trigger id used if automatic run. |
| version | str | python version (major.minor) used on runners. |
| properties | dict | configuration, parameters and variables. |
| models | list | list of model outputs. |
| plots | list | list of plot outputs. |
| dataframes | list | list of dataframe outputs. |
| message | str | latest log message. |
| messages | list | all log messages. |
Methods
from_dict()
create an ExecutionLog from a dictionary.
| Name | Type | Default | Description |
|---|---|---|---|
| data | dict | dictionary representation. | |
| return: ExecutionLog instance. |
to_dict()
convert ExecutionLog to a dictionary.
return: dictionary representation.
get_experiment_id()
get experiment UUID from the log.
get_experiment_key()
get experiment key from the log.
get_pipeline_id()
get pipeline UUID from the log.
get_pipeline_key()
get pipeline key from the log.
get_twin_id()
get twin UUID from the log.
get_twin_key()
get twin hardware key from the log.
get_template_id()
get template UUID from the log.
get_template_key()
get template key from the log.
get_registration_id()
get registration UUID from the log.
get_labels()
get all labels (indexed fields) as a dictionary.
return: dictionary of label key/value pairs.
get_values()
get all values (metric fields) as a dictionary.
return: dictionary of value key/value pairs.