Skip to main content

设备告警

设备告警接口​

当前告警数量统计​

接口描述​

根据用户 token 获取告警信息

请求方式​

GET

请求方法​

/sol_monitor/alarm/home/chart

返回示例

200 Response

{
"success": true,
"message": "操作成功!",
"code": 200,
"result": {
"warning_count": 37,
"fault_count": 1
},
"timestamp": 1749448443965
}

返回结果​

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构​

状态码 200

名称类型必选约束中文名说明
» successbooleantruenonenone
» messagestringtruenonenone
» codeintegertruenonenone
» resultobjecttruenonenone
»» warning_countintegertruenone预警数量none
»» fault_countintegertruenone故障数量none
» timestampintegertruenonenone

当前告警-告警数量排行​

接口描述​

根据图表类型和设备数量获取当前告警 top6 的告警信息

请求方式​

GET

请求方法​

/sol_monitor/alarm/home/countTopChart

请求参数​

名称位置类型必选说明
chartTypequerystring是图表类型:1 设备排名,0 电站排名
countquerystring是告警数量

返回示例

200 Response

{
"success": true,
"message": "操作成功!",
"code": 200,
"result": [
{
"duration": 141020318,
"plantId": "43301",
"label": "联通家具采集器02",
"plantName": "浙江联通家具"
},
{
"duration": 110493468,
"plantId": "43301",
"label": "联通家具采集器01",
"plantName": "浙江联通家具"
},
{
"duration": 73658524,
"plantId": "42764",
"label": "增城平安采集器01-04",
"plantName": "*广州增城平安"
},
{
"duration": 73657924,
"plantId": "42764",
"label": "增城平安采集器05-08",
"plantName": "*广州增城平安"
},
{
"duration": 70645893,
"plantId": "42849",
"label": "宁波戴卡采集器01",
"plantName": "宁波戴卡"
},
{
"duration": 36828766,
"plantId": "37808",
"label": "温州凯泉采集器01",
"plantName": "*温州凯泉"
}
],
"timestamp": 1749448443900
}

返回结果​

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构​

状态码 200

名称类型必选约束中文名说明
» successbooleantruenonenone
» messagestringtruenonenone
» codeintegertruenonenone
» result[object]truenonenone
»» durationintegertruenone持续时长none
»» plantIdstringtruenone电站 IDnone
»» labelstringtruenone设备名称none
»» plantNamestringtruenone电站名称none
» timestampintegertruenonenone

当前告警-持续时长排行​

接口描述​

根据图表类型和设备数量获取当前持续时长 top6 的信息

请求方式​

GET

请求方法​

/sol_monitor/alarm/home/durationTopChart

请求参数​

名称位置类型必选说明
chartTypequerystring是图表类型:1 设备排名,0 电站排名
countquerystring是none

返回示例

200 Response

{
"success": true,
"message": "操作成功!",
"code": 200,
"result": [
{
"duration": 141025750,
"plantId": "43301",
"label": "联通家具采集器02",
"plantName": "浙江联通家具"
},
{
"duration": 110497542,
"plantId": "43301",
"label": "联通家具采集器01",
"plantName": "浙江联通家具"
},
{
"duration": 73661240,
"plantId": "42764",
"label": "增城平安采集器01-04",
"plantName": "*广州增城平安"
},
{
"duration": 73660640,
"plantId": "42764",
"label": "增城平安采集器05-08",
"plantName": "*广州增城平安"
},
{
"duration": 70648609,
"plantId": "42849",
"label": "宁波戴卡采集器01",
"plantName": "宁波戴卡"
},
{
"duration": 36830124,
"plantId": "37808",
"label": "温州凯泉采集器01",
"plantName": "*温州凯泉"
}
],
"timestamp": 1749449122283
}

返回结果​

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构​

状态码 200

