Member Junction
    Preparing search index...

    Interface TelemetryRunViewsBatchParams

    Telemetry params for batch RunViews operation. Used when multiple views are executed in a single call.

    interface TelemetryRunViewsBatchParams {
        _fromEngine?: boolean;
        AfterKeys?: string[];
        BatchSize: number;
        Entities: string[];
        Exempt?: boolean;
        ExemptReason?: string;
        Filters?: string[];
        OrderBys?: string[];
        StartRows?: number[];
    }
    Index

    Properties

    _fromEngine?: boolean

    Internal marker for engine-initiated calls

    AfterKeys?: string[]

    Per-view keyset-pagination cursors (serialized AfterKey), parallel to Entities (one entry per view, same order). See StartRows.

    BatchSize: number

    Number of views in the batch

    Entities: string[]

    Entity names being queried in the batch, one entry per view. A view identified only by ViewEntity (no EntityName/ViewName/ViewID) is recorded as '' rather than dropped, so this array stays index-parallel to Filters/OrderBys/StartRows/ AfterKeys. The fingerprint skips falsy entries; display sites should too.

    Exempt?: boolean

    When true, every view in the batch opted out of optimization/redundancy analyzers.

    ExemptReason?: string

    Optional caller-provided justification for the exemption (first non-empty across the batch).

    Filters?: string[]

    Per-view SQL WHERE clause filters, parallel to Entities (one entry per view, same order). Populated where the batch event is recorded so the fingerprint can distinguish two batches over the SAME entity set but with DIFFERENT filters (e.g. an expiry sweep vs. a decay sweep both over {AI Agent Notes, AI Agent Examples}). An entry may be undefined when a view supplied no filter.

    OrderBys?: string[]

    Per-view SQL ORDER BY clauses, parallel to Entities (one entry per view, same order). See Filters for why per-view detail is needed at batch granularity.

    StartRows?: number[]

    Per-view offset-pagination cursors (StartRow), parallel to Entities (one entry per view, same order). Required for the same reason the single-RunView fingerprint carries StartRow: consecutive pages of a sweep differ ONLY in the cursor, so omitting it collapses every page onto one fingerprint and the Duplicate analyzer fires from page 2 onward. This matters for size-1 batches too — a server-side RunView with BypassCache or AfterKey is routed through RunViews([params]) (see ProviderBase.RunView), and on the client EVERY RunView takes that route.