cswap-bend-cli
Search uses release 0.1.0.0 · 4,210 definitions
Definitions (4,210)
- type SnapWhat the last switch recorded (autoswitch_state.json): the headroom and binding recovery of the account it left, and the trigger.
- type State
- type MemThe engine's in-memory counters: consecutive unhealthy ticks, and when the idle hold for an expired token began.
- type Reason
- type ModeHow the target was ranked: by headroom (`MHead`), by weekly reset (consume-first, `MReset`), by recovery (all accounts above the threshold: `MRec0` back soon, `MRec1` back late, `MFallback` the one-way fallback), or as the last-resort API-key account (`MApiLast`).
- type Decision`Switch.rec` is the winner's ranking time (reset or recovery) when the mode ranks by one; `bar` is the no-return bar that applied to this pick.
- def full
- def default_config
- def fresh_state
- def fresh_mem
- def reason.name.more
- def reason.name
- def trigger.name
- def reason.exitExit codes of `auto --once`: 0 switched, 2 no action, 3 blocked.
- def exit_code
- def pct.two
- def pct.frac.pair
- def pct.frac
- def pct.label.pair
- def pct.label4000 -> "40", 8550 -> "85.5": the reference's `%.10g` for two-digit inputs.
- def win.opt
- def win.keep
- def model.wanted`n` is lowercase; the configured name is lowercased here.
- def win.scoped.one
- def win.scoped
- def windowsThe relevant windows, in API order: 5h, 7d, then the wanted scoped ones.
- def win.max.step
- def win.max
- def head.of
- def headroom.raw100 - max(pct) over the relevant windows; None with no windows.
- def err.is_none
- def before.opt
- def fresh.extTrust is extended while the row is failing (consecutive failures > 0, as the reference), planned, held or claimed.
- def win.reset
- def soon.min
- def win.soonestThe soonest reset among the relevant windows (past ones included): once it passes, that window is zeroed and the snapshot is obsolete.
- def soon.okNo window reset known: only the age ceiling applies.
- def within.ceilingHow long a failing row's reading may be trusted.
- def fresh.age
- def fresh.atA reading is decision-grade when it is at most 300 s old, or its trust is extended (the row is failing, planned, held or claimed) and within the ceiling of `within.ceiling`.
- def fresh
- def sent.none
- def trustedA decision-grade reading: fresh, and not hidden behind a sentinel.
- def head.if
- def headroomThe decision value of an account: None when there is no trusted reading or the reading carries no relevant window.
- def usage.slot
- def usage.backoff_until
- def in_backoff
- def usage.sentinel
- def usage.of.pick
- def usage.ofThe first usage row of a slot; None is "no reading".
- def account.slot
- def account.of.pick
- def account.of
- def head.rowHeadroom of a row, if there is a row.
- def poll.stale
- def poll.planned_due
- def poll.oversleptnext_poll_at lies further out than max(interval, 600) * 1.1 + 60 s.
- def poll.unplanned
- def poll.ready
- def poll.gate
- def poll_dueIs this row due a fetch on a scheduled auto tick?
- def backoff.cap
- def backoff.zero
- def backoff.bump
- def backoff.asked
- def backoff.some
- def backoff.retry.some
- def backoff.rate_limited
- def backoff.retry
- def backoff_forSeconds of backoff after the n-th consecutive failure: 30, 60, 120, 240, 480, 600; a server's Retry-After raises it (Retry-After 0 on an http-429 means at least 300 s).