internal

Snapshot yesterday's per-org request counts from Redis to daily_usage

Read Redis quota_day:org:<uuid>:<YYYY-MM-DD> counters and UPSERT into public.daily_usage for yesterday (UTC). Runs 00:05 UTC daily per 0015_daily_usage_pg_cron.sql. The Redis counters live 48h so yesterday's bucket is still readable when this fires.

Anonymous (ip:*) buckets are intentionally skipped — they have no foreign key target in organizations. Orgs with zero daily count still get a row so the dashboard can distinguish "quiet day" from "no data yet."

post/internal/cron/daily-usage-snapshot

Headers

x-internal-secretstring nullable

Response

Successful Response

object required

Changes

Changed in 1 of the 8 revisions of this API.13

  • b7c4b36e1fa113See the full diff
    • removed the optional property from the response with the status

      response-optional-property-removed

    • added the required property to the response with the status

      response-required-property-added

    • added the required property to the response with the status

      response-required-property-added

    • added the required property to the response with the status

      response-required-property-added

    This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog