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

## Metrics methods

| Method                                                                                                                              | Description                                                                                                |
| ----------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| [nrSendMetric](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/metrics/nrsendmetric)               | Record a gauge metric. Represents a value that can increase or decrease with time.                         |
| [nrSendCountMetric](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/metrics/nrsendcountmetric)     | Record a count metric. Measures the number of occurences of an event during a time interval.               |
| [nrSendSummaryMetric](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/metrics/nrsendsummarymetric) | Record a summary metric. Used to report pre-aggregated data, or information on aggregated discrete events. |

## Examples

### nrSendMetric

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

### nrSendCountMetric

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

### nrSendSummaryMetric

```js
  	nrSendSummaryMetric(m.nr, "test", 2000, 5, 1000, 100, 200)
```
