Project

General

Profile

Feature #954

实时告警redis相关接口

Added by pengfei xu about 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
11/06/2020
Due date:
11/18/2020
% Done:

100%

Estimated time:
50.00 h
Defect version:

Description

实时告警由实时库存储方式更改为redis方式,redis需要实现功能:增加、删除、修改、查找、读取
实时告警有4个关键字(Date、Msec、DevKey、ClassName),总共29个字段(列);
增加:就是往redis里面增加一条告警,发给redis一个SBBD(定义在下面)结构体,redis则返回成功或者失败;
删除:根据4个关键字确定唯一的一条告警,删除记录,发送4个关键字,redis返回成功或者失败;
修改:根据4个关键字,修改这条告警的内容(比如描述、确认时间、恢复时间等),发送opt、AlmStatus、rsttime、rstms、acktime、ackms、acker、chardesc;
查找:根据发送的4个关键字,查找告警记录,redis返回查找到的告警的所有字段,
读取:通过接口读取所有的告警,结果是按照时间从小到大排列;

redis使用哨兵模式;

redis部署方式修改;

History

#1

Updated by pengfei xu about 4 years ago

  • Status changed from New to In Progress
#2

Updated by pengfei xu about 4 years ago

  • Description updated (diff)
  • Due date changed from 11/13/2020 to 11/18/2020
  • % Done changed from 0 to 70
#3

Updated by xiangyang li about 4 years ago

  • Target version changed from 3.0.3 to 3.1
#4

Updated by pengfei xu about 4 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 70 to 100

Also available in: Atom PDF