• /
  • EnglishEspañolFrançais日本語한국어Português
  • Log inStart now

nrSendMetric

Syntax

function nrSendMetric(nr as Object, name as String, value as dynamic, attr = invalid as Object) as Void

Description

Record a gauge metric. Represents a value that can increase or decrease with time.

Arguments

Arguments

Description

nr

New Relic Agent object.

name

Metric name

value

Metric value. Number.

attr

(optional) Metric attributes.

Return

Nothing.

Example

nrSendMetric(m.nr, "test", 11.1, {"one": 1})
Copyright © 2025 New Relic Inc.

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