名称类型必选约束中文名说明
» successbooleantruenonenone
» messagestringtruenonenone
» codeintegertruenonenone
» result[object]truenonenone
»» durationintegertruenone持续时长none
»» plantIdstringtruenone电站 IDnone
»» labelstringtruenone设备名称none
»» plantNamestringtruenone电站名称none
» timestampintegertruenonenone

当前告警列表接口​

接口描述​

获取当前告警列表数据

请求方式​

GET

请求方法​

/sol_monitor/alarm/home/list

请求参数​

名称位置类型必选说明
alarmLevelquerystring否告警等级
alarmStatusquerystring否告警状态
paramquerystring否关键字
pagequerystring否页数
pageSizequerystring否页码
deviceTypeArrqueryarray[string]否设备类型:【0:逆变器,1:电表,2:采集器,11:机器人】
beginquerystring否开始时间
endquerystring否结束时间

返回示例

200 Response

{
"success": true,
"message": "操作成功!",
"code": 200,
"result": {
"content": [
{
"id": 106178,
"createTime": "2025-06-05 17:15:27",
"updateTime": "2025-06-05 17:15:27",
"alarmNumber": null,
"deviceSn": "202310125831_23",
"deviceId": "60113",
"deviceName": "2NB03",
"plantId": "43541",
"alarmLevel": 2,
"alarmStatus": 1,
"alarmDes": "遥信43(接触器故障)",
"alarmTime": "2025-06-05 17:15:20",
"alarmEndTime": null,
"plantName": "*联盛-上海新松机器人二期",
"deviceType": 0,
"errorCode": "280000_1.000",
"duration": 334202,
"alarmKey": null,
"plantType": 0,
"time": null,
"troubleshootingMethod": "",
"downDeviceSn": null
}
],
"pageable": {
"sort": {
"sorted": false,
"unsorted": true,
"empty": true
},
"pageSize": 20,
"pageNumber": 0,
"offset": 0,
"paged": true,
"unpaged": false
},
"totalElements": 52,
"totalPages": 3,
"last": false,
"first": true,
"sort": {
"sorted": false,
"unsorted": true,
"empty": true
},
"numberOfElements": 20,
"size": 20,
"number": 0,
"empty": false
},
"timestamp": 1749449122404
}

返回结果​

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构​

状态码 200

名称类型必选约束中文名说明
» successbooleantruenonenone
» messagestringtruenonenone
» codeintegertruenonenone
» resultobjecttruenonenone
»» content[object]truenonenone
»»» idintegerfalsenoneidnone
»»» createTimestringfalsenone创建时间none
»»» updateTimestringfalsenone更新时间none
»»» alarmNumbernullfalsenone告警数量none
»»» deviceSnstringfalsenone设备 snnone
»»» deviceIdstringfalsenone设备 idnone
»»» deviceNamestringfalsenone设备名称none
»»» plantIdstringfalsenone电站 idnone
»»» alarmLevelintegerfalsenone告警等级none
»»» alarmStatusintegerfalsenone告警状态1:进行中 2:已结束
»»» alarmDesstringfalsenone告警描述none
»»» alarmTimestringfalsenone告警时间none
»»» alarmEndTimenullfalsenone告警结束时间none
»»» plantNamestringfalsenone电站名称none
»»» deviceTypeintegerfalsenone设备类型none
»»» errorCodestringfalsenone错误码none
»»» durationintegerfalsenone持续时长none
»»» alarmKeynullfalsenonenone
»»» plantTypeintegerfalsenone电站类型none
»»» timenullfalsenone时间none
»»» troubleshootingMethodstringfalsenone排查方法none
»»» downDeviceSnnullfalsenone下位机设备 SNnone
»» pageableobjecttruenonenone
»»» sortobjecttruenonenone
»»»» sortedbooleantruenonenone
»»»» unsortedbooleantruenonenone
»»»» emptybooleantruenonenone
»»» pageSizeintegertruenonenone
»»» pageNumberintegertruenonenone
»»» offsetintegertruenonenone
»»» pagedbooleantruenonenone
»»» unpagedbooleantruenonenone
»» totalElementsintegertruenonenone
»» totalPagesintegertruenonenone
»» lastbooleantruenonenone
»» firstbooleantruenonenone
»» sortobjecttruenonenone
»»» sortedbooleantruenonenone
»»» unsortedbooleantruenonenone
»»» emptybooleantruenonenone
»» numberOfElementsintegertruenonenone
»» sizeintegertruenonenone
»» numberintegertruenonenone
»» emptybooleantruenonenone
» timestampintegertruenonenone

