[#BloombergLP-ball-Rule-setLevels]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/Rule.adoc[Rule]::setLevels
:relfileprefix: ../../../
:mrdocs:

Set the four threshold levels of this object&period;

== Synopsis

Declared in `&lt;ball&lowbar;rule&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
setLevels(
    int recordLevel,
    int passLevel,
    int triggerLevel,
    int triggerAllLevel);
----

== Description

Set the threshold levels of this object to the specified `recordLevel`, `passLevel`, `triggerLevel`, and `triggerAllLevel` values, respectively, if each of the specified values is in the range &lsqb;0 &period;&period; 255&rsqb;&period; Return 0 on success, and a non&hyphen;zero value otherwise (with no effect on the threshold levels of this object)&period;

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *recordLevel*
| record threshold level
| *passLevel*
| pass threshold level
| *triggerLevel*
| trigger threshold level
| *triggerAllLevel*
| trigger&hyphen;all threshold level
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
