Adding an ECS to the Monitoring List¶
Function¶
This API is used to add an ECS to the monitoring list.
Ceilometer periodically collects monitoring data on the ECSs added to the monitoring list and reports the data to Cloud Eye. The data includes the platform version, CPU, memory, NICs, disks, and hardware version.
URI¶
POST /v1.0/servers/{server_id}/action
Table 1 describes the parameters in the URI.
Parameter | Mandatory | Description |
---|---|---|
server_id | Yes | Specifies the ECS ID. |
Request¶
Table 2 describes the request parameters.
Parameter | Mandatory | Type | Description |
---|---|---|---|
monitorMetrics | Yes | Null | Adds an ECS to the monitoring list. |
Response¶
None
Example Request¶
Add a specified ECS to the monitoring list.
POST https://{endpoint}/v1.0/servers/{server_id}/action
{
"monitorMetrics" : null
}
Example Response¶
None
Returned Values¶
Error Codes¶
See Error Codes.