查询报警信息

调试

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

请求参数

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

系统规定参数。取值:DescribeAlarms。

StoreId String s-dxsxxxxxx

门店ID或商家自定义门店ID。

AlarmId String 123456

报警ID。

DeviceMac String 11:22:33:44:55:66

基站或价签的硬件Mac地址。

PageNumber Integer 1

分页参数:当前页码,默认值1。

ErrorType String ALARM_ERROR_SEND_FAILED

报警类型,可选值:

  • ALARM_ERROR_SEND_FAILED:连接失败
  • ALARM_ERROR_DISPLAY_FAILED:刷新失败
  • ALARM_ERROR_TIMEOUT_WITH_NO_RESULT:超时未反馈
  • ALARM_ERROR_ITEM_NOT_FOUND:未知商品
  • ALARM_ERROR_ESL_NOT_FOUND:无效价签
  • ALARM_ERROR_TEMPLATE_NOT_FOUND:未知模板
  • ALARM_ERROR_DRAW_PICTURE_FAILED:刷新模板失败
  • ALARM_ERROR_AP_OFFLINE_ERROR:基站掉线。
PageSize Integer 10

分页参数:每页显示条数,默认值10。

AlarmType String ALARM_TYPE_AP

报警类型,可选值:

  • ALARM_TYPE_AP:基站故障
  • ALARM_TYPE_ESL:价签故障。
AlarmStatus String ALARM_STATUS_WAITING

报警状态,可选值:

  • ALARM_STATUS_WAITING:待处理
  • ALARM_STATUS_OK_WITH_UNBIND:处理完成
    • 解绑价签
  • ALARM_STATUS_OK_WITH_RETRY:处理完成
    • 重试成功
  • ALARM_STATUS_OK_WITH_AP_ONLINE:处理完成
    • 基站恢复
  • ALARM_STATUS_OK_WITH_ESL_ONLINE:处理完成
    • 价签恢复。

返回数据

名称 类型 示例值 描述
Alarms Array

报警信息列表。

AlarmId String 123456

报警ID。

AlarmStatus String ALARM_STATUS_WAITING

报警状态,返回值对应关系:

  • ALARM_STATUS_WAITING:待处理
  • ALARM_STATUS_OK_WITH_UNBIND:处理完成
    • 解绑价签
  • ALARM_STATUS_OK_WITH_RETRY:处理完成
    • 重试成功
  • ALARM_STATUS_OK_WITH_AP_ONLINE:处理完成
    • 基站恢复
  • ALARM_STATUS_OK_WITH_ESL_ONLINE:处理完成
    • 价签恢复。
AlarmTime String 2019-12-23T09:11:45Z

报警时间,UTC格式。

AlarmType String ALARM_TYPE_AP

报警类型,返回值对应关系:

  • ALARM_TYPE_AP:基站故障
  • ALARM_TYPE_ESL:价签故障。
DealTime String 2019-12-23T09:11:45Z

处理时间。

DealUserId String 123456

处理人ID。

DeviceBarCode String 18bc5a631x23

设备条码。

DeviceMac String 18:bc:5a:63:1x:23

设备Mac。

DeviceType String esl

设备类型。

ErrorType String ALARM_ERROR_SEND_FAILED

报警类型,返回值对应关系:

  • ALARM_ERROR_SEND_FAILED:连接失败
  • ALARM_ERROR_DISPLAY_FAILED:刷新失败
  • ALARM_ERROR_TIMEOUT_WITH_NO_RESULT:超时未反馈
  • ALARM_ERROR_ITEM_NOT_FOUND:未知商品
  • ALARM_ERROR_ESL_NOT_FOUND:无效价签
  • ALARM_ERROR_TEMPLATE_NOT_FOUND:未知模板
  • ALARM_ERROR_DRAW_PICTURE_FAILED:刷新模板失败
  • ALARM_ERROR_AP_OFFLINE_ERROR:基站掉线。
ItemBarCode String 6905605836648

商品条码。

ItemTitle String iPhone 12

商品名称。

Remark String 测试数据

备注。

RetryGmtCreate String 2019-12-23T09:11:45Z

重试记录创建时间。

RetryGmtModified String 2019-12-23T09:11:45Z

重试记录修改时间。

RetryTimes Long 10

重试次数。

StoreId String s-dxsxxxxxx

门店ID。

Code String -1001

内部错误码。

DynamicCode String PlatformResponseError.%s

动态错误码。

DynamicMessage String The specified store %s does not exist.

动态消息。

ErrorCode String MandatoryParameters

错误码。

ErrorMessage String The specified resource type is invalid.

错误消息。

