Description of the on_result Callback
This callback is called periodically during the analysis’ processing. It retrieves an intermediate result (unavailable for the capture mode). The result content depends on the Web Adapter result_mode configuration parameter.
Safe
When result_mode is safe, the on_result callback contains the state of the analysis only:
{
"state": "finished"
}Status
For the status value, the callback contains the state of the analysis, and for each of the analysis types, the name of the type, state, and resolution.
{
"state": "finished",
"analyses": {
"quality": {
"state": "finished",
"resolution": "SUCCESS"
}
}
}Folder
The folder value is almost similar to the status value, with the only difference: the folder_id is added.
Full
In this case, you receive the detailed response possibly containing sensitive data. This mode is deprecated; for security reasons, we recommend using the safe mode.
Last updated
Was this helpful?
