idmap.getOldIdmaps
idmap.getOldIdmaps(ep, threshold)
Description
Returns a list of all idmaps that are older than the threshold date.
Parameters
| Parameter | Type | Explanation |
|---|---|---|
| ep | String | The endpoint |
| threshold | Date | The date that the idmap needs to be older than |
Example
idmap = option.getIdmap()
originendpoint = message.getEndpoint()
date = Date(message.event.timestamp) // Creates a Date object from a NormalizedAlarm message in epoch seconds
println idmap.getOldIdmaps(originendpoint, date)