nrSendCountMetric

Syntax

function nrSendCountMetric(nr as Object, name as String, value as dynamic, interval as Integer, attr = invalid as Object) as Void

Description

Record a count metric. Measures the number of occurences of an event during a time interval.

Arguments

Arguments

Description

nr

New Relic Agent object.

name

Metric name

value

Metric value. Number.

interval

Metric time interval in milliseconds.

attr

(optional) Metric attributes.

Return

Nothing.

Example

nrSendCountMetric(m.nr, "test", 250, 1500, {"one": 1})