Main Content

validate

R2026b

Check configuration for errors without saving

Since R2026b

    Description

    validate(config) checks the threshold rules and classifications in the configuration object config for errors. You can use this function to verify that rules and classifications are well-formed before saving.

    example

    Examples

    collapse all

    Copy a shipping threshold set and validate the configuration before saving.

    config = metric.config.Configuration.copyThresholdSet( ...
        SourceThresholdSetId="Testing", ...
        TargetThresholdSetId="MyTestingThresholds");
    validate(config);

    Input Arguments

    collapse all

    Configuration, specified as a metric.config.Configuration object.

    More About

    collapse all

    Version History

    Introduced in R2026b