OperationLogItem

toloka.client.operation_log.OperationLogItem | Source code

OperationLogItem(
self,
*,
type: Optional[str] = None,
success: Optional[bool] = None,
input: Optional[Dict[str, Any]] = None,
output: Optional[Dict[str, Any]] = None
)

An operation log item.

If the operation was successful, the log contains the IDs of created objects, otherwise it contains validation errors details.

Parameters description

ParametersTypeDescription
typeOptional[str]

The type of the operation.

  • USER_BONUS_PERSIST — Successfully issuing a bonus.
  • TASK_CREATE — Successfully creating a task.
  • TASK_SUITE_CREATE — Successfully creating a task suite.
  • USER_BONUS_VALIDATE — Issuing a bonus that failed.
  • TASK_VALIDATE — Creating a task that failed.
  • TASK_SUITE_VALIDATE — Creating a task suite that failed.
successOptional[bool]

The operation result: success or failure.

inputOptional[Dict[str, Any]]

Input operation data.

outputOptional[Dict[str, Any]]

Operation output data. The content depends on the log item type.

Last updated: August 28, 2023

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming