获取指标详情(指标列表-修改)
<p><strong>简要描述:</strong></p>
<ul>
<li>获取指标详情
@陈铁锋</li>
</ul>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://xx.com/admin/indicator/indicatorbasicconfig/info</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;">indicatorId</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">Number</td>
<td>指标id</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
"msg": "success",
"code": 0,
"data": {
"id": 858,
"name": "【李文珂测试】近180天内借款平均计划借款天数",
"code": "INDICATOR_858",
"alias": null,
"type": 20,
"scope": 10,
"dimensions": 20,
"dimensionsValue": "arc_borrow_pay_info",
"mainAttrType": "consumer_no",
"mainAttrName": "用户ID",
"mainAttr": "consumer_no",
"triggerType": 0,
"triggerValue": null,
"triggerProduct": null,
"outputType": 0,
"resultType": "double",
"desc": "被动原生指标数据库维度复合函数-dev",
"remark": "test",
"hitType": 3,
"dateHour": null,
"dateType": 0,
"dateTimeUnit": 2,
"dateTimeGte": 0,
"dateTimeLte": -1,
"dateField": "borrowTime",
"weekDay": 1,
"timePeriod": 1,
"sequence": 0,
"isFinish": 1,
"isPreheat": 0,
"initValue": null,
"calcType": 20,
"state": 10,
"isTransition": 0,
"isResultProcess": 0,
"isSort": 0,
"sortRule": null,
"sortNum": null,
"sortNumRight": null,
"sortField": null,
"dateTimeUnitLte": 2,
"timingCycle": null,
"addUser": 70,
"addUserName": "李文珂",
"addIp": "",
"addTime": "2019-01-04 10:02:13",
"updateUser": 70,
"updateUserName": "李文珂",
"updateIp": "172.16.157.239",
"updateTime": "2019-07-01 17:50:37",
"deleteFlag": 0,
"mid": null,
"logId": null,
"indicatorAttrConfigEntities": [],
"indicatorTimePeriodEntities": [
{
"id": 1,
"indicatorId": 858,
"timePeriodTypeGte": 0,
"timePeriodTypeLte": 0,
"timeValueGte": 23,
"timeValueLte": 24,
"deleteFlag": 0,
"addTime": "2019-07-09 16:55:48"
},
{
"id": 2,
"indicatorId": 858,
"timePeriodTypeGte": 0,
"timePeriodTypeLte": 2,
"timeValueGte": 8,
"timeValueLte": 0,
"deleteFlag": 0,
"addTime": "2019-07-09 16:55:48"
}
],
"indicatorConditionGroupConfigEntities": null,
"indicatorDbConfigEntity": null,
"indicatorFormulaConfigEntities": [
{
"id": 5484,
"indicatorId": 858,
"execFormula": "hybrid",
"parentFormula": "avg",
"childFormula": "time_interval",
"isDistinct": 0,
"isIgnoreNull": 0,
"isDenominatorIgnoreNull": 0,
"isNullZero": 0,
"isNullMin": 0,
"sequence": 0,
"state": 10,
"deleteFlag": 0,
"granularity": "day",
"conditionFormula": "<and<",
"conditionValue": "-100,0",
"indicatorFormulaDetailConfigEntities": [
{
"id": 8296,
"indicatorId": 858,
"formulaId": 5484,
"depth": null,
"leftBracket": "",
"formula": "",
"varType": 2,
"type": "",
"cvalue": "borrowTime",
"weight": null,
"weightFormula": "*",
"rightBracket": "",
"sequence": 1,
"state": 10,
"deleteFlag": 0,
"cvalueName": "borrowTime",
"calcOrder": 0
},
{
"id": 8297,
"indicatorId": 858,
"formulaId": 5484,
"depth": null,
"leftBracket": "",
"formula": "",
"varType": 2,
"type": "",
"cvalue": "max_repayment_time",
"weight": null,
"weightFormula": "*",
"rightBracket": "",
"sequence": 2,
"state": 10,
"deleteFlag": 0,
"cvalueName": "max_repayment_time",
"calcOrder": 0
}
]
}
],
"indicatorResultProcessConfigEntities": null,
"indicatorPreheatConfigEntity": null,
"mainAttrCascadeName": null,
"triggerName": null,
"dimensionsName": "弱风控记录表",
"sortFieldName": null,
"mainAttrDataType": null,
"dateFieldName": "borrowTime",
"timingValue": null,
"existDerive": false,
"labelIdList": [
71
]
}
}</code></pre>
<p>统计维度名称 dimensionsName</p>
<p>主属性级联名称 mainAttrCascadeName</p>
<p>触发事件名称 triggerName</p>
<p>从属性级联名称 attrCascadeName</p>
<p>筛选条件名称 cvalueName</p>
<p>预热计算字段 cvalueName</p>
<p>计算公式计算字段名称 cvalueName</p>
<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;">data</td>
<td style="text-align: left;">json</td>
<td>指标详情内容,具体字段含义请参考<a href="https://www.showdoc.cc/61948367129254?page_id=880214503891996" title="指标提交接口">指标提交接口</a></td>
</tr>
</tbody>
</table>
<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;">existDerive</td>
<td style="text-align: left;">boolean</td>
<td>是否存在衍生[true:存在,false:不存在]</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong></p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!</p>