---
title: nrSendMetric
source: https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/metrics/nrsendmetric
---

## Syntax

```js
  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

```js
  	nrSendMetric(m.nr, "test", 11.1, {"one": 1})
```
