Use the getMergeStatistics API to retrieve the current statistics for your merge tasks.
########====CDP Server Configuration Start====########
#set CDP server host name
$HOST="127.0.0.1";
#set CDP server to access API
$PORT="9443";
#set CDP user
$USER="admin";
#set CDP user password
$PASS="admin";
########====CDP Server Configuration End====########
########====Set Merge Task ID Start====########
$TASK_ID = "579b7dc7-6fc2-4e7c-b3da-ddfa81c0a5f7";
########====Set Merge Task ID End====########
#Retrieve merge task statistics
try{
$taskServiceClient = new soapclient("https://$HOST:$PORT/TaskHistory?wsdl",
array('login'=>"$USER",
'password'=>"$PASS",
'trace'=>1,
'cache_wsdl' => WSDL_CACHE_NONE,
'features' => SOAP_SINGLE_ELEMENT_ARRAYS)
);
$response = $taskServiceClient->getMergeStatistics(array('taskExecutionContextID'=>$TASK_ID));
var_dump($response);
echo "Successfully executed getFileMergeStatistics\n";
exit(0);
}
catch (SoapFault $exception)
{
echo "Failed to execute getMergeStatistics\n";
echo $exception;
exit(1);
}