cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

List alarms based on state change date

adharuman
1-Visitor

List alarms based on state change date

The following code fetches the list of alarms that was created between those specified dates which are now in closed state.

def alarmCriteria = new AlarmCriteria()

alarmCriteria.state = AlarmState.CLOSED

def betweenQuery = new BetweenDateQuery()

betweenQuery.start = Date.parse('yyyy-MM-dd', '2017-03-26 ')

betweenQuery.end = Date.parse('yyyy-MM-dd', '2017-03-27')

alarmCriteria.date = betweenQuery

results = alarmBridge.find(alarmCriteria)

How to fetch the list of alarms that was closed during the specified date interval?

Regards

Arunkumar D

http://www.arundhaj.com/

1 REPLY 1
AdamR
14-Alexandrite
(To:adharuman)

Arunkumar,

Are these alarms that are stored in a stream/datatable or in the system alters stream?  Depending on this it will be different methods to access or update anything.


Thanks,
Adam

Announcements


Top Tags