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.

Table 1 Parameter description

Parameter

Mandatory

Description

server_id

Yes

Specifies the ECS ID.

Request

Table 2 describes the request parameters.

Table 2 Request parameters

Parameter

Mandatory

Type

Description

monitorMetrics

Yes

Null

Enables monitoring on the ECS.

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

See Returned Values for General Requests.

Error Codes

See Error Codes.