• /
  • EnglishEspañolFrançais日本語한국어Português
  • Se connecterDémarrer

Cette traduction automatique est fournie pour votre commodité.

En cas d'incohérence entre la version anglaise et la version traduite, la version anglaise prévaudra. Veuillez visiter cette page pour plus d'informations.

Créer un problème

nrSetCustomAttribute

Syntaxe

nrSetCustomAttribute(nr as Object, key as String, value as Object, actionName = "" as String) as Void

Description

Définissez un attribut personnalisé à inclure dans l'événement.

Arguments

Arguments

Description

nr

Nouvel objet Agent Relic.

key

Nom de l'attribut.

value

Valeur d'attribut.

actionName

(facultatif) Action où l'attribut sera inclus. Par défaut toutes les actions.

Retour

Rien.

Exemple

nrSetCustomAttribute(m.nr, "myNum", 123, "CONTENT_START")
nrSetCustomAttribute(m.nr, "myString", "hello")
Droits d'auteur © 2025 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.