TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAdlabAdsimDatacacheReportRequest req = new AlibabaAdlabAdsimDatacacheReportRequest();
List<AlibabaAdlabAdsimDatacacheReportRequest.DataPath> list2 = new ArrayList<AlibabaAdlabAdsimDatacacheReportRequest.DataPath>();
AlibabaAdlabAdsimDatacacheReportRequest.DataPath obj3 = new AlibabaAdlabAdsimDatacacheReportRequest.DataPath();
list2.add(obj3);
obj3.setDataName("time_sync");
obj3.setPath("/mnt/nfs/simdata/download/code_output/time_sync/530b59576b6140fb3f6c414d13f48f3dab05d959/time_sync-pkg.tar.gz");
obj3.setRemark("v4.2.10");
req.setDataPathList(list2);
req.setSequenceId("59729769-335e-47db-9396-c3fd0f53e6b6");
req.setCacheId(123L);
req.setStatus("success");
req.setMessage("download time_sync success");
req.setDataCachePath("/mnt/nfs/simdata/download/output_dir/PRODUCTION_922e7146b4f1dc780e963f2d7367970f");
req.setStatistics("{\"size\": 100.23}");
req.setDutyModule("pdc");
AlibabaAdlabAdsimDatacacheReportResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAdlabAdsimDatacacheReportRequest req = new AlibabaAdlabAdsimDatacacheReportRequest();
List<AlibabaAdlabAdsimDatacacheReportRequest.DataPathDomain> list2 = new List<AlibabaAdlabAdsimDatacacheReportRequest.DataPathDomain>();
AlibabaAdlabAdsimDatacacheReportRequest.DataPathDomain obj3 = new AlibabaAdlabAdsimDatacacheReportRequest.DataPathDomain();
list2.Add(obj3);
obj3.DataName = "time_sync";
obj3.Path = "/mnt/nfs/simdata/download/code_output/time_sync/530b59576b6140fb3f6c414d13f48f3dab05d959/time_sync-pkg.tar.gz";
obj3.Remark = "v4.2.10";
req.DataPathList_ = list2;
req.SequenceId = "59729769-335e-47db-9396-c3fd0f53e6b6";
req.CacheId = 123L;
req.Status = "success";
req.Message = "download time_sync success";
req.DataCachePath = "/mnt/nfs/simdata/download/output_dir/PRODUCTION_922e7146b4f1dc780e963f2d7367970f";
req.Statistics = "{\"size\": 100.23}";
req.DutyModule = "pdc";
AlibabaAdlabAdsimDatacacheReportResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAdlabAdsimDatacacheReportRequest;
$data_path_list = new DataPath;
$data_path_list->data_name="time_sync";
$data_path_list->path="/mnt/nfs/simdata/download/code_output/time_sync/530b59576b6140fb3f6c414d13f48f3dab05d959/time_sync-pkg.tar.gz";
$data_path_list->remark="v4.2.10";
$req->setDataPathList(json_encode($data_path_list));
$req->setSequenceId("59729769-335e-47db-9396-c3fd0f53e6b6");
$req->setCacheId("123");
$req->setStatus("success");
$req->setMessage("download time_sync success");
$req->setDataCachePath("/mnt/nfs/simdata/download/output_dir/PRODUCTION_922e7146b4f1dc780e963f2d7367970f");
$req->setStatistics("{\"size\": 100.23}");
$req->setDutyModule("pdc");
$resp = $c->execute($req);
curl -X POST 'http://gw.api.taobao.com/router/rest' \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'app_key=12129701' \
-d 'format=json' \
-d 'method=alibaba.adlab.adsim.datacache.report' \
-d 'partner_id=apidoc' \
-d 'sign=EF26E185923D880063C6C084EF67659B' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-24+19%3A33%3A37' \
-d 'v=2.0' \
-d 'cache_id=123' \
-d 'data_cache_path=%2Fmnt%2Fnfs%2Fsimdata%2Fdownload%2Foutput_dir%2FPRODUCTION_922e7146b4f1dc780e963f2d7367970f' \
-d 'data_path_list=null' \
-d 'duty_module=pdc' \
-d 'message=download+time_sync+success' \
-d 'sequence_id=59729769-335e-47db-9396-c3fd0f53e6b6' \
-d 'statistics=%7B%5C%22size%5C%22%3A+100.23%7D' \
-d 'status=success'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAdlabAdsimDatacacheReportRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.data_path_list=""
req.sequence_id="59729769-335e-47db-9396-c3fd0f53e6b6"
req.cache_id=123
req.status="success"
req.message="download time_sync success"
req.data_cache_path="/mnt/nfs/simdata/download/output_dir/PRODUCTION_922e7146b4f1dc780e963f2d7367970f"
req.statistics="{\"size\": 100.23}"
req.duty_module="pdc"
try:
resp= req.getResponse()
print(resp)
except Exception,e:
print(e)
pTopRequest pRequest = alloc_top_request();
pTopResponse pResponse = NULL;
pTaobaoClient pClient = alloc_taobao_client(url, appkey, appsecret);
set_api_name(pRequest,"alibaba.adlab.adsim.datacache.report");
add_param(pRequest,"data_path_list","数据结构JSON示例");
add_param(pRequest,"sequence_id","59729769-335e-47db-9396-c3fd0f53e6b6");
add_param(pRequest,"cache_id","123");
add_param(pRequest,"status","success");
add_param(pRequest,"message","download time_sync success");
add_param(pRequest,"data_cache_path","/mnt/nfs/simdata/download/output_dir/PRODUCTION_922e7146b4f1dc780e963f2d7367970f");
add_param(pRequest,"statistics","{\"size\": 100.23}");
add_param(pRequest,"duty_module","pdc");
pResponse = top_execute(pClient,pRequest,NULL);
printf("ret code:%d\n",pResponse->code);
if(pResponse->code == 0){
pTopResponseIterator ite = init_response_iterator(pResponse);
pResultItem pResultItem = alloc_result_item();
while(parseNext(ite, pResultItem) == 0){
printf("%s:%s\n",pResultItem->key,pResultItem->value);
}
destroy_response_iterator(ite);
destroy_result_item(pResultItem);
}
destroy_top_request(pRequest);
destroy_top_response(pResponse);
destroy_taobao_client(pClient);
TopClient = require('./topClient').TopClient;
var client = new TopClient({
'appkey': 'appkey',
'appsecret': 'secret',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alibaba.adlab.adsim.datacache.report', {
'data_path_list':'数据结构JSON示例',
'sequence_id':'59729769-335e-47db-9396-c3fd0f53e6b6',
'cache_id':'123',
'status':'success',
'message':'download time_sync success',
'data_cache_path':'/mnt/nfs/simdata/download/output_dir/PRODUCTION_922e7146b4f1dc780e963f2d7367970f',
'statistics':'{\"size\": 100.23}',
'duty_module':'pdc'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})