[#BloombergLP-balm-MetricDescription-setUserData]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricDescription.adoc[MetricDescription]::setUserData
:relfileprefix: ../../../
:mrdocs:

Associate the specified `value` with the specified data `key`&period;

== Synopsis

Declared in `&lt;balm&lowbar;metricdescription&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setUserData(
    xref:BloombergLP/balm/MetricDescription/UserDataKey.adoc[UserDataKey] key,
    void const* value);
----

== Description

The behavior is undefined unless `key &gt;&equals; 0`&period; Note that this method allows clients of `balm` to associate (opaque) application&hyphen;specific information with a metric&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| user&hyphen;data key associated with this metric
| *value*
| opaque user&hyphen;data value to associate
|===


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