风控后台


获取指标历史快照

<p><strong>简要描述:</strong> </p> <ul> <li>获取指标历史快照 @陈铁锋</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>http://xx.com/indicator/log/snapshot</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>GET</li> <li>请求携带token</li> </ul> <p><strong>参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">logId</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>日志id</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ "msg": "success", "code": 0, "indicatorSnapshot": { "id": 7, "name": "指标测试", "code": null, "type": 10, "range": 10, "dimensions": 10, "dimensionsValue": "贷前审核事件", "mainAttrType": "consumer_no", "mainAttrName": "用户id", "mainAttr": "consumer_no", "triggerType": 10, "triggerValue": "贷前审核事件", "outputType": 10, "resultType": "string", "desc": "指标测试", "remark": "测试112", "sequence": 0, "isFinish": 0, "isPreheat": 1, "initValue": 0, "calcType": 10, "state": 20, "addUser": 274, "addIp": "", "addTime": "2018-09-12 11:50:06", "updateUser": 274, "updateIp": "0:0:0:0:0:0:0:1", "updateTime": "2018-09-12 16:13:21", "deleteFlag": 0, "mid": "5b98caa250c7131320ee2cd7", "logId": 91, "indicatorAttrConfigEntities": [ { "id": 112, "indicatorId": 7, "type": 10, "attrType": "consumer_no", "attr": "consumer_no", "attrName": "用户id", "missHandle": null, "sequence": 0, "state": 10, "deleteFlag": 0 }, { "id": 113, "indicatorId": 7, "type": 20, "attrType": "phone", "attr": "phone", "attrName": "手机", "missHandle": 10, "sequence": 0, "state": 10, "deleteFlag": 0 }, { "id": 114, "indicatorId": 7, "type": 30, "attrType": "dev_id", "attr": "dev_id", "attrName": "设备id", "missHandle": 10, "sequence": 0, "state": 10, "deleteFlag": 0 } ], "indicatorConditionGroupConfigEntities": [ { "id": 45, "indicatorId": 7, "dateType": 0, "dateHour": 48, "relation": 1, "formula": "测试指标*1", "missHandle": "", "sequence": 0, "state": 10, "deleteFlag": 0, "indicatorConditionConfigEntities": [ { "id": 21, "indicatorId": 7, "groupId": 45, "varType": 0, "type": "int", "cvalue": "1", "cname": "变量1", "formula": "+", "varTypeRight": 0, "typeRight": "", "cvalueRight": "1", "cnameRight": "常量2", "missHandle": 10, "reqExt": "", "relation": 1, "result": "", "sequence": 0, "state": 10, "deleteFlag": 0 }, { "id": 22, "indicatorId": 7, "groupId": 45, "varType": 0, "type": "int", "cvalue": "2", "cname": "变量3", "formula": "*", "varTypeRight": 0, "typeRight": "", "cvalueRight": "3", "cnameRight": "常量4", "missHandle": 10, "reqExt": "", "relation": 2, "result": "", "sequence": 0, "state": 10, "deleteFlag": 0 } ] } ], "indicatorDbConfigEntity": null, "indicatorFormulaConfigEntities": [ { "id": 25, "indicatorId": 7, "execFormula": "指标1*1+指标2*2", "sequence": 0, "state": 10, "deleteFlag": 0, "indicatorFormulaDetailConfigEntities": [ { "id": 36, "indicatorId": 7, "formulaId": 25, "leftBracket": "(", "formula": "+", "varType": 1, "type": "int", "cvalue": "", "weight": 1, "rightBracket": "", "sequence": 0, "state": 10, "deleteFlag": 0 }, { "id": 37, "indicatorId": 7, "formulaId": 25, "leftBracket": "", "formula": "*", "varType": 1, "type": "int", "cvalue": "", "weight": 1, "rightBracket": ")", "sequence": 0, "state": 10, "deleteFlag": 0 } ] } ], "indicatorPreheatConfigEntity": { "id": 1, "indicatorId": 7, "sequence": 0, "dateType": 0, "dateHour": 48, "formula": "max", "fieldName": "amt", "isDistinct": 10, "isIgnoreNull": 10, "isDenominatorIgnoreNull": 10, "state": 10, "deleteFlag": 0 } } }</code></pre> <p><strong>返回参数说明</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">msg</td> <td style="text-align: left;">string</td> <td>提示信息</td> </tr> <tr> <td style="text-align: left;">code</td> <td style="text-align: left;">int</td> <td>0:成功,500:异常</td> </tr> <tr> <td style="text-align: left;">indicatorSnapshot</td> <td style="text-align: left;">json</td> <td>指标快照,具体字段含义请参考指标提交接口</td> </tr> </tbody> </table> <p><strong>备注</strong> </p> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul> <p>欢迎使用ShowDoc!</p>

页面列表

ITEM_HTML