Message String success

消息。

PageNumber Integer 1

分页参数:当前页码。

PageSize Integer 10

分页参数:每页显示条数。

RequestId String E69C8998-1787-4999-8C75-D663FF1173CF

请求ID。

Success Boolean true

请求成功与否标识。

TotalCount Integer 100

总条数。

示例

请求示例

http(s)://cloudesl.cn-hangzhou.aliyuncs.com/?Action=DescribeAlarms
&StoreId=s-dxsxxxxxx 
&<公共请求参数>

正常返回示例

XML 格式

<code>200</code>
<data>
    <TotalCount>15</TotalCount>
    <PageSize>10</PageSize>
    <RequestId>C5237270-C1AD-4224-8448-5FB1780E536B</RequestId>
    <PageNumber>1</PageNumber>
    <Alarms>
        <AlarmId>2</AlarmId>
        <Brand>118928290064388096</Brand>
        <DeviceType>esl</DeviceType>
        <StoreId>s-ph5agdrw2k</StoreId>
        <ErrorType>ALARM_ERROR_SEND_FAILED</ErrorType>
        <AlarmTime>2019-12-23T09:11:45Z</AlarmTime>
        <ItemTitle>农夫山泉</ItemTitle>
        <AlarmType>ALARM_TYPE_ESL</AlarmType>
        <AlarmStatus>ALARM_STATUS_OK_WITH_RETRY</AlarmStatus>
        <ItemBarCode>6921168593002</ItemBarCode>
        <Vendor>ali</Vendor>
        <Remark>测试数据</Remark>
    </Alarms>
    <Alarms>
        <AlarmId>3</AlarmId>
        <Brand>118928290064388096</Brand>
        <DeviceType>esl</DeviceType>
        <StoreId>s-ph5agdrw2k</StoreId>
        <ErrorType>ALARM_ERROR_SEND_FAILED</ErrorType>
        <AlarmTime>2019-12-25T07:10:00Z</AlarmTime>
        <ItemTitle>光明纯牛奶</ItemTitle>
        <AlarmType>ALARM_TYPE_ESL</AlarmType>
        <AlarmStatus>ALARM_STATUS_OK_WITH_RETRY</AlarmStatus>
        <ItemBarCode>6905605836648</ItemBarCode>
        <Vendor>ali</Vendor>
        <Remark>测试数据</Remark>
    </Alarms>
    <Alarms>
        <AlarmId>15</AlarmId>
        <AlarmType>ALARM_TYPE_AP</AlarmType>
        <DeviceBarCode>18bc5a811ab9</DeviceBarCode>
        <DeviceMac>18bc5a811ab9</DeviceMac>
        <ItemBarCode>6921168593002</ItemBarCode>
        <Vendor>ali</Vendor>
        <Remark>测试数据</Remark>
        <Brand>118928290064388096</Brand>
        <DeviceType>esl</DeviceType>
        <StoreId>s-ph5agdrw2k</StoreId>
        <ErrorType>ALARM_ERROR_AP_OFFLINE_ERROR</ErrorType>
        <AlarmTime>2020-01-08T08:51:39Z</AlarmTime>
        <DealUserId>134434</DealUserId>
        <ItemTitle>农夫山泉</ItemTitle>
        <AlarmStatus>ALARM_STATUS_OK_WITH_UNBIND</AlarmStatus>
        <DealTime>2020-01-08T08:51:39Z</DealTime>
    </Alarms>
    <Alarms>
        <AlarmId>14</AlarmId>
        <AlarmType>ALARM_TYPE_AP</AlarmType>
        <DeviceBarCode>18bc5a811ab9</DeviceBarCode>
        <DeviceMac>18bc5a811ab9</DeviceMac>
        <ItemBarCode>6921168593002</ItemBarCode>
        <Vendor>ali</Vendor>
        <Remark>测试数据</Remark>
        <Brand>118928290064388096</Brand>
        <DeviceType>esl</DeviceType>
        <StoreId>s-ph5agdrw2k</StoreId>
        <ErrorType>ALARM_ERROR_AP_OFFLINE_ERROR</ErrorType>
        <AlarmTime>2020-01-08T08:51:27Z</AlarmTime>
        <DealUserId>134434</DealUserId>
        <ItemTitle>农夫山泉</ItemTitle>
        <AlarmStatus>ALARM_STATUS_OK_WITH_RETRY</AlarmStatus>
        <DealTime>2020-01-08T08:51:27Z</DealTime>
    </Alarms>
    <Alarms>
        <AlarmId>13</AlarmId>
        <AlarmType>2</AlarmType>
        <DeviceBarCode>18bc5a811ab9</DeviceBarCode>
        <DeviceMac>18bc5a811ab9</DeviceMac>
        <ItemBarCode>6921168593002</ItemBarCode>
        <Vendor>ali</Vendor>
        <Remark>测试数据</Remark>
        <Brand>118928290064388096</Brand>
        <DeviceType>esl</DeviceType>
        <StoreId>s-ph5agdrw2k</StoreId>
        <ErrorType>ALARM_ERROR_AP_OFFLINE_ERROR</ErrorType>
        <AlarmTime>2020-01-08T08:51:14Z</AlarmTime>
        <DealUserId>134434</DealUserId>
        <ItemTitle>农夫山泉</ItemTitle>
        <AlarmStatus>9</AlarmStatus>
        <DealTime>2020-01-08T08:51:14Z</DealTime>
    </Alarms>
    <Alarms>
        <AlarmId>12</AlarmId>
        <AlarmType>2</AlarmType>
        <DeviceBarCode>18bc5a811ab9</DeviceBarCode>
        <DeviceMac>18bc5a811ab9</DeviceMac>
        <ItemBarCode>6921168593002</ItemBarCode>
        <Vendor>ali</Vendor>
        <Remark>测试数据</Remark>
        <Brand>118928290064388096</Brand>
        <DeviceType>esl</DeviceType>
        <StoreId>s-ph5agdrw2k</StoreId>
        <ErrorType>ALARM_ERROR_AP_OFFLINE_ERROR</ErrorType>
        <AlarmTime>2020-01-08T08:51:04Z</AlarmTime>
        <DealUserId>134434</DealUserId>
        <ItemTitle>农夫山泉</ItemTitle>
        <AlarmStatus>8</AlarmStatus>
        <DealTime>2020-01-08T08:51:04Z</DealTime>
    </Alarms>
    <Alarms>
        <AlarmId>11</AlarmId>
        <AlarmType>2</AlarmType>
        <DeviceBarCode>18bc5a811ab9</DeviceBarCode>
        <DeviceMac>18bc5a811ab9</DeviceMac>
        <ItemBarCode>6921168593002</ItemBarCode>
        <Vendor>ali</Vendor>
        <Remark>测试数据</Remark>
        <Brand>118928290064388096</Brand>
        <DeviceType>esl</DeviceType>
        <StoreId>s-ph5agdrw2k</StoreId>
        <ErrorType>8</ErrorType>
        <AlarmTime>2020-01-08T08:50:44Z</AlarmTime>
        <DealUserId>134434</DealUserId>
        <ItemTitle>农夫山泉</ItemTitle>
        <AlarmStatus>8</AlarmStatus>
        <DealTime>2020-01-08T08:50:44Z</DealTime>
    </Alarms>
    <Alarms>
        <AlarmId>10</AlarmId>
        <AlarmType>ALARM_TYPE_ESL</AlarmType>
        <DeviceBarCode>18bc5a811ab9</DeviceBarCode>
        <DeviceMac>18bc5a811ab9</DeviceMac>
        <ItemBarCode>6921168593002</ItemBarCode>
        <Vendor>ali</Vendor>
        <Remark>测试数据</Remark>
        <Brand>118928290064388096</Brand>
        <DeviceType>esl</DeviceType>
        <StoreId>s-ph5agdrw2k</StoreId>
        <ErrorType>ALARM_ERROR_DRAW_PICTURE_FAILED</ErrorType>
        <AlarmTime>2020-01-08T08:50:21Z</AlarmTime>
        <DealUserId>134434</DealUserId>
        <ItemTitle>农夫山泉</ItemTitle>
        <AlarmStatus>9</AlarmStatus>
        <DealTime>2020-01-08T08:50:21Z</DealTime>
    </Alarms>
    <Alarms>
        <AlarmId>9</AlarmId>
        <AlarmType>ALARM_TYPE_ESL</AlarmType>
        <DeviceBarCode>18bc5a811ab9</DeviceBarCode>
        <DeviceMac>18bc5a811ab9</DeviceMac>
        <ItemBarCode>6921168593002</ItemBarCode>
        <Vendor>ali</Vendor>
        <Remark>测试数据</Remark>
        <Brand>118928290064388096</Brand>
        <DeviceType>esl</DeviceType>
        <StoreId>s-ph5agdrw2k</StoreId>
        <ErrorType>ALARM_ERROR_TEMPLATE_NOT_FOUND</ErrorType>
        <AlarmTime>2020-01-08T08:50:04Z</AlarmTime>
        <DealUserId>134434</DealUserId>
        <ItemTitle>农夫山泉</ItemTitle>
        <AlarmStatus>8</AlarmStatus>
        <DealTime>2020-01-08T08:50:04Z</DealTime>
    </Alarms>
    <Alarms>
        <AlarmId>8</AlarmId>
        <AlarmType>ALARM_TYPE_ESL</AlarmType>
        <DeviceBarCode>18bc5a811ab9</DeviceBarCode>
        <DeviceMac>18bc5a811ab9</DeviceMac>
        <ItemBarCode>6921168593002</ItemBarCode>
        <Vendor>ali</Vendor>
        <Remark>测试数据</Remark>
        <Brand>118928290064388096</Brand>
        <DeviceType>esl</DeviceType>
        <StoreId>s-ph5agdrw2k</StoreId>
        <ErrorType>ALARM_ERROR_ESL_NOT_FOUND</ErrorType>
        <AlarmTime>2020-01-08T08:49:48Z</AlarmTime>
        <DealUserId>134434</DealUserId>
        <ItemTitle>农夫山泉</ItemTitle>
        <AlarmStatus>ALARM_STATUS_OK_WITH_AP_ONLINE</AlarmStatus>
        <DealTime>2020-01-08T08:49:48Z</DealTime>
    </Alarms>
    <Success>true</Success>
