Updated on 2023-05-29 GMT+08:00

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.
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

POST https://{endpoint}/v1.0/servers/{server_id}/action
{  
   "monitorMetrics" : null 
}

Example Response

None

Error Codes

See Error Codes.