@salesforce/b2c-tooling-sdk / operations/metrics / METRICS_RETENTION_SAFETY_MARGIN_MS
Variable: METRICS_RETENTION_SAFETY_MARGIN_MS
constMETRICS_RETENTION_SAFETY_MARGIN_MS:number
Defined in: packages/b2c-tooling-sdk/src/operations/metrics/index.ts:176
Safety margin kept inside the retention window when clamping from. Because the server evaluates retention against its own clock at request time, a from computed as exactly "30 days ago" on the client is reliably rejected once request latency and client/server clock skew are added. resolveMetricsWindow therefore clamps a from that lands within this margin of the retention floor up to now - 30 days + margin, so edge requests (e.g. --from 30d) succeed. 5 minutes comfortably covers latency and typical skew while costing a negligible fraction of the 30-day window.