@modelhealth/modelhealth
    Preparing search index...

    Interface AnalysisData

    Analysis result data downloaded from an activity with a completed analysis.

    Use type to determine how to parse data.

    const results = await client.analysisDataForActivity(activity, ["metrics", "report", "data"]);

    for (const result of results) {
    switch (result.type) {
    case "metrics":
    // Decode result.data as JSON
    break;
    case "report":
    // Use result.data directly as a PDF
    break;
    case "data":
    // Use result.data directly as a ZIP file
    break;
    }
    }
    interface AnalysisData {
        data: Uint8Array;
        type: AnalysisDataType;
    }
    Index

    Properties

    Properties

    data: Uint8Array

    The raw file data. Parse according to the format implied by type.

    The type of analysis result. Use this to determine how to parse data.