Skip to main content

idmap.getOldIdmaps

idmap.getOldIdmaps(ep, threshold)

Description

Returns a list of all idmaps that are older than the threshold date.

Parameters

ParameterTypeExplanation
epStringThe endpoint
thresholdDateThe 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)