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
|