27.1.11.4  GetAlarmLogIndex

Since the maximum count of alarm log in WebAccess is 5000, while the total number of alarm log above 5000, WebAccess will circularly overwrite the first record and so on. Using GetAlarmLogIndex service can get newest record’s index position (between 1~5000). You can use this service periodically and compare the index with previous index. If the index position has been changed, it means that the Alarm Log has been updated.

 

HTTP Method: GET

XML URL: http://localhost/WaWebService/GetAlarmLogIndex/{ProjectName}/{NodeName}

JSON URL: http://localhost/WaWebService/Json/GetAlarmLogIndex/{ProjectName}/{NodeName}

XML Response:

<Result>

  <Ret>Value</Ret>

  <Index>Value</Index>

</Result>

JSON Response:

{

         “Ret”:Value,

         “Index”:Value

}