This page provides a reference for all New Relic Service Level actions available in the workflow automation actions catalog. These actions let you create, update, delete, and list Service Level Indicators (SLI) and their Service Level Objectives (SLO) directly from a workflow — enabling automated service onboarding, SLO remediation, and compliance workflows.
Prerequisites
Before using New Relic Service Level actions in workflow automation, make sure you have the following:
A New Relic account with appropriate permissions to manage service levels.
Create a service level
The action identifier is newrelic.serviceLevel.create.
Creates a new Service Level Indicator (SLI) with its Service Level Objective (SLO) for an entity.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
entityGuid | String | Required. The entity this SLI is defined against. |
|
name | String | Required. SLI name. |
|
description | String | Optional. SLI description. |
|
accountId | Int | Required. The New Relic account that owns the SLI. |
|
validEventsFrom | String | Required. NRDB event type for the valid events pool. |
|
validEventsWhere | String | Optional. NRQL boolean condition to filter the valid events pool. |
|
validEventsSelectFunction | String | Optional. Aggregation function for the valid events pool. One of |
|
validEventsSelectAttribute | String | Optional. Attribute to aggregate for the valid events pool. Required when |
|
validEventsSelectThreshold | Float | Optional. Threshold value for the valid events pool. Only used when |
|
eventCategory | String | Required. Classification of the condition events bucket as good or bad events. One of |
|
conditionEventsFrom | String | Required. NRDB event type for the good/bad events bucket. |
|
conditionEventsWhere | String | Optional. NRQL boolean condition to filter the good/bad events bucket. |
|
conditionEventsSelectFunction | String | Optional. Aggregation function for the good/bad events bucket. One of |
|
conditionEventsSelectAttribute | String | Optional. Attribute to aggregate for the good/bad bucket. Required when |
|
conditionEventsSelectThreshold | Float | Optional. Threshold value for the good/bad bucket. Only used when |
|
facets | List | Optional. Attributes to group SLI results by. |
|
target | Float | Required. SLO target as a percentage. |
|
windowDays | Int | Required. Rolling window in days. Must be |
|
selectors | List | Optional. JQ selectors to extract specific values from the response. Use | |
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
success | Boolean |
|
errorMessage | String | Error message on failure, whether transport-level or a NerdGraph business-logic error. |
data | Map | NerdGraph response: Use |
The following example creates an SLI/SLO and captures the new SLI's GUID using selectors for use in a subsequent step.
Workflow example |
|---|
|
Update a service level
The action identifier is newrelic.serviceLevel.update.
Updates an existing Service Level Indicator's configuration or its Service Level Objective. Uses newrelic.nerdgraph.execute.
Fields name and description are individually optional — omitting either preserves the existing value. Fields target and windowDays are all-or-nothing: Supply both to change the SLO target, or omit both to keep the existing SLO unchanged.
For the events configuration (validEvents*, conditionEvents*, eventCategory, facets), omitting any field removes it rather than preserving it. To change one field in the events section, resupply the full current events definition alongside the change.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
sliGuid | String | Required. The SLI's GUID. Use the |
|
name | String | Optional. New SLI name. Omitting preserves the existing name. |
|
description | String | Optional. New SLI description. Omitting preserves the existing description. |
|
validEventsFrom | String | Optional. NRDB event type for the valid events pool. Required if any other |
|
validEventsWhere | String | Optional. NRQL boolean condition to filter the valid events pool. |
|
validEventsSelectFunction | String | Optional. Aggregation function for the valid events pool. One of |
|
validEventsSelectAttribute | String | Optional. Attribute to aggregate for the valid events pool. Required when |
|
validEventsSelectThreshold | Float | Optional. Threshold value for the valid events pool. Only used when |
|
eventCategory | String | Optional. Classification of the condition events bucket as good or bad events. One of |
|
conditionEventsFrom | String | Optional. NRDB event type for the good/bad events bucket. |
|
conditionEventsWhere | String | Optional. NRQL boolean condition to filter the good/bad events bucket. |
|
conditionEventsSelectFunction | String | Optional. Aggregation function for the good/bad events bucket. One of |
|
conditionEventsSelectAttribute | String | Optional. Attribute to aggregate for the good/bad bucket. Required when |
|
conditionEventsSelectThreshold | Float | Optional. Threshold value for the good/bad bucket. Only used when |
|
facets | List | Optional. Attributes to group SLI results by. |
|
target | Float | Optional. New SLO target as a percentage. All-or-nothing with |
|
windowDays | Int | Optional. Rolling window in days. Must be |
|
selectors | List | Optional. JQ selectors to extract specific values from the response. | |
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
success | Boolean |
|
errorMessage | String | Error message on failure, whether transport-level or a NerdGraph business-logic error. |
data | Map | NerdGraph response: Use |
The following example tightens the SLO target on an existing SLI using the GUID captured from a prior newrelic.serviceLevel.create step.
Workflow example |
|---|
|
Delete a service level
The action identifier is newrelic.serviceLevel.delete.
Removes an existing Service Level Indicator (SLI) and its Service Level Objective (SLO). Uses newrelic.nerdgraph.execute.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
sliGuid | String | Required. The SLI's GUID. Use the |
|
selectors | List | Optional. JQ selectors to extract specific values from the response. | |
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
success | Boolean |
|
errorMessage | String | Error message on failure, whether transport-level or a NerdGraph business-logic error. |
data | Map | NerdGraph response: Use |
The following example deletes an SLI using a GUID passed in as a workflow input.
Workflow example |
|---|
|
List service levels
The action identifier is newrelic.serviceLevel.list.
Lists Service Level Indicator entities, optionally scoped to an account or compliance status. Uses newrelic.nerdgraph.execute.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
accountId | Int | Optional. Scope results to one New Relic account. Omitting returns SLIs across all accounts accessible to the requester. |
|
onlyNonCompliant | Boolean | Optional. Compliance status filter. When |
|
filter | String | Optional. Additional raw |
|
limit | Int | Optional. Page size for the results. |
|
cursor | String | Optional. Pagination token from a prior call's |
|
selectors | List | Optional. JQ selectors to extract specific values from the response. Use | |
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
success | Boolean |
|
errorMessage | String | Error message on failure, whether transport-level or a NerdGraph business-logic error. |
data | Map | Raw NerdGraph response. Use |
The following example lists all non-compliant SLIs for an account and extracts the entity list using selectors.
Workflow example |
|---|
|