getThresholdSets
R2026bDescription
returns an array of threshold set objects representing the threshold sets configured in
the current project associated with the sets = getThresholdSets(metricEngine)metric.Engine object
metricEngine. Each threshold set defines the pass/fail criteria
(compliance overlays) that the Model Testing, SIL Code Testing, and PIL Code Testing
dashboards use to classify metric results.
In the dashboards, threshold sets appear in the threshold settings in the top-left
corner. You can switch between threshold sets to view compliance results under different
criteria. Use getThresholdSets to programmatically discover which
threshold sets are available — including both the shipping threshold sets (such as
"Testing" and "ReqBasedTesting") and any custom
threshold sets that have been registered for the project.
Custom threshold sets are created by copying and modifying a shipping threshold set
using metric.config.Configuration. After you register a custom
threshold set, it appears alongside the shipping sets in the dashboard UI and in the
results returned by getThresholdSets. You can then pass the threshold
set ID to getMetrics to retrieve metric results classified according to that
specific threshold set.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2026b