调用RunCloudMetricProfiling启动指定集群的性能剖析。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String RunCloudMetricProfiling

系统规定参数。取值:RunCloudMetricProfiling

ClusterId String ehpc-hz-jeJki6****

集群ID。

HostName String compute0

主机名称。

ProcessId Integer 29075

剖析进程ID。

RegionId String cn-hangzhou

地域ID。

Duration Integer 300

剖析时长。单位:秒

取值范围:10~300

默认值:30

Freq Integer 2000

采样频率。单位:Hz

取值范围:1~2000

默认值:2000

返回数据

名称 类型 示例值 描述
RequestId String 8442AF35-875B-4FC0-8B7AAFDC339335D5

请求ID。

示例

请求示例

https://ehpc.cn-hangzhou.aliyuncs.com/?Action=RunCloudMetricProfiling
&ClusterId=ehpc-hz-jeJki6****
&HostName=compute000
&ProcessId=29075
&<公共请求参数>

正常返回示例

XML格式

<RunCloudMetricProfilingResponse>
      <RequestId>8442AF35-875B-4FC0-8B7AAFDC339335D5</RequestId>
</RunCloudMetricProfilingResponse>

JSON格式

{
    "RequestId": "8442AF35-875B-4FC0-8B7AAFDC339335D5"
}

错误码

HttpCode 错误码 错误信息 描述
503 ServiceUnavailable The request has failed due to a temporary failure of the server 请求失败,服务暂时不可用

访问错误中心查看更多错误码。