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

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})
Copyright © 2025 New Relic Inc.

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