Interface MarginReport

A scope's margin over a period. Amounts are whole micro-dollars.

interface MarginReport {
    scopeId: string;
    currency: "USD";
    fromDay: string;
    toDay: string;
    allocationVersion: string;
    asOf: number;
    settledUsageRefs: string[];
    paidFundedRevenueMicro: number;
    promotionalUsageMicro: number;
    revenueReversalsMicro: number;
    refundsMicro: number;
    supplierCostMicro: number;
    failedWorkSupplierCostMicro: number;
    openSupplierMicro: number;
    computeAllocationMicro: null | number;
    otherCosts: {
        label: string;
        micro: null | number;
        excludedReason: null | string;
    }[];
    platformLossMicro: number;
    contributionMicro: null | number;
    contributionRatio: null | number;
    status: "reconciled" | "unreconciled";
    unreconciledReasons: string[];
}

Properties

scopeId: string
currency: "USD"
fromDay: string
toDay: string
allocationVersion: string
asOf: number
settledUsageRefs: string[]

The operations settled in the period.

paidFundedRevenueMicro: number
promotionalUsageMicro: number
revenueReversalsMicro: number
refundsMicro: number
supplierCostMicro: number

Supplier cost settled in the period, failed work and late reports included.

failedWorkSupplierCostMicro: number
openSupplierMicro: number

Supplier liability still open: unreported attempts at their most.

computeAllocationMicro: null | number

Occupied compute at the host-cost rate; null without the rate or without a measured runtime for every settled hold.

otherCosts: {
    label: string;
    micro: null | number;
    excludedReason: null | string;
}[]

Type declaration

  • label: string
  • micro: null | number
  • excludedReason: null | string
platformLossMicro: number
contributionMicro: null | number

Revenue less reversals, supplier cost, compute and other costs; null while unreconciled.

contributionRatio: null | number

Contribution over revenue; null while unreconciled or at zero revenue.

status: "reconciled" | "unreconciled"
unreconciledReasons: string[]