华为云用户手册

  • 响应示例 状态码: 200 Success,返回data数据是 FactLogicTableVO 数组, 以及总数 { "data" : { "value" : { "records" : [ { "id" : "873264563070599168", "tb_name" : "fact_stroke_order", "tb_logic_name" : "行程订单", "l1_id" : "873232498044411904", "l2_id" : "873232716601204736", "l3_id" : "873233440420560896", "description" : "无", "dw_name" : null, "owner" : "abc", "create_by" : "abc", "queue_name" : "dgc_dli_test", "dw_id" : "2c9080f07b03db8d017b198a4a20002f", "db_name" : "demo_dwr_db", "tb_id" : "NativeTable-2c9080f07b03db8d017b198a4a20002f-demo_dwr_db-fact_stroke_order", "dim_table_ids" : null, "reversed" : null, "partition_conf" : null, "dirty_out_switch" : false, "dirty_out_database" : "", "dirty_out_prefix" : "", "dirty_out_suffix" : "", "schema" : "", "distribute" : null, "distribute_column" : null, "table_type" : "MANAGED", "status" : "PUBLISHED", "tb_guid" : "60c0a59c-fc48-437a-94a3-48680e342114", "tb_logic_guid" : "3ebe8fda-5417-4934-80bd-46ed7d46906a", "dw_type" : "DLI", "l1" : "城市交通", "l2" : "行程记录", "l3" : "行程事实", "create_time" : "2021-08-06T18:01:36+08:00", "update_time" : "2021-10-14T11:08:16+08:00", "approval_info" : { "id" : "873264617198166016", "tenant_id" : null, "name_ch" : null, "name_en" : null, "biz_id" : "873264563070599168", "biz_type" : null, "biz_info" : null, "biz_info_obj" : null, "biz_version" : 0, "biz_status" : "PUBLISHED", "approval_status" : "APPROVED", "approval_type" : null, "submit_time" : "2021-08-06T18:01:49+08:00", "create_by" : null, "l1" : null, "l2" : null, "l3" : null, "approval_time" : "2021-08-06T18:01:49+08:00", "approver" : "abc", "email" : null, "msg" : "Fast Approval OK.", "directory_path" : null }, "new_biz" : null, "dimensions" : [ { "id" : "873264563087376384", "fact_logic_table_id" : "873264563070599168", "ordinal" : 1, "dimension_id" : "873252544997130240", "role" : null, "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : true, "description" : "", "data_type" : "BIGINT", "domain_type" : "NUMBER", "data_type_extend" : null, "name_en" : "rate_code_id", "name_ch" : "费率id", "not_null" : false, "attribute_type" : "FACT_DIMENSION", "stand_row_id" : "873241897769082881", "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null }, { "id" : "873264563087376385", "fact_logic_table_id" : "873264563070599168", "ordinal" : 2, "dimension_id" : "873251932406448128", "role" : null, "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : true, "description" : "", "data_type" : "BIGINT", "domain_type" : "NUMBER", "data_type_extend" : null, "name_en" : "payment_type_id", "name_ch" : "付款方式编码", "not_null" : false, "attribute_type" : "FACT_DIMENSION", "stand_row_id" : null, "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null }, { "id" : "873264563087376386", "fact_logic_table_id" : "873264563070599168", "ordinal" : 3, "dimension_id" : "873251051724242944", "role" : null, "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : true, "description" : "", "data_type" : "BIGINT", "domain_type" : "NUMBER", "data_type_extend" : null, "name_en" : "vendor_id", "name_ch" : "供应商id", "not_null" : false, "attribute_type" : "FACT_DIMENSION", "stand_row_id" : "873241295328616449", "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null }, { "id" : "873264563087376387", "fact_logic_table_id" : "873264563070599168", "ordinal" : 4, "dimension_id" : "873254266029113344", "role" : "dim_pickup", "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : true, "description" : "", "data_type" : "TIMESTAMP", "domain_type" : "DATETIME", "data_type_extend" : null, "name_en" : "dim_pickup_date_key", "name_ch" : "上车时间", "not_null" : false, "attribute_type" : "FACT_DIMENSION", "stand_row_id" : null, "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null }, { "id" : "873264563087376388", "fact_logic_table_id" : "873264563070599168", "ordinal" : 5, "dimension_id" : "873254266029113344", "role" : "dim_dropoff", "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : true, "description" : "", "data_type" : "TIMESTAMP", "domain_type" : "DATETIME", "data_type_extend" : null, "name_en" : "dim_dropoff_date_key", "name_ch" : "下车时间", "not_null" : false, "attribute_type" : "FACT_DIMENSION", "stand_row_id" : null, "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null } ], "attributes" : null, "mappings" : null, "measures" : [ { "id" : "873264563087376389", "fact_logic_table_id" : "873264563070599168", "ordinal" : 6, "dimension_id" : null, "role" : null, "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : null, "description" : "", "data_type" : "STRING", "domain_type" : "STRING", "data_type_extend" : "", "name_en" : "pu_location_id", "name_ch" : "上车地点", "not_null" : false, "attribute_type" : "FACT_MEASURE", "stand_row_id" : null, "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null }, { "id" : "873264563087376390", "fact_logic_table_id" : "873264563070599168", "ordinal" : 7, "dimension_id" : null, "role" : null, "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : null, "description" : "", "data_type" : "STRING", "domain_type" : "STRING", "data_type_extend" : "", "name_en" : "do_location_id", "name_ch" : "下车地点", "not_null" : false, "attribute_type" : "FACT_MEASURE", "stand_row_id" : null, "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null }, { "id" : "873264563087376391", "fact_logic_table_id" : "873264563070599168", "ordinal" : 8, "dimension_id" : null, "role" : null, "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : null, "description" : "", "data_type" : "DECIMAL", "domain_type" : "NUMBER", "data_type_extend" : "(10,2)", "name_en" : "fare_amount", "name_ch" : "车费", "not_null" : false, "attribute_type" : "FACT_MEASURE", "stand_row_id" : null, "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null }, { "id" : "873264563087376392", "fact_logic_table_id" : "873264563070599168", "ordinal" : 9, "dimension_id" : null, "role" : null, "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : null, "description" : "", "data_type" : "DECIMAL", "domain_type" : "NUMBER", "data_type_extend" : "(10,2)", "name_en" : "extra", "name_ch" : "加收", "not_null" : false, "attribute_type" : "FACT_MEASURE", "stand_row_id" : null, "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null }, { "id" : "873264563087376393", "fact_logic_table_id" : "873264563070599168", "ordinal" : 10, "dimension_id" : null, "role" : null, "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : null, "description" : "", "data_type" : "DECIMAL", "domain_type" : "NUMBER", "data_type_extend" : "(10,2)", "name_en" : "mta_tax", "name_ch" : "MTA税", "not_null" : false, "attribute_type" : "FACT_MEASURE", "stand_row_id" : null, "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null }, { "id" : "873264563087376394", "fact_logic_table_id" : "873264563070599168", "ordinal" : 11, "dimension_id" : null, "role" : null, "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : null, "description" : "", "data_type" : "DECIMAL", "domain_type" : "NUMBER", "data_type_extend" : "(10,2)", "name_en" : "tip_amount", "name_ch" : "手续费", "not_null" : false, "attribute_type" : "FACT_MEASURE", "stand_row_id" : null, "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null }, { "id" : "873264563087376395", "fact_logic_table_id" : "873264563070599168", "ordinal" : 12, "dimension_id" : null, "role" : null, "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : null, "description" : "", "data_type" : "DECIMAL", "domain_type" : "NUMBER", "data_type_extend" : "(10,2)", "name_en" : "tolls_amount", "name_ch" : "通行费", "not_null" : false, "attribute_type" : "FACT_MEASURE", "stand_row_id" : null, "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null }, { "id" : "873264563087376396", "fact_logic_table_id" : "873264563070599168", "ordinal" : 13, "dimension_id" : null, "role" : null, "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : null, "description" : "", "data_type" : "DECIMAL", "domain_type" : "NUMBER", "data_type_extend" : "(10,2)", "name_en" : "improvement_surcharge", "name_ch" : "改善附加费", "not_null" : false, "attribute_type" : "FACT_MEASURE", "stand_row_id" : null, "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null }, { "id" : "873264563087376397", "fact_logic_table_id" : "873264563070599168", "ordinal" : 14, "dimension_id" : null, "role" : null, "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : null, "description" : "", "data_type" : "DECIMAL", "domain_type" : "NUMBER", "data_type_extend" : "(10,2)", "name_en" : "total_amount", "name_ch" : "总车费", "not_null" : false, "attribute_type" : "FACT_MEASURE", "stand_row_id" : null, "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null } ], "table_attributes" : [ { "id" : "873264563087376384", "fact_logic_table_id" : "873264563070599168", "ordinal" : 1, "dimension_id" : "873252544997130240", "role" : null, "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : true, "description" : "", "data_type" : "BIGINT", "domain_type" : "NUMBER", "data_type_extend" : null, "name_en" : "rate_code_id", "name_ch" : "费率id", "not_null" : false, "attribute_type" : "FACT_DIMENSION", "stand_row_id" : "873241897769082881", "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null }, { "id" : "873264563087376385", "fact_logic_table_id" : "873264563070599168", "ordinal" : 2, "dimension_id" : "873251932406448128", "role" : null, "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : true, "description" : "", "data_type" : "BIGINT", "domain_type" : "NUMBER", "data_type_extend" : null, "name_en" : "payment_type_id", "name_ch" : "付款方式编码", "not_null" : false, "attribute_type" : "FACT_DIMENSION", "stand_row_id" : null, "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null }, { "id" : "873264563087376386", "fact_logic_table_id" : "873264563070599168", "ordinal" : 3, "dimension_id" : "873251051724242944", "role" : null, "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : true, "description" : "", "data_type" : "BIGINT", "domain_type" : "NUMBER", "data_type_extend" : null, "name_en" : "vendor_id", "name_ch" : "供应商id", "not_null" : false, "attribute_type" : "FACT_DIMENSION", "stand_row_id" : "873241295328616449", "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null }, { "id" : "873264563087376387", "fact_logic_table_id" : "873264563070599168", "ordinal" : 4, "dimension_id" : "873254266029113344", "role" : "dim_pickup", "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : true, "description" : "", "data_type" : "TIMESTAMP", "domain_type" : "DATETIME", "data_type_extend" : null, "name_en" : "dim_pickup_date_key", "name_ch" : "上车时间", "not_null" : false, "attribute_type" : "FACT_DIMENSION", "stand_row_id" : null, "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null }, { "id" : "873264563087376388", "fact_logic_table_id" : "873264563070599168", "ordinal" : 5, "dimension_id" : "873254266029113344", "role" : "dim_dropoff", "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : true, "description" : "", "data_type" : "TIMESTAMP", "domain_type" : "DATETIME", "data_type_extend" : null, "name_en" : "dim_dropoff_date_key", "name_ch" : "下车时间", "not_null" : false, "attribute_type" : "FACT_DIMENSION", "stand_row_id" : null, "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null }, { "id" : "873264563087376389", "fact_logic_table_id" : "873264563070599168", "ordinal" : 6, "dimension_id" : null, "role" : null, "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : null, "description" : "", "data_type" : "STRING", "domain_type" : "STRING", "data_type_extend" : "", "name_en" : "pu_location_id", "name_ch" : "上车地点", "not_null" : false, "attribute_type" : "FACT_MEASURE", "stand_row_id" : null, "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null }, { "id" : "873264563087376390", "fact_logic_table_id" : "873264563070599168", "ordinal" : 7, "dimension_id" : null, "role" : null, "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : null, "description" : "", "data_type" : "STRING", "domain_type" : "STRING", "data_type_extend" : "", "name_en" : "do_location_id", "name_ch" : "下车地点", "not_null" : false, "attribute_type" : "FACT_MEASURE", "stand_row_id" : null, "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null }, { "id" : "873264563087376391", "fact_logic_table_id" : "873264563070599168", "ordinal" : 8, "dimension_id" : null, "role" : null, "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : null, "description" : "", "data_type" : "DECIMAL", "domain_type" : "NUMBER", "data_type_extend" : "(10,2)", "name_en" : "fare_amount", "name_ch" : "车费", "not_null" : false, "attribute_type" : "FACT_MEASURE", "stand_row_id" : null, "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null }, { "id" : "873264563087376392", "fact_logic_table_id" : "873264563070599168", "ordinal" : 9, "dimension_id" : null, "role" : null, "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : null, "description" : "", "data_type" : "DECIMAL", "domain_type" : "NUMBER", "data_type_extend" : "(10,2)", "name_en" : "extra", "name_ch" : "加收", "not_null" : false, "attribute_type" : "FACT_MEASURE", "stand_row_id" : null, "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null }, { "id" : "873264563087376393", "fact_logic_table_id" : "873264563070599168", "ordinal" : 10, "dimension_id" : null, "role" : null, "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : null, "description" : "", "data_type" : "DECIMAL", "domain_type" : "NUMBER", "data_type_extend" : "(10,2)", "name_en" : "mta_tax", "name_ch" : "MTA税", "not_null" : false, "attribute_type" : "FACT_MEASURE", "stand_row_id" : null, "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null }, { "id" : "873264563087376394", "fact_logic_table_id" : "873264563070599168", "ordinal" : 11, "dimension_id" : null, "role" : null, "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : null, "description" : "", "data_type" : "DECIMAL", "domain_type" : "NUMBER", "data_type_extend" : "(10,2)", "name_en" : "tip_amount", "name_ch" : "手续费", "not_null" : false, "attribute_type" : "FACT_MEASURE", "stand_row_id" : null, "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null }, { "id" : "873264563087376395", "fact_logic_table_id" : "873264563070599168", "ordinal" : 12, "dimension_id" : null, "role" : null, "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : null, "description" : "", "data_type" : "DECIMAL", "domain_type" : "NUMBER", "data_type_extend" : "(10,2)", "name_en" : "tolls_amount", "name_ch" : "通行费", "not_null" : false, "attribute_type" : "FACT_MEASURE", "stand_row_id" : null, "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null }, { "id" : "873264563087376396", "fact_logic_table_id" : "873264563070599168", "ordinal" : 13, "dimension_id" : null, "role" : null, "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : null, "description" : "", "data_type" : "DECIMAL", "domain_type" : "NUMBER", "data_type_extend" : "(10,2)", "name_en" : "improvement_surcharge", "name_ch" : "改善附加费", "not_null" : false, "attribute_type" : "FACT_MEASURE", "stand_row_id" : null, "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null }, { "id" : "873264563087376397", "fact_logic_table_id" : "873264563070599168", "ordinal" : 14, "dimension_id" : null, "role" : null, "dimension" : null, "is_primary_key" : false, "is_partition_key" : false, "is_foreign_key" : null, "description" : "", "data_type" : "DECIMAL", "domain_type" : "NUMBER", "data_type_extend" : "(10,2)", "name_en" : "total_amount", "name_ch" : "总车费", "not_null" : false, "attribute_type" : "FACT_MEASURE", "stand_row_id" : null, "stand_row_name" : null, "quality_infos" : null, "alias" : "", "self_defined_fields" : null } ], "physical_table" : "CREATE_SUCCESS", "technical_asset" : "CREATE_SUCCESS", "business_asset" : "CREATE_SUCCESS", "meta_data_link" : "UPDATE_SUCCESS", "data_quality" : "UPDATE_SUCCESS", "summary_status" : "SUMMARY_SUCCESS", "quality_id" : "898163867648204801", "alias" : "", "self_defined_fields" : [ ] } ] } } }
  • URI GET /v2/{project_id}/design/fact-logic-tables 表1 路径参数 参数 是否必选 参数类型 描述 project_id 是 String 项目id 表2 Query参数 参数 是否必选 参数类型 描述 name 否 String 按名称或编码模糊查询 create_by 否 String 按创建者查询 approver 否 String 按审核人查询 owner 否 String 按负责人查询 status 否 String 业务状态 枚举值: DRAFT PUBLISH_DEVELOPING PUBLISHED OFFLINE_DEVELOPING OFFLINE REJECT sync_status 否 String 枚举值: RUNNING NO_NEED SUMMARY_SUCCESS SUMMARY_FAILED sync_key 否 Array 枚举值: BUSINESS_ASSET DATA_QUALITY TECHNICAL_ASSET META_DATA_LINK PHYSICAL_TABLE DLF_TASK MATERIALIZATION l3_id 否 Long 业务对象l3 id begin_time 否 String 时间过滤左边界,与end_time一起使用,只支持时间范围过滤,单边过滤无效 end_time 否 String 时间过滤右边界,与begin_time一起使用只支持时间范围过滤,单边过滤无效 limit 否 Integer 查询条数,即查询Y条数据。默认值50,取值范围[1,100] 最大值:100 缺省值:50 offset 否 Integer 查询起始坐标,即跳过X条数据,仅支持0或limit的整数倍,不满足则向下取整。默认值0 缺省值:0 biz_catalog_id 否 String 所属的业务分层的id
  • 响应参数 状态码: 200 表4 响应Body参数 参数 参数类型 描述 data Object 返回的数据信息 状态码: 400 表5 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息 状态码: 401 表6 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息 状态码: 403 表7 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息
  • 响应参数 状态码: 200 表4 响应Body参数 参数 参数类型 描述 data Object 返回的数据信息 状态码: 400 表5 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息 状态码: 401 表6 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息 状态码: 403 表7 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息 状态码: 404 表8 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息
  • 响应参数 状态码: 200 表4 响应Body参数 参数 参数类型 描述 data Object 返回的数据信息 状态码: 400 表5 响应Body参数 参数 参数类型 描述 data Object 返回的数据信息 状态码: 401 表6 响应Body参数 参数 参数类型 描述 data Object 返回的数据信息 状态码: 403 表7 响应Body参数 参数 参数类型 描述 data Object 返回的数据信息
  • 响应示例 状态码: 200 Success,返回data数据是 DsProcessImportResultVO { "data" : { "status" : "success", "group" : { "id" : null, "tenant_id" : "xxx", "group_id" : "1014919548664713216", "biz_name" : null, "biz_id" : null, "operation_status" : "SUCCESS", "operation_type" : "IMPORT_CODETABLE", "biz_info" : null, "create_by" : "abc", "remark" : null, "total" : 2, "success" : 2, "failed" : 0, "rate" : "1.00", "logs" : null, "groups" : [ { "id" : "1014919548861845504", "tenant_id" : "xxx", "group_id" : "1014919548664713216", "biz_name" : "test", "biz_id" : null, "operation_status" : "SUCCESS", "operation_type" : "IMPORT_CODETABLE", "biz_info" : "{\"op_name\":\"test\",\"op_number\":0}", "create_by" : "abc", "remark" : "SKIP", "total" : 0, "success" : 0, "failed" : 0, "rate" : null, "logs" : null, "groups" : null } ] }, "rate" : "1.00" } }
  • 响应示例 状态码: 200 Success,返回data数据是StandElementFieldVO 列表 { "data" : { "value" : [ { "fd_name" : "nameEn", "description" : "标准编码", "id" : "793889740666605568", "actived" : true, "required" : true, "searchable" : true, "displayed_name" : "标准编码", "displayed_name_en" : "Standard code" } ] } }
  • 响应参数 状态码: 200 表4 响应Body参数 参数 参数类型 描述 data Object 返回的数据信息 状态码: 400 表5 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息 状态码: 401 表6 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息 状态码: 403 表7 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息 状态码: 404 表8 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息
  • URI GET /v2/{project_id}/design/standards/templates 表1 路径参数 参数 是否必选 参数类型 描述 project_id 是 String 项目id 表2 Query参数 参数 是否必选 参数类型 描述 limit 否 Integer 查询条数,即查询Y条数据。默认值50,取值范围[1,100] 最大值:100 缺省值:50 offset 否 Integer 查询起始坐标,即跳过X条数据,仅支持0或limit的整数倍,不满足则向下取整。默认值0 缺省值:0
  • 请求示例 { "fields" : [ { "fd_name" : "nameEn", "description" : "标准编码", "id" : "793889740666605568", "actived" : true, "required" : true, "searchable" : true, "displayed_name" : "标准编码", "displayed_name_en" : "Standard code" }, { "fd_name" : "dataType", "description" : "数据类型", "id" : "793889740775657472", "actived" : true, "required" : true, "searchable" : true, "displayed_name" : "数据类型", "displayed_name_en" : "Data type" } ] }
  • 响应参数 状态码: 200 表6 响应Body参数 参数 参数类型 描述 data Object 返回的数据信息 状态码: 400 表7 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息 状态码: 401 表8 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息 状态码: 403 表9 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息 状态码: 404 表10 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息
  • 请求参数 表3 请求Header参数 参数 是否必选 参数类型 描述 X-Auth-Token 是 String IAM Token workspace 是 String DataArts Studio工作空间ID 表4 请求Body参数 参数 是否必选 参数类型 描述 fields 否 Array of StandElementFieldVO objects 属性信息 表5 StandElementFieldVO 参数 是否必选 参数类型 描述 fd_name 是 String 属性名称 description 否 String 属性描述 id 否 Long ID actived 是 Boolean 是否显示,系统默认项必然显示不允许修改 required 否 Boolean 是否必填 searchable 否 Boolean 是否可搜索 displayed_name 否 String 前端展示名 displayed_name_en 否 String 前端展示名英文 create_time 否 String 创建时间 update_time 否 String 更新时间 create_by 否 String 创建人 update_by 否 String 更新人
  • URI GET /v2/{project_id}/design/conditions 表1 路径参数 参数 是否必选 参数类型 描述 project_id 是 String 项目id 表2 Query参数 参数 是否必选 参数类型 描述 name 否 String 按名称或编码模糊查询 create_by 否 String 按创建者查询 approver 否 String 按审核人查询 status 否 String 业务状态 枚举值: DRAFT PUBLISH_DEVELOPING PUBLISHED OFFLINE_DEVELOPING OFFLINE REJECT begin_time 否 String 时间过滤左边界,与end_time一起使用,只支持时间范围过滤,单边过滤无效 end_time 否 String 时间过滤右边界,与begin_time一起使用只支持时间范围过滤,单边过滤无效 limit 否 Integer 查询条数,即查询Y条数据。默认值50,取值范围[1,100] 最大值:100 缺省值:50 offset 否 Integer 查询起始坐标,即跳过X条数据,仅支持0或limit的整数倍,不满足则向下取整。默认值0 缺省值:0
  • 响应示例 状态码: 200 Success,返回data数据是 ConditionVO 数组, 以及总数 { "data" : { "value" : { "records" : [ { "id" : "873154196235517965", "name_en" : "f4w", "name_ch" : "未来4周", "description" : "历史数据的每天平均值*7*4", "create_by" : "SYSTEM", "condition_fn" : "BETWEEN_DAY", "condition_fn_param" : "1,28", "status" : "PUBLISHED", "create_time" : "2021-08-06T10:43:03+08:00", "update_time" : "2021-08-06T10:43:03+08:00", "approval_info" : null, "new_biz" : null, "base_time" : null } ] } } }
  • 响应参数 状态码: 200 表4 响应Body参数 参数 参数类型 描述 data Object 返回的数据信息 状态码: 400 表5 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息 状态码: 401 表6 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息 状态码: 403 表7 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息
  • 响应参数 状态码: 200 表3 响应Body参数 参数 参数类型 描述 data Object 返回的数据信息 状态码: 400 表4 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息 状态码: 401 表5 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息 状态码: 403 表6 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息 状态码: 404 表7 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息
  • 响应示例 状态码: 200 Success,返回data数据是 CodeTableVO 详情 { "data" : { "value" : { "id" : "1012307352952635392", "name_en" : "RY_000001", "name_ch" : "性别", "tb_version" : 0, "directory_id" : "1012307270173851648", "directory_path" : null, "description" : "", "create_by" : "abc", "status" : "PUBLISHED", "create_time" : "2022-08-25T10:28:01+08:00", "update_time" : "2022-08-25T10:31:08+08:00", "approval_info" : null, "new_biz" : null, "code_table_fields" : [ { "id" : "66929", "code_table_id" : "1012307352952635392", "ordinal" : 1, "name_en" : "code", "name_ch" : "编码", "description" : "", "data_type" : "STRING", "domain_type" : null, "data_type_extend" : null, "is_unique_key" : false, "code_table_field_values" : [ ], "count_field_values" : null }, { "id" : "66930", "code_table_id" : "1012307352952635392", "ordinal" : 2, "name_en" : "value", "name_ch" : "值", "description" : "", "data_type" : "STRING", "domain_type" : null, "data_type_extend" : null, "is_unique_key" : false, "code_table_field_values" : [ ], "count_field_values" : null } ] } } }
  • 请求示例 修改作业名称为myJob的作业属性,作业id为608627,作业最后修改人为test_user,作业类型为BATCH,作业调度配置为CRON,作业在目录树上的路径为/myDir,作业运行日志存放的OBS路径为obs://dlf-test-log。 PUT /v1/b384b9e9ab9b4ee8994c8633aabc9505/jobs/myJob { "basicConfig": { "customFields": {}, "executeUser": "", "instanceTimeout": 0, "owner": "test_user", "priority": 0 }, "directory": "/myDir", "id": 608627, "lastUpdateUser": "test_user", "logPath": "obs://dlf-test-log", "name": "myJob", "nodes": [ { "failPolicy": "FAIL_CHILD", "location": { "x": "-45.5", "y": "-134.5" }, "maxExecutionTime": 360, "name": "MRS_Hive_SQL", "pollingInterval": 20, "preNodeName": [], "properties": [ { "name": "scriptName", "value": "test_hive_sql" }, { "name": "connectionName", "value": "mrs_hive_test" }, { "name": "database", "value": "default" }, { "name": "scriptArgs", "value": "test_var=111" } ], "retryInterval": 120, "retryTimes": 0, "type": "HiveSQL" } ], "processType": "BATCH", "schedule": { "type": "CRON" } }
  • 响应示例 状态码: 200 Success,返回data数据是 ApproverVO 列表和数目 { "data" : { "value" : { "records" : [ { "id" : "1586", "approver_name" : "test02", "user_id" : "bff6a1286d26402197ca5a70136fb326", "user_name" : "test02", "email" : "abdf@xxx.com", "user_type" : null, "phone_number" : "18700645123", "create_by" : "6273052b7ea44765a51304972c2dbaa3", "create_time" : "2022-08-30T02:50:57.000Z", "app_name" : "dlg_ds", "topic_urn" : "topic123", "project_id" : "xxx" } ] } } }
  • 响应参数 状态码: 200 表4 响应Body参数 参数 参数类型 描述 data Object 返回的数据信息 状态码: 400 表5 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息 状态码: 401 表6 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息 状态码: 403 表7 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息 状态码: 404 表8 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息
  • URI GET /v2/{project_id}/design/approvals/users 表1 路径参数 参数 是否必选 参数类型 描述 project_id 是 String tenant id 表2 Query参数 参数 是否必选 参数类型 描述 approver_name 否 String 审核人名字 limit 否 Integer 查询条数,即查询Y条数据。默认值50,取值范围[1,100] 最大值:100 缺省值:50 offset 否 Integer 查询起始坐标,即跳过X条数据,仅支持0或limit的整数倍,不满足则向下取整。默认值0 缺省值:0
  • 响应示例 状态码: 200 Success,返回data数据是 WorkspaceVO 数组, 以及总数 { "data" : { "value" : { "records" : [ { "id" : "1014218815216717824", "name" : "test", "description" : "abc", "is_physical" : true, "frequent" : false, "top" : true, "level" : "SDI", "dw_type" : "DLI", "create_time" : "2022-08-30T17:03:28.822+08:00", "update_time" : "2022-08-30T17:03:28.822+08:00", "create_by" : "abc", "update_by" : "abc", "type" : "THIRD_NF", "biz_catalog_ids" : null, "databases" : null } ] } } }
  • 响应参数 状态码: 200 表4 响应Body参数 参数 参数类型 描述 data Object 返回的数据信息 状态码: 400 表5 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息 状态码: 401 表6 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息 状态码: 403 表7 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息
  • URI GET /v2/{project_id}/design/workspaces 表1 路径参数 参数 是否必选 参数类型 描述 project_id 是 String 项目id 表2 Query参数 参数 是否必选 参数类型 描述 workspace_type 否 String 枚举值: THIRD_NF DIMENSION limit 否 Integer 查询条数,即查询Y条数据。默认值50,取值范围[1,100] 最大值:100 缺省值:50 offset 否 Integer 查询起始坐标,即跳过X条数据,仅支持0或limit的整数倍,不满足则向下取整。默认值0 缺省值:0 dw_type 否 String 数据连接类型
  • 响应示例 状态码: 200 Success,返回数据是DirectoryVO { "data" : { "value" : { "name" : "test", "description" : null, "type" : "CODE", "id" : "1036594387779555328", "parent_id" : null, "prev_id" : "1036594387779555328", "root_id" : "1036594387779555328", "qualified_name" : null, "create_time" : null, "update_time" : null, "create_by" : null, "update_by" : "7b71e498e75d44048c9a22dd3c54f978", "children" : null } } }
  • 响应参数 状态码: 200 表4 响应Body参数 参数 参数类型 描述 data Object 返回的数据信息 状态码: 400 表5 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息 状态码: 401 表6 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息 状态码: 403 表7 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息
  • 请求参数 表2 请求Header参数 参数 是否必选 参数类型 描述 X-Auth-Token 是 String IAM Token workspace 是 String DataArts Studio工作空间ID 表3 请求Body参数 参数 是否必选 参数类型 描述 name 是 String 名称 最大长度:200 description 否 String 描述 type 是 String 目录类型(数据标准、码表) 枚举值: STANDARD_ELEMENT CODE id 否 Long ID,创建时可不传,更新时必填 parent_id 是 Long 父目录ID,首层传null prev_id 是 Long 上个节点ID,首节点传null root_id 否 Long 根节点ID,根节点此ID为自身ID qualified_name 否 String 所属目录 create_time 否 String 创建时间 update_time 否 String 更新时间 create_by 否 String 创建人 update_by 否 String 更新人 children 否 Array of DirectoryVO objects 子目录
  • 响应示例 状态码: 200 Success,返回data数据是 BizMetricVO { "data" : { "value" : { "id" : "1036590187955851264", "name" : "业务指标实例", "code" : "ZB000000", "name_alias" : "bizMetricDemo", "biz_type" : null, "status" : "DRAFT", "biz_catalog_id" : "1029701703198519304", "biz_catalog_path" : "营销/门店营销/门店", "create_by" : "ei_dlf_l00341563", "update_by" : "ei_dlf_l00341563", "data_origin" : "", "unit" : "", "time_filters" : "天", "dimensions" : "公司", "general_filters" : "example", "interval_type" : "DAY", "apply_scenario" : "", "technical_metric" : null, "technical_metric_name" : null, "technical_metric_type" : null, "measure" : "", "owner" : "tester", "owner_department" : "testDep", "destination" : "example", "guid" : null, "definition" : "example", "expression" : "a+b+c", "remark" : "example", "approval_info" : null, "new_biz" : null, "create_time" : "2022-10-31T10:39:20+08:00", "update_time" : "2022-10-31T10:39:20+08:00", "l1" : "营销", "l2" : "门店营销", "l3" : "门店", "biz_metric" : null, "summary_status" : null } } }
  • 请求示例 { "code" : "ZB000000", "biz_catalog_id" : "1029701703198519304", "name" : "业务指标实例", "name_alias" : "bizMetricDemo", "destination" : "example", "definition" : "example", "expression" : "a+b+c", "data_origin" : "", "unit" : "", "time_filters" : "天", "dimensions" : "公司", "general_filters" : "example", "interval_type" : "DAY", "apply_scenario" : "", "technical_metric" : "", "measure" : "", "owner_department" : "testDep", "owner" : "tester", "remark" : "example", "id" : "1036590187955851264" }
  • 响应参数 状态码: 200 表6 响应Body参数 参数 参数类型 描述 data Object 返回的数据信息 状态码: 400 表7 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息 状态码: 401 表8 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息 状态码: 403 表9 响应Body参数 参数 参数类型 描述 error_code String 错误码,如DS.000,请求处理成功 error_msg String 错误信息 data Object 返回的数据信息
共100000条