Querying Derivative Metrics
Function
This API is used to query derivative metrics based on the name, creator, approver, status, modification time, and l3Id, and display the results on different pages.
URI
GET /v2/{project_id}/design/derivative-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:
|
dimension_id |
No |
Long |
Parameters for querying dimension attributes based on the dimension ID |
dimension_group |
No |
String |
Parameters for querying dimension attributes based on the dimension group |
atomic_index_id |
No |
Long |
Parameters for querying dimension attributes based on the atomic metric ID |
all_metrics |
No |
Boolean |
Whether to query compound metrics Default: false |
dw_type |
No |
String |
Data connection type |
l3_id |
No |
Long |
ID of business object l3 |
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. |
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 |
Derivative metric name in English Maximum: 200 |
name_ch |
String |
Derivative metric name in Chinese Maximum: 200 |
description |
String |
Maximum: 600 |
create_by |
String |
Creator |
data_type |
String |
Data type |
l1_id |
Long |
Subject area group ID |
l2_id |
String |
Subject area ID |
l3_id |
Long |
Business object GUID |
status |
String |
Business statuses Enumeration values:
|
atomic_index_id |
Long |
Atomic metric ID |
time_condition_id |
Long |
Time filter ID |
time_field_id |
Long |
ID of the field associated with the time filter |
time_field_name |
String |
Name of the field associated with the time filter |
common_conditions |
Array of CommonConditionVO objects |
Common filters |
dimension_groups |
Array of DerivativeIndexDimensionVO objects |
Dimension group (granularity) |
monitor |
MetricMonitorVO object |
Metric monitoring |
atomic_index |
AtomicIndexVO object |
Atomic metric information, including the name and unit |
time_condition_name |
String |
Time filter name |
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 |
summary_table_id |
Long |
Summary table ID |
approval_info |
ApprovalVO object |
Approval information |
new_biz |
BizVersionManageVO object |
Business version management |
Parameter |
Type |
Description |
---|---|---|
name |
String |
Name |
field_ids |
Array of strings |
Field ID, in the table_id.field_id format |
field_names |
Array of strings |
Field name, in the Table name.Field name format |
cal_exp |
String |
Calculation expression Maximum: 20000 |
cal_fn_ids |
Array of integers |
Calculation expression ID |
front_configs |
String |
Frontend expression configuration, which is used for frontend data restoration |
id |
Long |
id |
Parameter |
Type |
Description |
---|---|---|
group_id |
String |
Dimension group ID |
role |
String |
Dimension role |
dimension_id |
Long |
Dimension ID |
hierarchies_id |
Long |
Hierarchy ID |
ordinal |
Integer |
Ordinal |
group_name |
String |
Dimension group name |
group_code |
String |
Dimension group code |
biz_type |
String |
Business types Enumeration values:
|
hierarchies |
Array of DimensionHierarchiesVO objects |
Hierarchy attributes |
l1 |
String |
Subject area group |
l2 |
String |
Subject area |
l3 |
String |
Business object |
l1_id |
Long |
Subject area group ID |
l2_id |
String |
Subject area ID |
l3_id |
Long |
Business object ID |
dw_type |
String |
Data connection type |
id |
Long |
id |
Parameter |
Type |
Description |
---|---|---|
id |
Long |
ID |
name |
String |
Hierarchy name Maximum: 600 |
attrs |
Array of HierarchiesAttrVO objects |
Hierarchy attribute |
create_time |
String |
Creation time |
update_time |
String |
Update time |
create_by |
String |
Creator |
update_by |
String |
User who updated the dimension hierarchy |
Parameter |
Type |
Description |
---|---|---|
id |
Long |
ID |
hierarchies_id |
Long |
Hierarchy ID |
attr_id |
Long |
Attribute ID |
level |
Integer |
Level |
attr_name_en |
String |
Hierarchy attribute name in English |
attr_name_ch |
String |
Hierarchy attribute name in Chinese |
detail_attr_ids |
Array of integers |
IDs of detail attributes |
detail_attr_name_ens |
Array of strings |
Detail attribute name in English |
detail_attr_name_chs |
Array of strings |
Detail attribute name in Chinese |
attr |
DimensionAttributeVO object |
Hierarchy attribute field |
detail_attrs |
Array of DimensionAttributeVO objects |
Detail attributes |
Parameter |
Type |
Description |
---|---|---|
id |
Long |
ID |
dimension_id |
Long |
Dimension ID |
code_table_field_id |
Long |
Lookup table attribute ID |
name_en |
String |
Dimension attribute name in English Maximum: 600 |
name_ch |
String |
Dimension attribute name in Chinese Maximum: 200 |
description |
String |
Maximum: 600 |
create_by |
String |
Creator |
data_type |
String |
Data type |
domain_type |
String |
Data type domains Enumeration values:
|
data_type_extend |
String |
Data type extended field Maximum: 50 |
is_primary_key |
Boolean |
Whether the attribute is a primary key Default: false |
is_biz_primary |
Boolean |
Whether the attribute is a business primary key Default: false |
is_partition_key |
Boolean |
Whether the attribute is a partition key Default: false |
ordinal |
Integer |
Ordinal |
not_null |
Boolean |
Whether the attribute is not null Default: false |
stand_row_id |
Long |
ID of the associated data standard |
stand_row_name |
String |
Maximum: 600 |
quality_infos |
Array of QualityInfoVO objects |
Quality information |
status |
String |
Business statuses Enumeration values:
|
create_time |
String |
Creation time |
update_time |
String |
Update time |
alias |
String |
Alias |
self_defined_fields |
Array of SelfDefinedFieldVO objects |
Custom fields |
Parameter |
Type |
Description |
---|---|---|
id |
Long |
ID |
table_id |
Long |
Table ID |
attr_id |
Long |
Attribute ID |
biz_type |
String |
Business types Enumeration values:
|
data_quality_id |
Long |
Quality ID |
show_control |
Integer |
Whether to display the regular expression |
data_quality_name |
String |
Quality name |
alert_conf |
String |
Alarm configuration |
expression |
String |
Regular expression in verification rules |
extend_info |
String |
Extended information |
from_standard |
Boolean |
Whether the quality information is from data standard quality configuration Default: false |
result_description |
String |
Result description |
create_by |
String |
Creator |
update_by |
String |
User who updated the quality information |
create_time |
String |
Creation time |
update_time |
String |
Update time |
Parameter |
Type |
Description |
---|---|---|
fd_name_ch |
String |
Custom field name in Chinese Maximum: 200 |
fd_name_en |
String |
Custom field name in English Maximum: 200 |
not_null |
Boolean |
Whether the field is mandatory |
fd_value |
String |
Field value |
Parameter |
Type |
Description |
---|---|---|
id |
Long |
ID |
other_metric_ids |
Array of integers |
IDs of other metrics |
other_metric_names |
Array of strings |
Names of other metrics |
expression |
String |
Alarm expression Maximum: 2000 |
metric_id |
Long |
Metric ID |
front_configs |
String |
Frontend expression configuration, which is used for frontend data restoration |
metric_type |
String |
Metric type Enumeration values:
|
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 DerivativeIndexVO array and the total number of derivative metrics are returned.
{ "id" : "873265784540004352", "name_en" : "sum_total_amount", "name_ch" : "Total amount (rate code)", "description" : "", "create_by" : "abc", "data_type" : "DOUBLE", "l1_id" : "873232498044411904", "l2_id" : "873232716601204736", "l3_id" : "873233519286059008", "status" : "PUBLISHED", "atomic_index_id" : "873264909264257024", "time_condition_id" : null, "time_field_id" : null, "time_field_name" : null, "common_conditions" : [ ], "dimension_groups" : [ { "group_id" : "873252544997130240", "role" : null, "dimension_id" : "873252544997130240", "hierarchies_id" : null, "ordinal" : 1, "group_name" : "Rate code", "group_code" : "dim_rate_code", "biz_type" : "DIMENSION", "hierarchies" : null, "l1" : null, "l2" : null, "l3" : null, "l1_id" : null, "l2_id" : null, "l3_id" : null, "dw_type" : null, "id" : "873265784602918912" } ], "monitor" : null, "atomic_index" : { "id" : "873264909264257024", "name_en" : "sum_total_amount", "name_ch" : "Total amount", "description" : "", "create_by" : null, "cal_exp" : "sum(${873264563087376397})", "cal_fn_ids" : null, "l1_id" : null, "l2_id" : null, "l3_id" : null, "table_id" : "873264563070599168", "tb_name" : null, "dw_type" : null, "field_ids" : [ "873264563087376397" ], "field_names" : null, "status" : "DRAFT", "biz_type" : "FACT_LOGIC_TABLE", "create_time" : "2022-08-30T21:28:45.454+08:00", "update_time" : "2022-08-30T21:28:45.454+08:00", "l1" : null, "l2" : null, "l3" : null, "approval_info" : null, "new_biz" : null }, "time_condition_name" : null, "create_time" : "2021-08-06T18:06:28+08:00", "update_time" : "2021-08-06T18:06:27+08:00", "l1" : "City traffic", "l2" : "Trip record", "l3" : "Record statistics", "summary_table_id" : null, "approval_info" : { "id" : "873265785332727808", "tenant_id" : null, "name_ch" : null, "name_en" : null, "biz_id" : "873265784540004352", "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:06:28+08:00", "create_by" : null, "l1" : null, "l2" : null, "l3" : null, "approval_time" : "2021-08-06T18:06:27+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 DerivativeIndexVO array and the total number of derivative 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.