You need to enable JavaScript to run this app.
导航
通用分析能力-获取指标列表getAllMetricList
最近更新时间:2024.12.06 13:07:29首次发布时间:2024.07.10 15:50:08

请求说明

  • 请求方式:POST
  • 接口名称:getAllMetricList
  • 请求地址:https://console.volcengine.com/cdp/open_platform/openapi

请求参数

参数

类型

是否必选

示例值

描述

Authorization

String

HMAC-SHA256 Credential=BDPP2952f97532xxxxxx/20240716/cn/openPlatform/request, SignedHeaders=host;x-content-sha256;x-date, Signature=131f3d297eb22a7xxxxxx

详细介绍请查阅调用方式文档

X-Tenant

String

1

项目ID

Query

参数

类型

是否必选

示例值

描述

ApiAction

String

getAllMetricList

固定值,对应“请求说明”中的“接口名称”

ApiVersion

String

2024-05-22

固定值,版本号: 2024-05-22

Body

参数

类型

是否必选

示例值

描述

subjectId

Int

1

主体ID,参考附录-主体ID获取方式

filterColumns

Array

sortBy

String

排序字段

order

String

排序方式

platform

String

平台

pageSize

Int

每页大小

current

Int

页码

permissionValue

String

权限模型

effectAnalysisSource

String

效果分析数据源过滤,支持为空,如果传入值,则会过滤非传入效果分析数据源的预置指标

selfCreate

Bool

过滤出我创建的

shared

Bool

过滤出授权给我的

bookmark

Bool

只查看收藏的

返回参数

参数

类型

示例值

描述

msg

String

成功

接口返回信息

code

Number

0

状态码,0表示正常

data

Onject

接口返回数据体

traceId

String

跟踪id

data字段内容

参数

类型

示例值

描述

total

Int (int64)

pageSize

Int (int32)

current

Int (int32)

pageNum

Int (int32)

items

Array (AnalysisModuleObjResp)

请求示例

{}

返回示例

{
    "code": 0,
    "msg": "success",
    "data": {
        "total": 170,
        "pageSize": 10,
        "current": 1,
        "pageNum": 1,
        "items": [
            {
                "id": 1760,
                "analysisModuleObjId": 1760,
                "analysisModuleObjName": "openapi2024-12-03T15:26:42.171",
                "name": "openapi2024-12-03T15:26:42.171",
                "descr": null,
                "seg": null,
                "dimension": {
                    "type": "ATTRIBUTION_COLUMN",
                    "attributionObj": {
                        "type": "DETAIL",
                        "dataSourceId": 95,
                        "columnName": "money",
                        "distinct": false,
                        "breakUp": true,
                        "method": "SUM"
                    },
                    "attributionEvent": [
                        {
                            "type": "EVENT",
                            "eventDatasourceId": 105,
                            "eventId": 118,
                            "eventName": "click",
                            "distinct": false,
                            "breakUp": true,
                            "method": "COUNT"
                        }
                    ]
                },
                "period": {
                    "startTime": "2024-11-26",
                    "endTime": "2024-12-03",
                    "type": "DATE"
                },
                "metrics": {
                    "method": "ATTRIBUTION",
                    "period": {
                        "periodRange": "DAY",
                        "num": 7,
                        "type": "RANGE"
                    },
                    "attributionType": "LAST",
                    "formatEnum": "INTEGER",
                    "attributionEvent": [
                        {
                            "type": "EVENT",
                            "eventDatasourceId": 105,
                            "eventId": 118,
                            "eventName": "click",
                            "distinct": false,
                            "breakUp": true,
                            "method": "COUNT"
                        }
                    ],
                    "attributionObj": {
                        "type": "DETAIL",
                        "dataSourceId": 95,
                        "columnName": "money",
                        "distinct": false,
                        "breakUp": true,
                        "method": "SUM"
                    }
                },
                "segRequired": false,
                "dimensionRequired": false,
                "periodRequired": false,
                "metricsRequired": false,
                "analysisType": "ATTRIBUTION_COLUMN",
                "createTime": "2024-12-03 15:26:42",
                "analysisModuleObjCreator": "admin",
                "updateTime": "2024-12-03 15:26:42",
                "updater": "admin",
                "domainType": "Private",
                "authFilter": true,
                "displayConfig": {
                    "dimensions": [
                        {
                            "key": "dimensionKey1",
                            "name": "money"
                        }
                    ]
                },
                "cdpModules": [],
                "periodShow": "7天",
                "attributionModelType": "末次触点归因",
                "platform": "GMP",
                "active": false,
                "scheduleTime": "2024-12-03 15:26:42",
                "scheduleRange": null,
                "subjectId": 1,
                "usableCdpModules": [
                    "segAnalysis"
                ],
                "editAble": true,
                "deleteAble": true,
                "message": null,
                "bookmark": false,
                "domainInfos": [],
                "authSchema": null,
                "panelId": null,
                "draftId": null
            }
      }
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

HTTP 状态码

错误码

错误信息

说明

400

invalidParameter

PARAMETER INVALID

参数非法,检查入参。