电站详情-告警​

告警记录列表​

接口描述​

根据电站 ID 等获取电站详情的告警数据

请求方式​

GET

请求方法​

/sol_monitor/alarm/device/list

请求参数​

名称位置类型必选说明
plantIdquerystring是电站 id
pagequerystring是页数
pageSizequerystring是页码
alarmLevelquerystring否告警等级
paramquerystring否关键字
beginquerystring否开始时间
dataTypequerystring否类型:null: 总, MONTH:月, YEAR:年
plantTypequerystring否none

返回示例

200 Response

{
"success": true,
"message": "操作成功!",
"code": 200,
"result": {
"content": [
{
"id": 103223,
"createTime": "2025-03-28 16:48:09",
"updateTime": "2025-03-28 17:01:14",
"alarmNumber": null,
"deviceSn": "WVH73A",
"deviceId": "11035",
"deviceName": "WVH73A",
"plantId": "37808",
"alarmLevel": 1,
"alarmStatus": 1,
"alarmDes": "SmartPVLog:运行内存不足预警",
"alarmTime": "2025-03-28 16:47:03",
"alarmEndTime": null,
"plantName": "*温州凯泉",
"deviceType": 2,
"errorCode": "2",
"duration": 6299406,
"alarmKey": null,
"plantType": null,
"time": null,
"troubleshootingMethod": "错误码:2,运行内存不足预警",
"downDeviceSn": ""
}
],
"pageable": {
"sort": {
"sorted": false,
"unsorted": true,
"empty": true
},
"pageSize": 20,
"pageNumber": 0,
"offset": 0,
"paged": true,
"unpaged": false
},
"totalElements": 1286,
"totalPages": 65,
"last": false,
"first": true,
"sort": {
"sorted": false,
"unsorted": true,
"empty": true
},
"numberOfElements": 20,
"size": 20,
"number": 0,
"empty": false
},
"timestamp": 1749451029505
}

返回结果​

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构​

状态码 200

名称类型必选约束中文名说明
» successbooleantruenonenone
» messagestringtruenonenone
» codeintegertruenonenone
» resultobjecttruenonenone
»» content[object]truenonenone
»»» idintegertruenoneidnone
»»» createTimestringtruenone创建时间none
»»» updateTimestringtruenone更新时间none
»»» alarmNumbernulltruenone告警数量none
»»» deviceSnstringtruenone设备 snnone
»»» deviceIdstringtruenone设备 idnone
»»» deviceNamestringtruenone设备名称none
»»» plantIdstringtruenone电站 idnone
»»» alarmLevelintegertruenone告警等级none
»»» alarmStatusintegertruenone告警状态none
»»» alarmDesstringtruenone告警描述none
»»» alarmTimestringtruenone告警时间none
»»» alarmEndTimenulltruenone告警结束时间none
»»» plantNamestringtruenone电站名称none
»»» deviceTypeintegertruenone设备类型none
»»» errorCodestringtruenone错误码none
»»» durationintegertruenone持续时长none
»»» alarmKeynulltruenonenone
»»» plantTypenulltruenone电站类型none
»»» timenulltruenone时间none
»»» troubleshootingMethodstringtruenone排查方法none
»»» downDeviceSnstringtruenone下位机设备 SNnone
»» pageableobjecttruenonenone
»»» sortobjecttruenonenone
»»»» sortedbooleantruenonenone
»»»» unsortedbooleantruenonenone
»»»» emptybooleantruenonenone
»»» pageSizeintegertruenonenone
»»» pageNumberintegertruenonenone
»»» offsetintegertruenonenone
»»» pagedbooleantruenonenone
»»» unpagedbooleantruenonenone
»» totalElementsintegertruenonenone
»» totalPagesintegertruenonenone
»» lastbooleantruenonenone
»» firstbooleantruenonenone
»» sortobjecttruenonenone
»»» sortedbooleantruenonenone
»»» unsortedbooleantruenonenone
»»» emptybooleantruenonenone
»» numberOfElementsintegertruenonenone
»» sizeintegertruenonenone
»» numberintegertruenonenone
»» emptybooleantruenonenone
» timestampintegertruenonenone

