Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Type Alias InstitutionReport

    an observed change, then the three results of the capacity plan; none is added to another and any can be null or read zero

    type InstitutionReport = {
        economics:
            | {
                cases: {
                    kwhPerSite: number;
                    mwh: number;
                    name: "peak"
                    | "production"
                    | "floor";
                    usdCommercial: number;
                    usdIndustrial: number;
                }[];
                commercial: Input;
                dataCentreMwh: number;
                industrial: Input;
                layer: "L2";
                offMeterMwh: number;
                state: string;
            }
            | null;
        financial: | {
            currency: string;
            layer: "L1";
            period: "month"
            | "year";
            saving: number;
        }
        | null;
        observed: Observed & { layer: "L1"; reduction: number | null }
        | null;
        physical:
            | { layer: "L2"; mwh: number; servers: number; unpriced: string[] }
            | null;
        potential: { layer: "L2" | "L3"; plan: CapacityPlan } | null;
        research:
            | {
                boundary: {
                    dataCentres: { mwh: number; share: number };
                    devices: { mwh: number; share: number };
                    networks: { mwh: number; share: number };
                };
                carbon: {
                    ember: { gPerKwh: number; tonnes: number };
                    gPerKwh: number;
                    subregion: EgridSubregion;
                    tonnes: number;
                };
                goal: {
                    footprintMwh: number;
                    high: { kwh: number; share: number };
                    rungs: { kwh: number; share: number }[];
                    viewsPerYear: number;
                };
                layer: "L2";
                water: {
                    directLitres: number;
                    indirectLbnlLitres: number;
                    indirectLitres: number;
                };
            }
            | null;
        statement: string;
        storage: | {
            budget: { device: number; server: number };
            held: { device: number; server: number };
            holdings: readonly Holding[];
            layer: "L1";
            within: { device: boolean; server: boolean };
        }
        | null;
        trust: | {
            fallbacks: number;
            layer: "L1";
            mismatches: number;
            notCounted: readonly string[];
            refused: number;
            sampled: number;
            views: number;
        }
        | null;
    }
    Index
    economics:
        | {
            cases: {
                kwhPerSite: number;
                mwh: number;
                name: "peak"
                | "production"
                | "floor";
                usdCommercial: number;
                usdIndustrial: number;
            }[];
            commercial: Input;
            dataCentreMwh: number;
            industrial: Input;
            layer: "L2";
            offMeterMwh: number;
            state: string;
        }
        | null

    host-meter energy and its dollars; null without an institution profile

    Type Declaration

    • {
          cases: {
              kwhPerSite: number;
              mwh: number;
              name: "peak" | "production" | "floor";
              usdCommercial: number;
              usdIndustrial: number;
          }[];
          commercial: Input;
          dataCentreMwh: number;
          industrial: Input;
          layer: "L2";
          offMeterMwh: number;
          state: string;
      }
      • cases: {
            kwhPerSite: number;
            mwh: number;
            name: "peak" | "production" | "floor";
            usdCommercial: number;
            usdIndustrial: number;
        }[]

        the hosting saving at each deployment, headline first; priced at both sector rates

      • commercial: Input

        average commercial price, EIA 2025

      • dataCentreMwh: number

        the data-centre share of spool's attributional saving; it is already inside the hosting saving, so it is not added

      • industrial: Input

        average industrial price, EIA 2025

      • layer: "L2"

        L2, derived from the profile and the hosting model

      • offMeterMwh: number

        spool's attributional share outside the institution's meter: visitors' devices and networks

      • state: string

        the state the prices are for

    • null
    financial:
        | {
            currency: string;
            layer: "L1";
            period: "month"
            | "year";
            saving: number;
        }
        | null

    the invoice saving; null without invoices

    Type Declaration

    • { currency: string; layer: "L1"; period: "month" | "year"; saving: number }
      • currency: string

        currency of the saving

      • layer: "L1"

        L1, measured here

      • period: "month" | "year"

        month or year, as the invoices stated

      • saving: number

        invoice before minus after, in currency

    • null
    observed: Observed & { layer: "L1"; reduction: number | null } | null

    an observed change, read from the caller's measurement

    Type Declaration

    • Observed & { layer: "L1"; reduction: number | null }
      • layer: "L1"

        L1, measured here

      • reduction: number | null

        fractional drop from before to after; null when before is zero

    • null
    physical:
        | { layer: "L2"; mwh: number; servers: number; unpriced: string[] }
        | null

    priced capacity saving from the ledger; null when no entry is priced

    Type Declaration

    • { layer: "L2"; mwh: number; servers: number; unpriced: string[] }
      • layer: "L2"

        L2, derived from the ledger

      • mwh: number

        energy the retired servers drew, in MWh

      • servers: number

        server-years retired

      • unpriced: string[]

        ids of retired entries with no energy figure

    • null
    potential: { layer: "L2" | "L3"; plan: CapacityPlan } | null

    the capacity plan's node counts; null without a plan

    Type Declaration

    • { layer: "L2" | "L3"; plan: CapacityPlan }
      • layer: "L2" | "L3"

        L2 when the plan comes from a real trace and SLO, else L3

      • plan: CapacityPlan

        the capacity plan the figures come from

    • null
    research:
        | {
            boundary: {
                dataCentres: { mwh: number; share: number };
                devices: { mwh: number; share: number };
                networks: { mwh: number; share: number };
            };
            carbon: {
                ember: { gPerKwh: number; tonnes: number };
                gPerKwh: number;
                subregion: EgridSubregion;
                tonnes: number;
            };
            goal: {
                footprintMwh: number;
                high: { kwh: number; share: number };
                rungs: { kwh: number; share: number }[];
                viewsPerYear: number;
            };
            layer: "L2";
            water: {
                directLitres: number;
                indirectLbnlLitres: number;
                indirectLitres: number;
            };
        }
        | null

    energy by meter boundary, carbon, water and the goal ladder; null without an institution profile

    Type Declaration

    • {
          boundary: {
              dataCentres: { mwh: number; share: number };
              devices: { mwh: number; share: number };
              networks: { mwh: number; share: number };
          };
          carbon: {
              ember: { gPerKwh: number; tonnes: number };
              gPerKwh: number;
              subregion: EgridSubregion;
              tonnes: number;
          };
          goal: {
              footprintMwh: number;
              high: { kwh: number; share: number };
              rungs: { kwh: number; share: number }[];
              viewsPerYear: number;
          };
          layer: "L2";
          water: {
              directLitres: number;
              indirectLbnlLitres: number;
              indirectLitres: number;
          };
      }
      • boundary: {
            dataCentres: { mwh: number; share: number };
            devices: { mwh: number; share: number };
            networks: { mwh: number; share: number };
        }

        spool's attributional saving by boundary; only the data-centre part is on a host's meter

      • carbon: {
            ember: { gPerKwh: number; tonnes: number };
            gPerKwh: number;
            subregion: EgridSubregion;
            tonnes: number;
        }

        tonnes CO2e of the whole attributional saving, at the campus subregion and at Ember's national figure

      • goal: {
            footprintMwh: number;
            high: { kwh: number; share: number };
            rungs: { kwh: number; share: number }[];
            viewsPerYear: number;
        }

        the goal ladder: the saving at each share of the institution's own page-view footprint, kWh a year

      • layer: "L2"

        L2, derived from the profile and the published factors

      • water: { directLitres: number; indirectLbnlLitres: number; indirectLitres: number }

        litres for the data-centre share; a locality figure, never summed across institutions

    • null
    statement: string

    sentence stating the physical saving, or that none was shown

    storage:
        | {
            budget: { device: number; server: number };
            held: { device: number; server: number };
            holdings: readonly Holding[];
            layer: "L1";
            within: { device: boolean; server: boolean };
        }
        | null

    bytes held against the declared budget; null without storage inputs

    Type Declaration

    • {
          budget: { device: number; server: number };
          held: { device: number; server: number };
          holdings: readonly Holding[];
          layer: "L1";
          within: { device: boolean; server: boolean };
      }
      • budget: { device: number; server: number }

        the declared budget, in bytes

      • held: { device: number; server: number }

        bytes the holdings sum to, per side

      • holdings: readonly Holding[]

        the holdings as given

      • layer: "L1"

        L1, measured here

      • within: { device: boolean; server: boolean }

        whether each side is within its budget

    • null
    trust:
        | {
            fallbacks: number;
            layer: "L1";
            mismatches: number;
            notCounted: readonly string[];
            refused: number;
            sampled: number;
            views: number;
        }
        | null

    correctness counters from the views; null without views

    Type Declaration

    • {
          fallbacks: number;
          layer: "L1";
          mismatches: number;
          notCounted: readonly string[];
          refused: number;
          sampled: number;
          views: number;
      }
      • fallbacks: number

        views answered from the network because a stored copy was outdated

      • layer: "L1"

        L1, measured here

      • mismatches: number

        sampled views whose local answer differed from the network's

      • notCounted: readonly string[]

        counters the worker does not keep; read each as unknown, not as zero

      • refused: number

        views the worker declined to answer locally or to render

      • sampled: number

        shadow views the worker compared with the network's answer

      • views: number

        views counted

    • null