metric.threshold.ThresholdSet
R2026bDescription
A metric.threshold.ThresholdSet object represents a named
collection of threshold rules that define compliance overlays for metrics in the Model
Testing, SIL Code Testing, and PIL Code Testing dashboards. Threshold sets appear in the
threshold settings in the top-left corner of the dashboards, where you can switch between them
to view compliance results under different criteria. To make custom thresholds appear in the
Model Testing, SIL Code Testing, and PIL Code Testing dashboards, copy and modify a shipping
threshold set, then save and register the configuration. For more information, see Adjust Dashboard Thresholds to Match Your Testing Criteria.

Creation
You do not create metric.threshold.ThresholdSet objects directly.
Instead, you can get a threshold set object by using one of these approaches:
Use the
getThresholdSetsfunction on ametric.Engineobject to get all threshold sets configured in the project.Access the ThresholdSets property of a
metric.config.Configurationobject.Use the
function on agetThresholdSetmetric.config.Configurationobject to get a specific threshold set by ID.
Properties
Examples
Version History
Introduced in R2026b

