Querying the Reported Information List
Function
Querying the Reported Information List
URI
GET /v3/{project_id}/csemonitor/metric/list
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID, which must be unique. The value contains 1 to 64 characters. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
page |
No |
String |
Page number. |
|
number |
No |
String |
Page size. |
|
sortType |
No |
String |
Sorting type. Enumerated values: increase decrease |
|
sortKey |
No |
String |
Sorting field. Enumerated values:
|
|
appIds |
No |
String |
List of applications to be queried, which are separated by commas (,). |
|
nameFilter |
No |
String |
Filter name. |
Request
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token. |
|
X-Enterprise-Project-ID |
No |
String |
If this parameter is not set, the default enterprise project is default and the ID is 0. |
|
Content-Type |
Yes |
String |
Set it to application/json;charset=UTF-8. |
|
Accept |
Yes |
String |
Set it to application/json. |
Response
|
Parameter |
Type |
Description |
|---|---|---|
|
list |
Array of KeyObject |
Key list. |
|
appIds |
Array of String |
Application ID list. |
|
page |
Integer |
Page number. |
|
number |
Integer |
Number of records on the current page. |
|
total |
Integer |
Total number of queries. |
|
Parameter |
Type |
Description |
|---|---|---|
|
key |
String |
Key. |
|
serviceId |
String |
Service ID. |
|
serviceName |
String |
Service name. |
|
appId |
String |
Application ID. |
|
version |
String |
Version. |
|
environment |
String |
Environment name. |
|
custom |
Map object |
Custom information. |
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error message. |
|
detail |
String |
Location details. |
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error message. |
|
detail |
String |
Location details. |
Example Request
GET https://{endpoint}/v3/{project_id}/csemonitor/metric/list
Example Response
Status code: 200
OK
{
"list": [
{
"key": "string",
"serviceId": "string",
"appId": "string",
"version": "string",
"environment": "string",
"custom": {
"key": 1.0
}
}
],
"appIds": ["string", "string"],
"page": 0,
"number": 0,
"total": 0
}
Status Code
|
Status Code |
Description |
|---|---|
|
200 |
OK |
|
400 |
Bad Request |
|
500 |
Internal Server Error |
Error Code
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot