---
title: nrSendSystemEvent
source: https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/events/nrsendsystemevent
---

## Syntax

```js
  nrSendSystemEvent(nr as Object, actionName as String, attr = invalid) as Void
```

## Description

Send a system event, type ConnectedDeviceSystem.

## Arguments

| Arguments    | Description                              |
| ------------ | ---------------------------------------- |
| `nr`         | New Relic Agent object.                  |
| `actionName` | Action name.                             |
| `attr`       | (optional) Attributes associative array. |

## Return

Nothing.

## Example

```js
  	nrSendSystemEvent(m.nr, "MY_ACTION")
	  attr = {"key0":"val0", "key1":"val1"}
	  nrSendSystemEvent(m.nr, "MY_ACTION", attr)
```
