1 Reply Latest reply on Jan 19, 2018 11:43 AM by adharuman RSS
    adharuman Newbie

    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?



    Arunkumar D