| | |
| | | */ |
| | | int getLastInsertId(); |
| | | |
| | | /** |
| | | * 通过事件id解除报警(更新结束时间) |
| | | * @param alarmEventId 事件ID |
| | | * @param endTime 结束时间 |
| | | * @return 成功返回true,失败返回false |
| | | */ |
| | | bool clearAlarmByEventId(int alarmEventId, const std::string& endTime); |
| | | |
| | | /** |
| | | * 通过多个属性查找并解除报警(更新结束时间) |
| | | * @param nId 报警ID |
| | | * @param nSeverityLevel 报警等级 |
| | | * @param nDeviceId 设备ID |
| | | * @param nUnitId 单元ID |
| | | * @param strDescription 描述 |
| | | * @param endTime 结束时间 |
| | | * @return 成功返回true,失败返回false |
| | | */ |
| | | bool clearAlarmByAttributes(int nId, int nSeverityLevel, int nDeviceId, int nUnitId, const std::string& strDescription, const std::string& endTime); |
| | | |
| | | /** |
| | | * 读取报警文件 |
| | | * @param filename 文件名 |