calculateIngressExpiry
calculateIngressExpiry(
maxIngressExpiryInMinutes
,timeDiffMsecs
):Expiry
Defined in: packages/agent/src/agent/http/index.ts:1398
Calculates the ingress expiry time based on the maximum allowed expiry in minutes and the time difference in milliseconds. The expiry is rounded down according to the Expiry.fromDeltaInMilliseconds method.
maxIngressExpiryInMinutes
Section titled “maxIngressExpiryInMinutes”number
The maximum ingress expiry time in minutes.
timeDiffMsecs
Section titled “timeDiffMsecs”number
The time difference in milliseconds to adjust the expiry.
Returns
Section titled “Returns”The calculated ingress expiry as an Expiry object.