接口描述

获取 账单金额 详情

请求路径

GET /v1/nodes/amount/details

请求参数

名称 类型 位置 必须 描述
Authorization string header 鉴权 token
nodeIds string form 节点 IDs,以英文逗号分隔。最大数量为1000
day string form 日期,格式:yyyymmdd。示例:20240305

返回值

名称 类型 描述
details map[string][]AmountDetail 账单金额 信息,key 为 nodeId,value 为 账单金额信息

AmountDetail

名称 类型 描述
measuredAmount MeasuredAmount 账单金额详情

MeasuredAmount

名称 类型 描述
originalAmount float 原始金额。单位:元
slaDeduction float SLA扣减金额。单位:元
settleAmount float 最终金额。单位:元

请求示例

```

## 返回值示例
``` json
正常请求:
  http code 200

  {
    "details": {
        "nodeId1": {
            "measuredAmount": {
                "originalAmount": 100,
                "slaDeduction": 0,
                "settleAmount": 100,
            }
        },
        "nodeId2": {
            "measuredAmount": {
                "originalAmount": 100,
                "slaDeduction": 100,
                "settleAmount": 0,
            }
        }
    }
 }

异常请求:
  http code 4xx/5xx
{
  "code": 4000001,
  "desc": ""
}

错误码列表

错误码 描述
401 鉴权失败

如接口返回错误码未列举,可在错误码总览中查找

results matching ""

    No results matching ""