@suluk/cost - v0.2.0
    Preparing search index...

    Interface EventCostInput

    interface EventCostInput {
        operation: string;
        model: CostModel;
        event: Record<string, unknown>;
        at: number;
        usage?: UsageReport[];
        suppliedPrincipal?: string;
    }
    Index

    Properties

    operation: string

    the operation name whose cost fired (the webhook/op by-name handle).

    model: CostModel

    its declared cost model (carrying trigger / attribution / idempotencyKey).

    event: Record<string, unknown>

    the fired event payload.

    at: number

    wall-clock ms (passed in — reproducible).

    usage?: UsageReport[]

    any metered third-party usage the handler measured.

    suppliedPrincipal?: string

    for session/job-stamped attribution: the principal the job/session carries.