CoAgent8 - Source API
    Preparing search index...

    Function summarizeQuotaWindows

    • Summarizes usage windows by their bottleneck: the window with the least headroom.

      Parameters

      • windows: readonly QuotaWindow[]

        Windows measured by one provider.

      Returns
          | {
              buckets?: {
                  id: string;
                  name: string;
                  remainingFraction: number;
                  resetTime: string;
                  window: string;
              }[];
              headroomPercent?: number
              | null;
              measured: boolean;
              resetsAt?: string | null;
              usedPercent?: number | null;
              window?: string;
          }
          | undefined

      The measured quota, or undefined when no window was measured.