Querying Atomic Metrics
Function
This API is used to query atomic metrics based on the name, creator, approver, status, and modification time and display the results on different pages.
URI
GET /v2/{project_id}/design/atomic-indexs
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
name |
No |
String |
Fuzzy query by name or code |
create_by |
No |
String |
Creator |
approver |
No |
String |
Approver |
status |
No |
String |
Business status Enumeration values:
|
begin_time |
No |
String |
Left boundary for a time filter. This parameter must be used together with end_time. |
end_time |
No |
String |
Right boundary for a time filter. This parameter must be used together with begin_time. |
l3_id |
No |
Long |
ID of business object l3 |
table_id |
No |
Long |
ID of the associated table |
limit |
No |
Integer |
Number of records to be queried, that is, Y records. The value ranges from 1 to 100. The default value is 50. Maximum: 100 Default: 50 |
offset |
No |
Integer |
Query offset, that is, X data records are skipped. The value must be 0 or an integer multiple of limit. If the value does not meet the requirements, it will be rounded down. The default value is 0. Default: 0 |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
id |
Long |
ID |
name_en |
String |
Atomic index name in English Maximum: 200 |
name_ch |
String |
Atomic index name in Chinese Maximum: 200 |
description |
String |
Maximum: 600 |
create_by |
String |
Creator |
cal_exp |
String |
Calculation expression Maximum: 200 |
cal_fn_ids |
Array of integers |
Calculation expression ID |
l1_id |
Long |
Subject area group ID |
l2_id |
String |
Subject area ID |
l3_id |
Long |
Business object GUID |
table_id |
Long |
Table ID |
tb_name |
String |
Table name |
dw_type |
String |
Data connection type |
field_ids |
Array of integers |
Field ID |
field_names |
Array of strings |
Field names |
status |
String |
Business statuses Enumeration values:
|
biz_type |
String |
Business types Enumeration values:
|
create_time |
String |
Creation time |
update_time |
String |
Update time |
l1 |
String |
Chinese name of the subject area group |
l2 |
String |
Chinese name of the subject area |
l3 |
String |
Chinese name of the business object |
approval_info |
ApprovalVO object |
Approval information |
new_biz |
BizVersionManageVO object |
Business version management |
Parameter |
Type |
Description |
---|---|---|
id |
Long |
ID |
tenant_id |
String |
tenant id |
name_ch |
String |
Approval name in Chinese |
name_en |
String |
Approval name in English |
biz_id |
Long |
Business ID |
biz_type |
String |
Business types Enumeration values:
|
biz_info |
String |
Business information |
biz_info_obj |
Object |
Business information object |
biz_version |
Integer |
Business version |
biz_status |
String |
Business statuses Enumeration values:
|
approval_status |
String |
Approval statuses Enumeration values:
|
approval_type |
String |
Approval types Enumeration values:
|
submit_time |
String |
Submission time |
create_by |
String |
Creator |
l1 |
String |
Subject area group |
l2 |
String |
Subject area |
l3 |
String |
Business object |
approval_time |
String |
Approval time |
approver |
String |
Approver |
|
String |
Approver email address |
msg |
String |
Approval message |
directory_path |
String |
Directory tree |
Parameter |
Type |
Description |
---|---|---|
id |
Long |
ID information |
biz_type |
String |
Business types Enumeration values:
|
biz_id |
Long |
Business ID |
biz_info |
String |
Business object information |
status |
String |
Business statuses Enumeration values:
|
biz_version |
Integer |
Business version |
create_time |
String |
Creation time |
update_time |
String |
Update time |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code, for example, DS.000 which indicates that the request was successfully processed. |
error_msg |
String |
Error message |
data |
Object |
Returned data |
Status code: 401
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code, for example, DS.000 which indicates that the request was successfully processed. |
error_msg |
String |
Error message |
data |
Object |
Returned data |
Status code: 403
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code, for example, DS.000 which indicates that the request was successfully processed. |
error_msg |
String |
Error message |
data |
Object |
Returned data |
Example Requests
None
Example Responses
Status code: 200
The operation succeeds. The AtomicIndexVO array and the total number of atomic metrics are returned.
{ "id" : "873264909264257024", "name_en" : "sum_total_amount", "name_ch" : "Total amount", "description" : "", "create_by" : "abc", "cal_exp" : "sum(${873264563087376397})", "cal_fn_ids" : null, "l1_id" : "873232498044411904", "l2_id" : "873232716601204736", "l3_id" : "873233440420560896", "table_id" : "873264563070599168", "tb_name" : "Trip order", "dw_type" : "DLI", "field_ids" : [ "873264563087376397" ], "field_names" : null, "status" : "PUBLISHED", "biz_type" : "FACT_LOGIC_TABLE", "create_time" : "2021-08-06T18:02:59+08:00", "update_time" : "2021-08-06T18:02:59+08:00", "l1" : "City traffic", "l2" : "Trip record", "l3" : "Trip fact", "approval_info" : { "id" : "873264909926957056", "tenant_id" : null, "name_ch" : null, "name_en" : null, "biz_id" : "873264909264257024", "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:02:59+08:00", "create_by" : null, "l1" : null, "l2" : null, "l3" : null, "approval_time" : "2021-08-06T18:02:59+08:00", "approver" : "abc", "email" : null, "msg" : "Fast Approval OK.", "directory_path" : null }, "new_biz" : null }
Status Codes
Status Code |
Description |
---|---|
200 |
The operation succeeds. The AtomicIndexVO array and the total number of atomic metrics are returned. |
400 |
BadRequest |
401 |
Unauthorized |
403 |
Forbidden |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.