|
历史操作日志查询服务 | 历史操作日志查询服务(Restful)
getOptRecordStatus
查询历史记录报告是否生成。
请求方式:
POST(HTTPS)
请求地址:
SERVER_HOST/api/v2/bizlog/getOptRecordStatus
请求参数体:
{
"body": {//
"recordId": ""//
},
"header": {
"adType": 1,
"agentpassword": "",
"agentusername": "",
"apiusertype": "",
"password": "xxxxxx",
"token": "xxxxxx",
"username": "xxxxxx"
}
}
|
响应结果:
{
"data": {//
"isGenerated": 0//
},
"desc": "success",
"failures": [],
"oprs": 1,
"oprtime": 1,
"quota": 1,
"rquota": 100,
"status": 0
}
|
getOptRecordPath
获取历史操作记录报告下载地址
请求方式:
POST(HTTPS)
请求地址:
SERVER_HOST/api/v2/bizlog/getOptRecordPath
请求参数体:
{
"body": {//
"recordId": ""//
},
"header": {
"adType": 1,
"agentpassword": "",
"agentusername": "",
"apiusertype": "",
"password": "xxxxxx",
"token": "xxxxxx",
"username": "xxxxxx"
}
}
|
响应结果:
{
"data": {//
"optRecordFilePath": ""//
},
"desc": "success",
"failures": [],
"oprs": 1,
"oprtime": 1,
"quota": 1,
"rquota": 100,
"status": 0
}
|
getOptRecordId
通过 getOptRecordId ,您可以获取历史操作日志的详细报表。由于产生报告需要一定的时间,我们采用了异步的方式对报表进行处理。您首先需要通过 getOptRecordId() 方法获得一个字符串类型的 reportId , 然后通过 pull 的方式轮询调用 getOptRecordStatus() 方法检查报表是否产生。待产生后,则可调用 getOptRecordFilePath() 方法获取报表的下载地址。根据该地址即可下载您所需要的报表。 报告 id 采用 <32 位 16 进制数 > 的取值形式,例如: 8e7e3f2d84a19c5df1415957434b2bd8
获取从指定时间到当前时间段内有变化的计划 id 。
请求方式:
POST(HTTPS)
请求地址:
SERVER_HOST/api/v2/bizlog/getOptRecordId
请求参数体:
{
"body": {//
"startDate": "",//
"endDate": "",//
"optRangeLevel": 0,//
"statIds": [],//
"optRole": 0,//
"format": 0,//
"optLevel": []//
},
"header": {
"adType": 1,
"agentpassword": "",
"agentusername": "",
"apiusertype": "",
"password": "xxxxxx",
"token": "xxxxxx",
"username": "xxxxxx"
}
}
|
参数说明:
startDate |
dateTime |
统计开始时间,格式参考:
2010-08-01 00:00:00 |
必填 |
endDate |
dateTime |
统计结束时间,格式参考:
2010-08-17 23:59:59 |
必填 |
响应结果:
{
"data": {//
"reportId": ""//
},
"desc": "success",
"failures": [],
"oprs": 1,
"oprtime": 1,
"quota": 1,
"rquota": 100,
"status": 0
}
|
|