Querying Compound Metric Details
Function
This API is used to query the details of a compound metric based on the ID.
URI
GET /v2/{project_id}/design/compound-metrics/{id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID |
id |
Yes |
String |
Entity ID |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
latest |
No |
Boolean |
Whether to query the latest data |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
id |
Long |
ID |
name_en |
String |
Compound metric name in English Maximum: 200 |
name_ch |
String |
Compound metric name in Chinese Maximum: 200 |
description |
String |
Maximum: 600 |
dimension_group |
String |
Dimension group Default: 0 |
group_name |
String |
Dimension group name |
group_code |
String |
Dimension group code |
metric_ids |
Array of integers |
Metric IDs |
metric_names |
Array of strings |
Metric names |
cal_fn_ids |
Array of integers |
Referenced function ID |
cal_exp |
String |
Calculation expression ${index_id} + ${index_id} |
l1_id |
Long |
Subject area group ID |
l2_id |
String |
Subject area ID |
l3_id |
Long |
Business object ID |
data_type |
String |
Data type |
create_by |
String |
Creator |
update_by |
String |
User who updated the compound metric |
status |
String |
Business statuses Enumeration values:
|
create_time |
String |
Creation time |
update_time |
String |
Update time |
approval_info |
ApprovalVO object |
Approval information |
new_biz |
BizVersionManageVO object |
Business version management |
monitor |
MetricMonitorVO object |
Metric monitoring information |
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 |
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 |
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:
|
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. CompoundMetricVO is returned.
{ "id" : "1014222358430482432", "name_en" : "fuhe", "name_ch" : "fuhe", "description" : "", "dimension_group" : "873251932406448128", "group_name" : "Payment method", "group_code" : null, "metric_ids" : [ "873265905193426944" ], "metric_names" : null, "cal_fn_ids" : null, "cal_exp" : "${873265905193426944}", "l1_id" : "873232498044411904", "l2_id" : null, "l3_id" : null, "data_type" : "BIGINT", "create_by" : "abc", "update_by" : "abc", "status" : "DRAFT", "create_time" : "2022-08-30T17:17:34+08:00", "update_time" : "2022-08-30T17:17:34+08:00", "approval_info" : null, "new_biz" : null, "monitor" : null, "l1" : "City traffic", "l2" : null, "l3" : null, "summary_table_id" : null }
Status Codes
Status Code |
Description |
---|---|
200 |
The operation succeeds. CompoundMetricVO is 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.