TomTom Maps for JavaScript
    Preparing search index...

    Type Alias AnalysisRecord

    One analysis tracked by the session-level Analyses registry, the single home for every analyseDatasets analysis, one-shot or monitored, across every dataset kind. It is pure sink state, metadata plus the bounded result history. The recipe (code / inputs) and recurrence are NOT here. They live on the analysis's Job (see _jobs). affectedDatasetIds is the per-dataset lookup key (Analyses.getAnalysesForDataset). history is the result timeline (oldest first), whose latest is the current result, threaded back into the sandbox code as previous.

    type AnalysisRecord = {
        affectedDatasetIds: readonly string[];
        analysisId: string;
        description?: string;
        history: DatasetAnalysis[];
        name: string;
        outputFormat: AnalysisOutputFormat;
    }
    Index
    affectedDatasetIds: readonly string[]

    Ids of every dataset this analysis is attached to. The per-dataset lookup key.

    analysisId: string

    Stable handle minted by makeAnalysisId (name + sorted source ids).

    description?: string

    Optional human-readable description of what the analysis computes.

    history: DatasetAnalysis[]

    Bounded result timeline, oldest first (see MAX_HISTORY_PER_ANALYSIS).

    name: string

    The analysis name. With its sorted source ids it forms analysisId.

    outputFormat: AnalysisOutputFormat

    How each result's data should be interpreted — plain JSON or a Chart.js configuration.