---
title: nrSetHarvestTimeMetrics
source: https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/harvest/nrsetharvesttimemetrics
---

## Syntax

```js
  nrSetHarvestTimeMetrics(nr as Object, time as Integer) as Void
```

## Description

Set harvest time for Logs, the time the logs are buffered before being sent to New Relic. Min value is 60.

## Arguments

| Arguments | Description             |
| --------- | ----------------------- |
| `nr`      | New Relic Agent object. |
| `time`    | Time in seconds.        |

## Return

Nothing.

## Example

```js
  	nrSetHarvestTimeMetrics(m.nr, 60)
```
