Interface MarginAllocationPolicy

The host's allocation policy for one report.

interface MarginAllocationPolicy {
    version: string;
    hostCostRate?: RationalRate;
    computeRuntime: readonly {
        holdId: string;
        runtimeMs: number;
    }[];
    otherCosts: readonly {
        label: string;
        micro?: number;
        excludedReason?: string;
    }[];
}

Properties

version: string
hostCostRate?: RationalRate

The cost of occupied compute per measured unit of runtime (milliseconds); absent leaves compute unreconciled.

computeRuntime: readonly {
    holdId: string;
    runtimeMs: number;
}[]

Measured runtime of the period's operations, by hold. Every hold settled in the period needs one, an explicit zero included: a hold without one leaves compute unreconciled, never priced at zero.

otherCosts: readonly {
    label: string;
    micro?: number;
    excludedReason?: string;
}[]

Every other cost: quantified, or excluded with its reason.