Reports custom events to New Relic.
For prerequisites, see New Relic Ingest actions.
Send events to New Relic
The action identifier is newrelic.ingest.sendEvents.
Reports a custom event to New Relic.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
attributes | Map | Optional. Common attributes included in all events when provided. Merges with each event item; event-level values override common attributes when conflicts occur. |
|
events | List | Required. The list of event data. 重要Events require aneventType field that represents the custom event type. The maximum events allowed per request is 100.
|
|
licenseKey | String | Optional. The New Relic Account License Key specifies the target account for your events. If not provided, the system uses the default license key from the account executing the workflow. Read more about our API keys to create and manage your New Relic Account License Key. |
|
selectors | List | Optional. The selectors to get only the specified parameters as output. |
|
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
success | Boolean |
|
errorMessage | String | Failure reason as message. |
The following example sends multiple custom events with shared and per-event attributes, then retrieves them with a NRQL query.
Workflow example |
|---|
Expected output: Retrieve events: After successfully executing a workflow, you can retrieve the associated event by running a query under the account that executed the workflow: |