メインコンテンツ

removeThresholdSet

R2026b

Remove threshold set from configuration

Since R2026b

    Description

    removeThresholdSet(config,id) removes the threshold set with the specified identifier from the configuration. Use this function to remove an entire threshold set and its rules when you no longer need those compliance criteria in your custom configuration. For more information about threshold customization, see Adjust Dashboard Thresholds to Match Your Testing Criteria.

    Example of custom threshold set in threshold settings for a dashboard

    example

    Examples

    collapse all

    Remove a threshold set from a configuration by its identifier.

    proj = currentProject;
    p = proj.RootFolder;
    config = metric.config.Configuration.open(fullfile(p,"MyConfig.json"));
    removeThresholdSet(config,"MyCustomTesting")

    Input Arguments

    collapse all

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

    Identifier of the threshold set to remove, specified as a string scalar.

    Data Types: string

    Version History

    Introduced in R2026b