[#BloombergLP-ball-CategoryManager-thresholdLevelsForNewCategory]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/CategoryManager.adoc[CategoryManager]::thresholdLevelsForNewCategory
:relfileprefix: ../../../
:mrdocs:

Load into the specified `&ast;levels` the threshold levels that would be set for a newly and non&hyphen;hierarchically created category&period; Return 0 on success and a non&hyphen;zero value otherwise&period; If the client has configured a default threshold levels callback, the `categoryName`, possibly changed by the registered category name filter callback, will be supplied to that callback which will set `&ast;levels`&period; Otherwise, if no default threshold levels callback has been provided, the default threshold levels are used&period; Note that this function will report an error if the callback returns invalid levels&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
thresholdLevelsForNewCategory(
    xref:BloombergLP/ball/ThresholdAggregate.adoc[ThresholdAggregate]* levels,
    char const* categoryName) const;
----


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