Querying the Monitoring Item List
Function
This API is used to query the monitoring item list.
URI
POST /v1/apm2/openapi/apm-service/monitor-item-mgr/get-env-monitor-item-list
Request Parameters
Parameter | Mandatory | Type | Description |
---|---|---|---|
X-Auth-Token | Yes | String | User token obtained from IAM. |
x-business-id | Yes | Long | Application ID. |
Parameter | Mandatory | Type | Description |
---|---|---|---|
env_id | Yes | Long | Environment ID. |
page | Yes | Integer | Page number. |
page_size | No | Integer | Number of records on each page. |
Response Parameters
Status code: 200
Parameter | Type | Description |
---|---|---|
monitor_item_list | Array of MonitorItem objects | Monitoring item list. |
total_count | Integer | Total number. |
totalPage | Integer | Total number of pages. |
Parameter | Type | Description |
---|---|---|
id | Long | Monitoring item ID. |
env_id | Long | Environment ID. |
collector_id | Integer | Collector ID. |
collector_name | String | Collector name. |
display_name | String | Display name of the collector. |
collect_interval | Integer | Collection interval. |
disabled | Boolean | Disable or not. |
status_change_user_id | String | ID of the user who last enabled or disabled the monitoring item. |
status_change_user_name | String | Name of the user who last enabled or disabled the monitoring item. |
status_change_time | String | Date when the monitoring item was enabled or disabled. |
config_change_user_id | String | ID of the user who last modified the monitoring item configuration. |
config_change_user_name | String | Name of the user who last modified the monitoring item configuration. |
config_change_time | String | Time when the monitoring item configuration was modified. |
Example Requests
Query the monitoring item list of environment 913.
/v1/apm2/openapi/apm-service/monitor-item-mgr/get-env-monitor-item-list{"env_id" : "913","page" : 1,"page_size" : 10}
Example Responses
Status code: 200
OK: The request is successful.
{"monitor_item_list" : [ {"id" : 55150,"env_id" : 913,"collector_id" : 61,"collector_name" : "Thread","display_name" : "Thread","collect_interval" : 60,"disabled" : false,"status_change_user_id" : null,"status_change_user_name" : null,"status_change_time" : null,"config_change_user_id" : null,"config_change_user_name" : null,"config_change_time" : "2022-05-28 20:35:13"}, {"id" : 32788,"env_id" : 913,"collector_id" : 74,"collector_name" : "HttpClient","display_name" : "HttpClient monitoring","collect_interval" : 60,"disabled" : false,"status_change_user_id" : "7df6775cd82b4963a1837368cbbe5a07","status_change_user_name" : "paas_aom_apm","status_change_time" : "2023-07-24 10:07:55","config_change_user_id" : "7df6775cd82b4963a1837368cbbe5a07","config_change_user_name" : "paas_aom_apm","config_change_time" : "2024-05-31 15:04:31"} ],"total_count" : 2,"total_page" : 1}
Status Codes
Status Code | Description |
---|---|
200 | OK: The request is successful. |
400 | Bad Request: Semantic or parameter error. |
401 | Unauthorized: No permissions. |
403 | Forbidden: Access forbidden. |
404 | Not Found: The requested resource is not found. |
Error Codes
See Error Codes.
- Function
- URI
- Request Parameters
- Response Parameters
- Example Requests
- Example Responses
- Status Codes
- Error Codes