Querying the Metric Asset Directory Tree
Function
This API is used to query the metric asset directory tree.
URI
GET /v3/{project_id}/asset/metric-tree
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
IAM Token |
|
workspace |
Yes |
String |
DGC workspace ID |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
architecture |
Array of ArchitectureStatistic objects |
Architecture |
|
Parameter |
Type |
Description |
|---|---|---|
|
children |
Array of ArchitectureStatistic objects |
Submetric |
|
count |
Integer |
Number of submetrics |
|
guid |
String |
guid |
|
name |
String |
Name |
Status code: 401
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code |
|
error_msg |
String |
Error message |
Status code: 403
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code |
|
error_msg |
String |
Error message |
Status code: 404
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code |
|
error_msg |
String |
Error message |
Example Requests
None
Example Responses
Status code: 200
metric assets
{
"architecture" : [ {
"children" : [ {
"children" : null,
"count" : 1,
"guid" : "f31ad3b7-5c54-45e3-8afe-369c43d45438",
"name" : "process_name_second"
} ],
"count" : 0,
"guid" : "64db45a2-38d1-453d-bb13-404dde03fedc",
"name" : "process_name_first"
} ]
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
metric assets |
|
401 |
Unauthorized |
|
403 |
Forbidden |
|
404 |
Not Found |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.