I'm using this script in a button to acknowledge all alarms. What do I need to add to it so it will acknowledge only the most recent 3 alarms?
ids = [str(event.id) for event in system.alarm.queryStatus(state=["ActiveUnacked", "ClearUnacked"])]
system.alarm.acknowledge(ids,'', "admin")
much appreciated