获取数据作品的血缘关系,包括各组件引用的数据集以及查询字段信息。目前仅支持的数据作品包含仪表板、电子表格、自助取数。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
quickbi-public:QueryWorksBloodRelationship |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| WorksId |
string |
是 |
数据作品的 ID。 |
abcd**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回结果。 |
||
| Success |
boolean |
是否请求成功。取值范围:
|
true |
| RequestId |
string |
请求 ID。 |
D787E1A3-A93C-424A-B626-C2B05DF8D885 |
| Result |
array<object> |
作品血缘信息列表。 |
|
|
array<object> |
作品血缘详情信息。 |
||
| ComponentId |
string |
组件 ID。 |
0696083a-ca72-4d89-8e7a-c017910e0*** |
| ComponentName |
string |
组件名称。 |
线图 |
| ComponentType |
integer |
组件类型。 |
3 |
| ComponentTypeName |
string |
组件类型名称。 |
LINE |
| ComponentTypeCnName |
string |
组件类型中文名称。 |
交叉表 |
| DatasetId |
string |
数据集 ID。 |
dc78a4ed-880d-452e-b017-90cfc10c83e5_company_sales_record |
| QueryParams |
array<object> |
查询参数引用列的列表。 |
|
|
object |
字段信息。 |
||
| AreaId |
string |
所属位置 ID。 |
area_column |
| AreaName |
string |
所属位置名称。 |
列(度量) |
| Caption |
string |
字段原名。 |
order_number |
| DataType |
string |
字段类型。取值范围:
|
number |
| IsMeasure |
boolean |
是否是度量。取值范围: true:是 false:否 |
true |
| PathId |
string |
全局唯一的 PathId。 |
schema7d1944eb-443e-48c6-8123-bf45a99e7e74.dc78a4ed-880d-452e-b017-90cfc10c83e5_company_sales_record.[Ndc78a4_order_level].[Ndc78a4_order_level].[Ndc78a4_order_level] |
| Uid |
string |
字段唯一 ID。 |
Ndc78a4_order_number |
| Expression |
string |
计算字段表达式。 |
BI_DATEADD([时间], 100, 'day') |
示例
正常返回示例
JSON格式
{
"Success": true,
"RequestId": "D787E1A3-A93C-424A-B626-C2B05DF8D885",
"Result": [
{
"ComponentId": "0696083a-ca72-4d89-8e7a-c017910e0***",
"ComponentName": "线图",
"ComponentType": 3,
"ComponentTypeName": "LINE",
"ComponentTypeCnName": "交叉表",
"DatasetId": "dc78a4ed-880d-452e-b017-90cfc10c83e5_company_sales_record",
"QueryParams": [
{
"AreaId": "area_column",
"AreaName": "列(度量)",
"Caption": "order_number",
"DataType": "number",
"IsMeasure": true,
"PathId": "schema7d1944eb-443e-48c6-8123-bf45a99e7e74.dc78a4ed-880d-452e-b017-90cfc10c83e5_company_sales_record.[Ndc78a4_order_level].[Ndc78a4_order_level].[Ndc78a4_order_level]",
"Uid": "Ndc78a4_order_number",
"Expression": "BI_DATEADD([时间], 100, 'day')"
}
]
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | Invalid.Works.Empty | This work does not exist. It may have been deleted. Work ID is %s. | |
| 400 | Invalid.WorksId.Not.Publish | Works %s is not published yet. | |
| 400 | Invalid.Workspace | The workspace is not owned by the organization. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。