27.2.4.2 getAlarmSumAndCount

 

Get alarm summary

AlarmSumExecuteResultgetAlarmSumAndCount(string lid, string projectName, string start, string count, long interval)

 

Push notification method:

dispatchAlmSumValues

 

Parameter:

Ø lid : customized connection id

Ø projectName : Project name

Ø start : Start record to be read

Ø count : Number of record to be read

Ø interval : the push interval in milliseconds(value is 0 if realtime)

 

Return value:

Ø   AlarmSumExecuteResult : return status and AlarmSumExecuteResult objects

{

          "totalCount":"3",

          "alarmSummaries":[{

                 "ackStatus":1,

                 "alarmGroup":0,

                 "alarmPriority":9,

                 "name":"DO-01",

                 "time":"15/4/30 9:31:30",

                 "alarmValue":1.0,

                 "alarmLimit":1.0,

                 "alarmType":9,

                 "locked":0,

                 "nodeName":"RT"

                 },

                 {

                 "ackStatus":1,

                 "alarmGroup":0,

                 "alarmPriority":10,

                 "name":"AI-02",

                 "time":"15/4/29 11:22:3",

                 "alarmValue":0.0,

                 "alarmLimit":100.0,

                 "alarmType":3,

                 "locked":0,

                 "nodeName":"RT"

                 },

                 {

                 "ackStatus":1,

                 "alarmGroup":0,

                 "alarmPriority":10,

                 "name":"DI-01",

                 "time":"15/4/29 11:22:3",

                 "alarmValue":0.0,

                 "alarmLimit":0.0,

                 "alarmType":8,

                 "locked":0,

                 "nodeName":"RT"

          }],

          "resStatus":"0",

          "resString":null

}

 

Field Name

Description

resStatus

Return code

resString

Return message

totalCount

Total alarm summary

alarmSummaries

Alarm summary

Field Name

Description

name

Tag name

time

Alarm time

alarmPriority

Alarm Priority

ackStatus

Alarm ack status (0:In normal unacked; 1:Unacked; 2: Acked)

alarmGroup

Alarm Group

alarmValue

Alarm Value

alarmLimit

Alarm Limit

alarmType

Alarm Type

0 : No Alarm

1 : HiHi Alarm

2 : High Alarm

3 : Low Alarm

4 : LoLo Alarm

5 : ROC Alarm

6 : DevH Alarm

7 : DevL Alarm

8 : Discrete 0 Alarm

9 : Discrete 1 Alarm

10 : Discrete 2 Alarm

11 : Discrete 3 Alarm

12 : Discrete 4 Alarm

13 : Discrete 5 Alarm

14 : Discrete 6 Alarm

15 : Discrete 7 Alarm

locked

Alarm locke (1:Locked; 0: Unlock)

nodeName

Node Name