接口说明

    根据报告id,返回报告所在域、项目,使用到的数据模型,表、数据连接,过去七天访问量,过去七天访问人次等信息。

    权限说明

    使用 token 访问,只有项目管理员才能使用该接口

    基本信息

    属性
    API /api/dash/report/info
    请求方法 GET

    请求参数

    字段名称 参数类型 参数说明
    token String 用于鉴权
    reportId Number 报告id

    返回结果示例:

    {
      "code": 200,
      "result": {
        "domain": {
          "id": 1,
          "name": "netease"
        },
        "project": {
          "id": 1,
          "name": "test"
        },
        "report": {
          "id": 127877,
          "title": "依赖消息查询表"
        },
        "dataConnections": [
          {
            "type": "mysql",
            "port": 3306,
            "server": "10.122.139.122",
            "parameters": "{}",
            "namespace": null,
            "id": 2213,
            "name": "有数环境",
            "tables": [
              {
                "status": "direct",
                "dataModelId": 10128,
                "database": "test_online",
                "table": "consume_extract_record",
                "dataConnectionId": 2213,
                "customSQL": null
              }
            ]
          }
        ],
        "last7days": [
          {
            "date": "2019-08-06",
            "dayView": 1,
            "dayViewPerson": 1
          },
          {
            "date": "2019-08-07",
            "dayView": 0,
            "dayViewPerson": 0
          },
          {
            "date": "2019-08-08",
            "dayView": 0,
            "dayViewPerson": 0
          },
          {
            "date": "2019-08-09",
            "dayView": 1,
            "dayViewPerson": 1
          },
          {
            "date": "2019-08-10",
            "dayView": 0,
            "dayViewPerson": 0
          },
          {
            "date": "2019-08-11",
            "dayView": 0,
            "dayViewPerson": 0
          },
          {
            "date": "2019-08-12",
            "dayView": 0,
            "dayViewPerson": 0
          }
        ],
        "totalView": 79
      },
      "logPath": "http://127.0.0.1:8009/operation/log/n3Zjen1Ai9VfXTJdpzt1Tk"
    }