Newrelic
@shelson/newrelicv2026.09.25.1
Security Notice
This extension includes AI agent skills that can modify AI assistant behavior. Review the skill files before installing.
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"02Models
@shelson/newrelic-accountv2026.09.25.1account.ts
fn lookup(includeUsers: boolean)
Read the account plus its organization's authentication domains, groups and users
| Argument | Type | Description |
|---|---|---|
| includeUsers | boolean |
fn nrql(query: string, name: string)
Run an ad-hoc NRQL query and store its results
| Argument | Type | Description |
|---|---|---|
| query | string | |
| name | string |
@shelson/newrelic-alert-conditionv2026.09.25.1alert_condition.ts
fn create(policyId: string)
Create a NRQL alert condition on a policy
| Argument | Type | Description |
|---|---|---|
| policyId | string |
fn update(id: string)
Update a NRQL alert condition
| Argument | Type | Description |
|---|---|---|
| id | string |
fn delete(id: string)
Delete an alert condition by ID
| Argument | Type | Description |
|---|---|---|
| id | string |
fn lookup(id?: string, name?: string, policyId?: string)
Look up a NRQL alert condition by ID, or by exact name within a policy
| Argument | Type | Description |
|---|---|---|
| id? | string | |
| name? | string | |
| policyId? | string |
@shelson/newrelic-alert-policyv2026.09.25.1alert_policy.ts
fn create(name: string)
Create an alert policy
| Argument | Type | Description |
|---|---|---|
| name | string |
fn update(id: string, name?: string)
Update an alert policy's name or incident preference
| Argument | Type | Description |
|---|---|---|
| id | string | |
| name? | string |
fn delete(id: string)
Delete an alert policy by ID
| Argument | Type | Description |
|---|---|---|
| id | string |
fn lookup(id?: string, name?: string)
Look up an alert policy by ID or exact name
| Argument | Type | Description |
|---|---|---|
| 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
| Argument | Type | Description |
|---|---|---|
| guid | string |
fn delete(guid: string)
Delete a dashboard by GUID
| Argument | Type | Description |
|---|---|---|
| guid | string |
fn lookup(guid?: string, name?: string)
Look up a dashboard by GUID, or by exact name within the account
| Argument | Type | Description |
|---|---|---|
| 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
| Argument | Type | Description |
|---|---|---|
| name | string | |
| enabled | boolean | |
| description? | string | |
| actionOnMutingRuleWindowEnded? | string |
fn update(id: string, name?: string, enabled?: boolean, description?: string, actionOnMutingRuleWindowEnded?: string)
Update a muting rule
| Argument | Type | Description |
|---|---|---|
| id | string | |
| name? | string | |
| enabled? | boolean | |
| description? | string | |
| actionOnMutingRuleWindowEnded? | string |
fn delete(id: string)
Delete a muting rule by ID
| Argument | Type | Description |
|---|---|---|
| id | string |
fn lookup(id?: string, name?: string)
Look up a muting rule by ID, or by exact name within the account
| Argument | Type | Description |
|---|---|---|
| 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
| Argument | Type | Description |
|---|---|---|
| name | string | |
| destinationId | string | |
| product | string | |
| properties | array |
fn update(channelId: string, name?: string, active?: boolean, properties?: array)
Update a notification channel
| Argument | Type | Description |
|---|---|---|
| channelId | string | |
| name? | string | |
| active? | boolean | |
| properties? | array |
fn delete(channelId: string)
Delete a notification channel by ID
| Argument | Type | Description |
|---|---|---|
| channelId | string |
fn lookup(channelId?: string, name?: string, destinationId?: string)
Look up a channel by ID, or by name (optionally scoped to a destination) —
| Argument | Type | Description |
|---|---|---|
| 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
| Argument | Type | Description |
|---|---|---|
| name | string | |
| properties | array |
fn update(destinationId: string, name?: string, active?: boolean, properties?: array, disableAuth?: boolean)
Update a notification destination
| Argument | Type | Description |
|---|---|---|
| destinationId | string | |
| name? | string | |
| active? | boolean | |
| properties? | array | |
| disableAuth? | boolean |
fn delete(destinationId: string)
Delete a notification destination by ID
| Argument | Type | Description |
|---|---|---|
| destinationId | string |
fn lookup(destinationId?: string, name?: string)
Look up a notification destination by ID or exact name
| Argument | Type | Description |
|---|---|---|
| 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
| Argument | Type | Description |
|---|---|---|
| name | string | |
| description? | string | |
| verifiedScriptExecution | boolean | |
| shared? | boolean |
fn update(guid: string, description?: string, verifiedScriptExecution?: boolean, shared?: boolean)
Update a private location's description or execution settings
| Argument | Type | Description |
|---|---|---|
| guid | string | |
| description? | string | |
| verifiedScriptExecution? | boolean | |
| shared? | boolean |
fn delete(guid: string)
Delete a private location by GUID
| Argument | Type | Description |
|---|---|---|
| guid | string |
fn lookup(guid?: string, name?: string)
Look up a private location by GUID, or by exact name within the account
| Argument | Type | Description |
|---|---|---|
| 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
| Argument | Type | Description |
|---|---|---|
| guid | string |
fn delete(guid: string)
Delete a synthetic monitor by GUID
| Argument | Type | Description |
|---|---|---|
| guid | string |
fn lookup(guid?: string, name?: string)
Look up a synthetic monitor by GUID, or by exact name within the account
| Argument | Type | Description |
|---|---|---|
| guid? | string | |
| name? | string |
@shelson/newrelic-workflowv2026.09.25.1workflow.ts
fn create(name: string, destinationConfigurations: array, workflowEnabled: boolean, destinationsEnabled: boolean)
Create a workflow
| Argument | Type | Description |
|---|---|---|
| name | string | |
| destinationConfigurations | array | |
| workflowEnabled | boolean | |
| destinationsEnabled | boolean |
fn update(id: string, name?: string, destinationConfigurations?: array, workflowEnabled?: boolean, destinationsEnabled?: boolean, deleteUnusedChannels: boolean)
Update a workflow
| Argument | Type | Description |
|---|---|---|
| id | string | |
| name? | string | |
| destinationConfigurations? | array | |
| workflowEnabled? | boolean | |
| destinationsEnabled? | boolean | |
| deleteUnusedChannels | boolean |
fn delete(id: string, deleteChannels: boolean)
Delete a workflow by ID
| Argument | Type | Description |
|---|---|---|
| id | string | |
| deleteChannels | boolean |
fn lookup(id?: string, name?: string)
Look up a workflow by ID or exact name
| Argument | Type | Description |
|---|---|---|
| id? | string | |
| name? | string |
03Skills
newrelic-models1 file
04Previous Versions
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