metric.threshold.ThresholdRule
R2026bDescription
A metric.threshold.ThresholdRule object represents a rule that
associates a metric with a set of classifications. The classifications define whether a metric
result is compliant, noncompliant, a warning, or uncategorized. Threshold rules belong to a
threshold set and specify the compliance criteria that the Model Testing, SIL Code Testing,
and PIL Code Testing dashboards use to classify metric results. To make custom thresholds
appear in the Model Testing, SIL Code Testing, and PIL Code Testing dashboards, copy a
shipping threshold set and modify the threshold rules, 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.ThresholdRule objects directly.
Instead, you can get threshold rule objects by using one of these approaches:
Access the ThresholdRules property of a
metric.config.Configurationobject.Use the
function on agetThresholdRulemetric.config.Configurationobject to get a specific threshold rule by ID.Use the
function on aaddThresholdRulemetric.config.Configurationobject to add a new threshold rule and return it.
Properties
Object Functions
Examples
Version History
Introduced in R2026b
