Skip to main content Module window Copy item path Source ModelUsage Report Totals DAY_SECS FIVE_HOUR_SECS LOOKBACK_SECS How far back to read when inferring the anniversary. WEEKLY_SECS before_day_end Is at_ms on or before the end of the YYYY-MM-DD day? Used for promo
coefficients, which the docs publish as dates. build Build the report: window totals plus a per-model breakdown for the period. calendar_month_start Start of the calendar month, 00:00 UTC — the predictable default when no
meter names the anniversary. days_from_civil month_start Start of the billing month from the first plan request, else the calendar
month. Returns (start, inferred). month_start_before The subscription month’s start from the meter’s own reset instant. next_month The same day-of-month one month later, 00:00 UTC, in epoch ms; the year
wraps and the day is clamped to 28 so an anniversary on the 29th–31st cannot
skip a month. now_ms Wall-clock now in epoch ms.