CML
    Preparing search index...

    Type Alias CmcdReporterConfig<C>

    CmcdReporterConfig: CmcdRequestReportConfig<C> & {
        cid?: string;
        eventTargets?: CmcdEventReportConfig<C>[];
        sessionRetention?: number;
        sid?: string;
    }

    Configuration for a CMCD reporting component.

    Type Parameters

    • C = Record<string, unknown>

      The type of the player's customData on the requests this reporter receives. If one transform is annotated, the rest of the configuration infers the type. Defaults to Record<string, unknown>.

    Type Declaration

    • Optionalcid?: string

      The content ID.

      undefined

    • OptionaleventTargets?: CmcdEventReportConfig<C>[]

      The event configurations. If omitted, no events are reported.

      undefined

    • OptionalsessionRetention?: number

      The number of ended sessions the reporter retains state for, in addition to the current one. Retained sessions let a response that completes after a sid change report under the session that issued its request. The report uses that session's data snapshot and sequence numbers. 0 retains nothing, so stale responses are dropped. Infinity never evicts, which also retains every session's unsent report queues. Numbers are floored. Every other input uses the default.

      2

    • Optionalsid?: string

      The session ID. If omitted, the reporter generates a new random session ID.

      undefined