Skip to main content

Newrelic

@shelson/newrelicv2026.09.25.1· 12d agoMODELSSKILLS
01README

New Relic entity model types backed by the NerdGraph GraphQL API (https://api.newrelic.com/graphql). One model type per entity kind — dashboard, alert policy, NRQL alert condition, muting rule, workflow, notification destination, notification channel, synthetic monitor, synthetics private location, and a read-only account/permissions type — each with the same create/update/delete/lookup lifecycle plus a zero-arg sync for drift detection.

Prerequisites

A New Relic USER API key (NRAK-…) supplied as the apiKey global argument, ideally via a vault expression.

Usage

swamp model create @shelson/newrelic-dashboard my-dashboard \
  --global-arg accountId=12345678 \
  --global-arg 'apiKey=${{ vault.get("nr", "apiKey") }}'
swamp model method run my-dashboard create --input dashboard="$(cat dash.json)"
swamp model method run my-dashboard lookup --input name="My dashboard"
02Models10
@shelson/newrelic-accountv2026.09.25.1account.ts
fn lookup(includeUsers: boolean)
Read the account plus its organization's authentication domains, groups and users
ArgumentTypeDescription
includeUsersboolean
fn nrql(query: string, name: string)
Run an ad-hoc NRQL query and store its results
ArgumentTypeDescription
querystring
namestring
@shelson/newrelic-alert-conditionv2026.09.25.1alert_condition.ts
fn create(policyId: string)
Create a NRQL alert condition on a policy
ArgumentTypeDescription
policyIdstring
fn update(id: string)
Update a NRQL alert condition
ArgumentTypeDescription
idstring
fn delete(id: string)
Delete an alert condition by ID
ArgumentTypeDescription
idstring
fn lookup(id?: string, name?: string, policyId?: string)
Look up a NRQL alert condition by ID, or by exact name within a policy
ArgumentTypeDescription
id?string
name?string
policyId?string
@shelson/newrelic-alert-policyv2026.09.25.1alert_policy.ts
fn create(name: string)
Create an alert policy
ArgumentTypeDescription
namestring
fn update(id: string, name?: string)
Update an alert policy's name or incident preference
ArgumentTypeDescription
idstring
name?string
fn delete(id: string)
Delete an alert policy by ID
ArgumentTypeDescription
idstring
fn lookup(id?: string, name?: string)
Look up an alert policy by ID or exact name
ArgumentTypeDescription
id?string
name?string
@shelson/newrelic-dashboardv2026.09.25.1dashboard.ts
fn create()
Create a dashboard
fn update(guid: string)
Replace a dashboard's definition
ArgumentTypeDescription
guidstring
fn delete(guid: string)
Delete a dashboard by GUID
ArgumentTypeDescription
guidstring
fn lookup(guid?: string, name?: string)
Look up a dashboard by GUID, or by exact name within the account
ArgumentTypeDescription
guid?string
name?string
@shelson/newrelic-muting-rulev2026.09.25.1muting_rule.ts
fn create(name: string, enabled: boolean, description?: string, actionOnMutingRuleWindowEnded?: string)
Create a muting rule
ArgumentTypeDescription
namestring
enabledboolean
description?string
actionOnMutingRuleWindowEnded?string
fn update(id: string, name?: string, enabled?: boolean, description?: string, actionOnMutingRuleWindowEnded?: string)
Update a muting rule
ArgumentTypeDescription
idstring
name?string
enabled?boolean
description?string
actionOnMutingRuleWindowEnded?string
fn delete(id: string)
Delete a muting rule by ID
ArgumentTypeDescription
idstring
fn lookup(id?: string, name?: string)
Look up a muting rule by ID, or by exact name within the account
ArgumentTypeDescription
id?string
name?string
@shelson/newrelic-notification-channelv2026.09.25.1notification_channel.ts
fn create(name: string, destinationId: string, product: string, properties: array)
Create a notification channel on a destination
ArgumentTypeDescription
namestring
destinationIdstring
productstring
propertiesarray
fn update(channelId: string, name?: string, active?: boolean, properties?: array)
Update a notification channel
ArgumentTypeDescription
channelIdstring
name?string
active?boolean
properties?array
fn delete(channelId: string)
Delete a notification channel by ID
ArgumentTypeDescription
channelIdstring
fn lookup(channelId?: string, name?: string, destinationId?: string)
Look up a channel by ID, or by name (optionally scoped to a destination) —
ArgumentTypeDescription
channelId?string
name?string
destinationId?string
@shelson/newrelic-notification-destinationv2026.09.25.1notification_destination.ts
fn create(name: string, properties: array)
Create a notification destination
ArgumentTypeDescription
namestring
propertiesarray
fn update(destinationId: string, name?: string, active?: boolean, properties?: array, disableAuth?: boolean)
Update a notification destination
ArgumentTypeDescription
destinationIdstring
name?string
active?boolean
properties?array
disableAuth?boolean
fn delete(destinationId: string)
Delete a notification destination by ID
ArgumentTypeDescription
destinationIdstring
fn lookup(destinationId?: string, name?: string)
Look up a notification destination by ID or exact name
ArgumentTypeDescription
destinationId?string
name?string
@shelson/newrelic-private-locationv2026.09.25.1private_location.ts
fn create(name: string, description?: string, verifiedScriptExecution: boolean, shared?: boolean)
Create a private location
ArgumentTypeDescription
namestring
description?string
verifiedScriptExecutionboolean
shared?boolean
fn update(guid: string, description?: string, verifiedScriptExecution?: boolean, shared?: boolean)
Update a private location's description or execution settings
ArgumentTypeDescription
guidstring
description?string
verifiedScriptExecution?boolean
shared?boolean
fn delete(guid: string)
Delete a private location by GUID
ArgumentTypeDescription
guidstring
fn lookup(guid?: string, name?: string)
Look up a private location by GUID, or by exact name within the account
ArgumentTypeDescription
guid?string
name?string
@shelson/newrelic-synthetic-monitorv2026.09.25.1synthetic_monitor.ts
fn create()
Create a synthetic monitor of the given type
fn update(guid: string)
Update a synthetic monitor by GUID
ArgumentTypeDescription
guidstring
fn delete(guid: string)
Delete a synthetic monitor by GUID
ArgumentTypeDescription
guidstring
fn lookup(guid?: string, name?: string)
Look up a synthetic monitor by GUID, or by exact name within the account
ArgumentTypeDescription
guid?string
name?string
@shelson/newrelic-workflowv2026.09.25.1workflow.ts
fn create(name: string, destinationConfigurations: array, workflowEnabled: boolean, destinationsEnabled: boolean)
Create a workflow
ArgumentTypeDescription
namestring
destinationConfigurationsarray
workflowEnabledboolean
destinationsEnabledboolean
fn update(id: string, name?: string, destinationConfigurations?: array, workflowEnabled?: boolean, destinationsEnabled?: boolean, deleteUnusedChannels: boolean)
Update a workflow
ArgumentTypeDescription
idstring
name?string
destinationConfigurations?array
workflowEnabled?boolean
destinationsEnabled?boolean
deleteUnusedChannelsboolean
fn delete(id: string, deleteChannels: boolean)
Delete a workflow by ID
ArgumentTypeDescription
idstring
deleteChannelsboolean
fn lookup(id?: string, name?: string)
Look up a workflow by ID or exact name
ArgumentTypeDescription
id?string
name?string
03Skills1
newrelic-models1 file
04Previous Versions2
2026.09.24.2
2026.09.24.1
05Stats
A
100 / 100
Downloads
27
Archive size
40.3 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
06Platforms
07Labels