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})