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. For example, the plug-in of an SAP ECS periodically obtains monitoring data from Cloud Eye and reports the data to SAP in reports.
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 | Enables monitoring on the ECS. |
Response¶
None
Example Request¶
POST https://{endpoint}/v1.0/servers/{server_id}/action
{
"monitorMetrics" : null
}
Example Response¶
None
Returned Values¶
Error Codes¶
See Error Codes.