调用GetGatewayStatusStat获取网关状态统计,如 CPU、内存占用等。

调试

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

请求参数

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

系统规定参数。取值:GetGatewayStatusStat

GwEui String 0000000000000000

网关的GwEUI。

RegionId String cn-shanghai

地域ID。

返回数据

名称 类型 示例值 描述
Data

网关状态统计列表。

CpuRadio Float 42.0

网关CPU占用百分比,如10.5表示CPU占用10.5%。

Enabled Boolean true

网关的启停用状态。

GwEui String 0000000000000000

网关的GwEUI。

MemoryRadio Float 42.0

网关内存占用百分比,如42.0表示内存占用42%。

OnlineHour Long 42

累计在线小时数。

OnlineState String ONLINE

网关在线状态。

RxCount Long 10

累计RX。

TxCount Long 10

累计TX。

RequestId String 89EF6CAA-958F-F32C-BE45-FE003C6DE097

请求ID。

Success Boolean true

是否成功。

示例

请求示例


http(s)://linkwan.cn-shanghai.aliyuncs.com/?Action=GetGatewayStatusStat
&GwEui=0000000000000000
&<公共请求参数>

正常返回示例

XML 格式

<GetGatewayStatusStatResponse>
        <Data>
                <OnlineState>ONLINE</OnlineState>
                <MemoryRadio>42.0</MemoryRadio>
                <CpuRadio>42.0</CpuRadio>
                <RxCount>10</RxCount>
                <OnlineHour>42</OnlineHour>
                <TxCount>10</TxCount>
                <GwEui>0000000000000000</GwEui>
        </Data>
        <RequestId>89EF6CAA-958F-F32C-BE45-FE003C6DE097</RequestId>
        <Success>true</Success>
</GetGatewayStatusStatResponse>

JSON 格式

{
	"Data":{
		"CpuRadio":42.0,
		"TxCount":10,
		"RxCount":10,
		"OnlineHour":42,
		"OnlineState":"ONLINE",
		"GwEui":"0000000000000000",
		"MemoryRadio":42.0
	},
	"RequestId":"89EF6CAA-958F-F32C-BE45-FE003C6DE097",
	"Success":true
}

错误码

HttpCode 错误码 错误信息 描述
400 ForbiddenByRam User not authorized to operate on the specified resource, or this API does not support RAM. 用户没有执行该操作所需要的RAM权限。
400 ForbiddenByRiskControl This operation cannot be performed because of security risks. 存在安全风险,无法执行该操作
400 NonExistent The specified resource does not exist. 要操作的资源不存在。
400 InternalError The request processing has failed due to some unknown error, exception or failure. 内部错误。
400 NotResourceOwner You are not authorized to use this resource. 无权访问此资源

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