</data>
<requestId>C5237270-C1AD-4224-8448-5FB1780E536B</requestId>
<successResponse>true</successResponse>

JSON 格式

{
    "code": 200,
    "data": {
        "TotalCount": 15,
        "PageSize": 10,
        "RequestId": "C5237270-C1AD-4224-8448-5FB1780E536B",
        "PageNumber": 1,
        "Alarms": [
            {
                "AlarmId": 2,
                "Brand": 118928290064388100,
                "DeviceType": "esl",
                "StoreId": "s-ph5agdrw2k",
                "ErrorType": "ALARM_ERROR_SEND_FAILED",
                "AlarmTime": "2019-12-23T09:11:45Z",
                "ItemTitle": "农夫山泉",
                "AlarmType": "ALARM_TYPE_ESL",
                "AlarmStatus": "ALARM_STATUS_OK_WITH_RETRY",
                "ItemBarCode": 6921168593002,
                "Vendor": "ali",
                "Remark": "测试数据"
            },
            {
                "AlarmId": 3,
                "Brand": 118928290064388100,
                "DeviceType": "esl",
                "StoreId": "s-ph5agdrw2k",
                "ErrorType": "ALARM_ERROR_SEND_FAILED",
                "AlarmTime": "2019-12-25T07:10:00Z",
                "ItemTitle": "光明纯牛奶",
                "AlarmType": "ALARM_TYPE_ESL",
                "AlarmStatus": "ALARM_STATUS_OK_WITH_RETRY",
                "ItemBarCode": 6905605836648,
                "Vendor": "ali",
                "Remark": "测试数据"
            },
            {
                "AlarmId": 15,
                "AlarmType": "ALARM_TYPE_AP",
                "DeviceBarCode": "18bc5a811ab9",
                "DeviceMac": "18bc5a811ab9",
                "ItemBarCode": 6921168593002,
                "Vendor": "ali",
                "Remark": "测试数据",
                "Brand": 118928290064388100,
                "DeviceType": "esl",
                "StoreId": "s-ph5agdrw2k",
                "ErrorType": "ALARM_ERROR_AP_OFFLINE_ERROR",
                "AlarmTime": "2020-01-08T08:51:39Z",
                "DealUserId": 134434,
                "ItemTitle": "农夫山泉",
                "AlarmStatus": "ALARM_STATUS_OK_WITH_UNBIND",
                "DealTime": "2020-01-08T08:51:39Z"
            },
            {
                "AlarmId": 14,
                "AlarmType": "ALARM_TYPE_AP",
                "DeviceBarCode": "18bc5a811ab9",
                "DeviceMac": "18bc5a811ab9",
                "ItemBarCode": 6921168593002,
                "Vendor": "ali",
                "Remark": "测试数据",
                "Brand": 118928290064388100,
                "DeviceType": "esl",
                "StoreId": "s-ph5agdrw2k",
                "ErrorType": "ALARM_ERROR_AP_OFFLINE_ERROR",
                "AlarmTime": "2020-01-08T08:51:27Z",
                "DealUserId": 134434,
                "ItemTitle": "农夫山泉",
                "AlarmStatus": "ALARM_STATUS_OK_WITH_RETRY",
                "DealTime": "2020-01-08T08:51:27Z"
            },
            {
                "AlarmId": 13,
                "AlarmType": 2,
                "DeviceBarCode": "18bc5a811ab9",
                "DeviceMac": "18bc5a811ab9",
                "ItemBarCode": 6921168593002,
                "Vendor": "ali",
                "Remark": "测试数据",
                "Brand": 118928290064388100,
                "DeviceType": "esl",
                "StoreId": "s-ph5agdrw2k",
                "ErrorType": "ALARM_ERROR_AP_OFFLINE_ERROR",
                "AlarmTime": "2020-01-08T08:51:14Z",
                "DealUserId": 134434,
                "ItemTitle": "农夫山泉",
                "AlarmStatus": 9,
                "DealTime": "2020-01-08T08:51:14Z"
            },
            {
                "AlarmId": 12,
                "AlarmType": 2,
                "DeviceBarCode": "18bc5a811ab9",
                "DeviceMac": "18bc5a811ab9",
                "ItemBarCode": 6921168593002,
                "Vendor": "ali",
                "Remark": "测试数据",
                "Brand": 118928290064388100,
                "DeviceType": "esl",
                "StoreId": "s-ph5agdrw2k",
                "ErrorType": "ALARM_ERROR_AP_OFFLINE_ERROR",
                "AlarmTime": "2020-01-08T08:51:04Z",
                "DealUserId": 134434,
                "ItemTitle": "农夫山泉",
                "AlarmStatus": 8,
                "DealTime": "2020-01-08T08:51:04Z"
            },
            {
                "AlarmId": 11,
                "AlarmType": 2,
                "DeviceBarCode": "18bc5a811ab9",
                "DeviceMac": "18bc5a811ab9",
                "ItemBarCode": 6921168593002,
                "Vendor": "ali",
                "Remark": "测试数据",
                "Brand": 118928290064388100,
                "DeviceType": "esl",
                "StoreId": "s-ph5agdrw2k",
                "ErrorType": 8,
                "AlarmTime": "2020-01-08T08:50:44Z",
                "DealUserId": 134434,
                "ItemTitle": "农夫山泉",
                "AlarmStatus": 8,
                "DealTime": "2020-01-08T08:50:44Z"
            },
            {
                "AlarmId": 10,
                "AlarmType": "ALARM_TYPE_ESL",
                "DeviceBarCode": "18bc5a811ab9",
                "DeviceMac": "18bc5a811ab9",
                "ItemBarCode": 6921168593002,
                "Vendor": "ali",
                "Remark": "测试数据",
                "Brand": 118928290064388100,
                "DeviceType": "esl",
                "StoreId": "s-ph5agdrw2k",
                "ErrorType": "ALARM_ERROR_DRAW_PICTURE_FAILED",
                "AlarmTime": "2020-01-08T08:50:21Z",
                "DealUserId": 134434,
                "ItemTitle": "农夫山泉",
                "AlarmStatus": 9,
                "DealTime": "2020-01-08T08:50:21Z"
            },
            {
                "AlarmId": 9,
                "AlarmType": "ALARM_TYPE_ESL",
                "DeviceBarCode": "18bc5a811ab9",
                "DeviceMac": "18bc5a811ab9",
                "ItemBarCode": 6921168593002,
                "Vendor": "ali",
                "Remark": "测试数据",
                "Brand": 118928290064388100,
                "DeviceType": "esl",
                "StoreId": "s-ph5agdrw2k",
                "ErrorType": "ALARM_ERROR_TEMPLATE_NOT_FOUND",
                "AlarmTime": "2020-01-08T08:50:04Z",
                "DealUserId": 134434,
                "ItemTitle": "农夫山泉",
                "AlarmStatus": 8,
                "DealTime": "2020-01-08T08:50:04Z"
            },
            {
                "AlarmId": 8,
                "AlarmType": "ALARM_TYPE_ESL",
                "DeviceBarCode": "18bc5a811ab9",
                "DeviceMac": "18bc5a811ab9",
                "ItemBarCode": 6921168593002,
                "Vendor": "ali",
                "Remark": "测试数据",
                "Brand": 118928290064388100,
                "DeviceType": "esl",
                "StoreId": "s-ph5agdrw2k",
                "ErrorType": "ALARM_ERROR_ESL_NOT_FOUND",
                "AlarmTime": "2020-01-08T08:49:48Z",
                "DealUserId": 134434,
                "ItemTitle": "农夫山泉",
                "AlarmStatus": "ALARM_STATUS_OK_WITH_AP_ONLINE",
                "DealTime": "2020-01-08T08:49:48Z"
            }
        ],
        "Success": true
    },
    "requestId": "C5237270-C1AD-4224-8448-5FB1780E536B",
    "successResponse": true
}

错误码

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