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 |
---|---|
| New Relic Agent object. |
| Metric name |
| Metric value. Number. |
| Metric time interval in milliseconds. |
| (optional) Metric attributes. |
Return
Nothing.
Example
nrSendCountMetric(m.nr, "test", 250, 1500, {"one": 1})