Sidereon.GNSS.Staleness.Policy (Sidereon v0.8.0)

Copy Markdown View Source

Staleness cap for product selection.

A selection that would rely on a product older than max_staleness_s fails with {:beyond_staleness_cap, info} rather than returning data past the cap. The default cap is three days, which spans the typical rapid/predicted product latency plus a weekend gap.

Summary

Functions

A policy with the cap expressed in days.

The default policy: a three-day staleness cap.

A policy with the cap expressed in seconds.

Types

t()

@type t() :: %Sidereon.GNSS.Staleness.Policy{max_staleness_s: float()}

Functions

days(days)

@spec days(number()) :: t()

A policy with the cap expressed in days.

default()

@spec default() :: t()

The default policy: a three-day staleness cap.

seconds(seconds)

@spec seconds(number()) :: t()

A policy with the cap expressed in seconds.