告警统计-排名列表​

接口描述​

根据电站 ID 等 获取告警排名列表数据

请求方式​

GET

请求方法​

/sol_monitor/alarm/device/rank

请求参数​

名称位置类型必选说明
plantIdquerystring是电站 id
alarmLevelquerystring是告警等级 1.预警 2.故障
typequerystring是类型:null: 至今, 0:月, 1:年
datequerystring否时间

返回示例

200 Response

{
"success": true,
"message": "操作成功!",
"code": 200,
"result": [
{
"inverterName": "P1-R1-NB06",
"count": 395,
"leave": 1,
"deviceId": 54821,
"deviceType": 0
},
{
"inverterName": "P1-R1-NB05",
"count": 386,
"leave": 1,
"deviceId": 54820,
"deviceType": 0
},
{
"inverterName": "温州凯泉采集器01",
"count": 15,
"leave": 1,
"deviceId": 10890,
"deviceType": 2
},
{
"inverterName": "P1-R1-NB07",
"count": 2,
"leave": 2,
"deviceId": 54822,
"deviceType": 0
},
{
"inverterName": "P1-R1-NB01",
"count": 1,
"leave": 1,
"deviceId": 54817,
"deviceType": 0
}
],
"timestamp": 1749451029225
}

返回结果​

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构​

状态码 200

名称类型必选约束中文名说明
» successbooleantruenonenone
» messagestringtruenonenone
» codeintegertruenonenone
» result[object]truenonenone
»» inverterNamestringtruenone逆变器名称none
»» countintegertruenone数量none
»» leaveintegertruenone告警等级:1 预警 2 故障none
»» deviceIdintegertruenone设备 idnone
»» deviceTypeintegertruenone设备类型none
» timestampintegertruenonenone

告警统计-分布图表​

接口描述​

根据电站 ID,设备类型等获取告警分布图表数据

请求方式​

GET

请求方法​

/sol_monitor/alarm/plant/chart

请求参数​

名称位置类型必选说明
inverterIdquerystring是逆变器 id
deviceTypequerystring是设备类型(0:逆变器)
typequerystring否类型:null: 至今, 0:月, 1:年
datequerystring否时间
alarmLevelquerystring否告警等级 1.预警 2.故障

返回示例

200 Response

{
"success": true,
"message": "操作成功!",
"code": 200,
"result": [
{
"count": 379,
"alarm_number": "684",
"alarm_des": "PV 异常告警"
},
{
"alarm_des": "PV 异常告警",
"count": 16,
"alarm_number": "50"
}
],
"timestamp": 1749451029321
}

返回结果​

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构​

状态码 200

名称类型必选约束中文名说明
» successbooleantruenonenone
» messagestringtruenonenone
» codeintegertruenonenone
» result[object]truenonenone
»» countintegertruenone告警数量none
»» alarm_numberstringtruenone告警名称none
»» alarm_desstringtruenone告警描述none
» timestampintegertruenonenone

数据模型