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

## Syntax

```js
  function nrSendSummaryMetric(nr as Object, name as String, interval as Integer, counter as dynamic, m_sum as dynamic, m_min as dynamic, m_max as dynamic, attr = invalid as Object) as Void
```

## Description

Record a summary metric. Used to report pre-aggregated data, or information on aggregated discrete events.

## Arguments

| Arguments  | Description                           |
| ---------- | ------------------------------------- |
| `nr`       | New Relic Agent object.               |
| `name`     | Metric name                           |
| `interval` | Metric time interval in milliseconds. |
| `count`    | Metric count.                         |
| `m_sum`    | Metric value summation.               |
| `m_min`    | Metric minimum value.                 |
| `m_max`    | Metric maximum value.                 |
| `attr`     | (optional) Metric attributes.         |

## Return

Nothing.

## Example

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