调用ListCloudMetricProfilings查询指定集群的历史性能剖析信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListCloudMetricProfilings |
系统规定参数。取值:ListCloudMetricProfiling |
ClusterId | String | 是 | ehpc-hz-FYUr32**** |
集群ID。 |
RegionId | String | 否 | cn-hangzhou |
地域ID。 |
PageNumber | Integer | 否 | 1 |
当前页码。 起始值:1 默认值:1 |
PageSize | Integer | 否 | 10 |
每页显示的条数。取值范围:1~50 默认值:10 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
PageNumber | Integer | 1 |
当前页码。 |
PageSize | Integer | 1 |
本页条数。 |
Profilings | Array of ProfilingInfo |
历史性能剖析信息。 |
|
ProfilingInfo | |||
Duration | Integer | 30 |
采集时长。单位:秒 可能值:10~300 |
Freq | Integer | 2000 |
采集频率。单位:Hz 可能值:1~2000 |
HostName | String | compute5 |
实例机器名称。 |
InstanceId | String | i-bp1j76z8dlukzqgl0**** |
实例ID。 |
Pid | Integer | 21687 |
进程ID。 |
ProfilingId | String | ehpc-hz-i-bplukzqgl****_21687_2019-09-09-02-37-40 |
剖析ID。 |
TriggerTime | String | 2019-09-09 02:37:40 |
触发时间。 |
RequestId | String | 9A05F620-ED46-4A57-95F1-C67D6D3C5DD2 |
请求ID。 |
TotalCount | Integer | 1 |
列表条目总数。 |
示例
请求示例
https://ehpc.cn-hangzhou.aliyuncs.com/?Action=ListCloudMetricProfilings
&ClusterId=ehpc-hz-FYUr32****
&<公共请求参数>
正常返回示例
XML
格式
<ListCloudMetricProfilingsResponse>
<PageNumber>1</PageNumber>
<TotalCount>1</TotalCount>
<PageSize>10</PageSize>
<RequestId>9A05F620-ED46-4A57-95F1-C67D6D3C5DD2</RequestId>
<Profilings>
<ProfilingInfo>
<InstanceId>i-bp1j76z8dlukzqgl****</InstanceId>
<Duration>30</Duration>
<TriggerTime>2019-09-09 02:37:40</TriggerTime>
<ProfilingId>ehpc-hz-i-bplukzqgl****_21687_2019-09-09-02-37-40</ProfilingId>
<Freq>2000</Freq>
<Pid>21687</Pid>
<HostName>compute5</HostName>
</ProfilingInfo>
</Profilings>
</ListCloudMetricProfilingsResponse>
JSON
格式
{
"PageNumber": 1,
"TotalCount": 1,
"PageSize": 10,
"RequestId": "9A05F620-ED46-4A57-95F1-C67D6D3C5DD2",
"Profilings": {
"ProfilingInfo": {
"InstanceId": "i-bp1j76z8dlukzqgl****",
"Duration": 30,
"TriggerTime": "2019-09-09 02:37:40",
"ProfilingId": "ehpc-hz-i-bplukzqgl****_21687_2019-09-09-02-37-40",
"Freq": 2000,
"Pid": 21687,
"HostName": "compute5"
}
}
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
503 | ServiceUnavailable | The request has failed due to a temporary failure of the server | 请求失败,服务暂时不可用 |
访问错误中心查看更多错误码。