@servicenow/sdk - v4.13.3
    Preparing search index...
    MetricConfig: WithID<
        BaseMetricConfig & (
            | { dataType: "string"; stringOption?: StringOption }
            | { dataType: "reference"; referenceTable: TableName }
            | { dataType: "likertScale"; scaleDefinition?: ScaleDirection }
            | {
                correctAnswerChoice?:
                    | string
                    | (string | Record<"asmt_metric_definition">)[];
                dataType: "choice";
                randomizeAnswers?: boolean;
            }
            | { correctAnswerCheckbox?: string; dataType: "checkbox" }
            | { correctAnswerYesNo?: string; dataType: "yesNo" }
            | {
                correctAnswerTemplate?:
                    | string
                    | (string | Record<"asmt_template_definition">)[];
                dataType: "template";
                template?: string | Record<"asmt_template">;
            }
            | { dataType: "duration"; duration?: string }
            | {
                customMetric?: string | Record<"asmt_custom_metric">;
                dataType: "custom";
            }
            | {
                correctAnswer?: number;
                dataType: "number"
                | "percentage"
                | "numericScale";
                max?: number;
                min?: number;
            }
            | {
                dataType: | "attachment"
                | "date"
                | "dateTime"
                | "imageScale"
                | "ranking"
                | "ratings"
                | "multipleSelection";
            }
        ),
    >

    An individual question/metric (asmt_metric). A discriminated union keyed on dataType — only the fields relevant to the chosen data type are available. The metric_type and category foreign keys are wired automatically from the nesting structure.