@rnsk/toolkits 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -2
- package/dist/index.d.ts +11 -1
- package/dist/index.js +21 -1
- package/dist/toolkits/bitbucket/tools/index.d.ts +5 -5
- package/dist/toolkits/bitbucket/tools/reports.d.ts +5 -5
- package/dist/toolkits/cloudflare/tools/create-list.d.ts +1 -1
- package/dist/toolkits/cloudflare/tools/create-zone.d.ts +1 -1
- package/dist/toolkits/cloudflare/tools/index.d.ts +4 -4
- package/dist/toolkits/cloudflare/tools/list-pools.d.ts +1 -1
- package/dist/toolkits/cloudflare/tools/list-zones.d.ts +1 -1
- package/dist/toolkits/convex/icon.d.ts +5 -0
- package/dist/toolkits/convex/icon.js +10 -0
- package/dist/toolkits/convex/manifest.d.ts +3 -0
- package/dist/toolkits/convex/manifest.js +33 -0
- package/dist/toolkits/convex/tools/client.d.ts +28 -0
- package/dist/toolkits/convex/tools/client.js +85 -0
- package/dist/toolkits/convex/tools/deploy-keys.d.ts +10 -0
- package/dist/toolkits/convex/tools/deploy-keys.js +46 -0
- package/dist/toolkits/convex/tools/deployments.d.ts +35 -0
- package/dist/toolkits/convex/tools/deployments.js +126 -0
- package/dist/toolkits/convex/tools/domains.d.ts +7 -0
- package/dist/toolkits/convex/tools/domains.js +29 -0
- package/dist/toolkits/convex/tools/functions.d.ts +14 -0
- package/dist/toolkits/convex/tools/functions.js +49 -0
- package/dist/toolkits/convex/tools/index.d.ts +176 -0
- package/dist/toolkits/convex/tools/index.js +145 -0
- package/dist/toolkits/convex/tools/logging.d.ts +5 -0
- package/dist/toolkits/convex/tools/logging.js +25 -0
- package/dist/toolkits/convex/tools/projects.d.ts +31 -0
- package/dist/toolkits/convex/tools/projects.js +111 -0
- package/dist/toolkits/convex/tools/teams.d.ts +12 -0
- package/dist/toolkits/convex/tools/teams.js +62 -0
- package/dist/toolkits/datadog/icon.d.ts +5 -0
- package/dist/toolkits/datadog/icon.js +6 -0
- package/dist/toolkits/datadog/manifest.d.ts +3 -0
- package/dist/toolkits/datadog/manifest.js +44 -0
- package/dist/toolkits/datadog/tools/api-keys.d.ts +21 -0
- package/dist/toolkits/datadog/tools/api-keys.js +42 -0
- package/dist/toolkits/datadog/tools/apm.d.ts +51 -0
- package/dist/toolkits/datadog/tools/apm.js +106 -0
- package/dist/toolkits/datadog/tools/client.d.ts +19 -0
- package/dist/toolkits/datadog/tools/client.js +81 -0
- package/dist/toolkits/datadog/tools/dashboards.d.ts +93 -0
- package/dist/toolkits/datadog/tools/dashboards.js +127 -0
- package/dist/toolkits/datadog/tools/events.d.ts +35 -0
- package/dist/toolkits/datadog/tools/events.js +56 -0
- package/dist/toolkits/datadog/tools/hosts.d.ts +49 -0
- package/dist/toolkits/datadog/tools/hosts.js +87 -0
- package/dist/toolkits/datadog/tools/incidents.d.ts +18 -0
- package/dist/toolkits/datadog/tools/incidents.js +34 -0
- package/dist/toolkits/datadog/tools/index.d.ts +999 -0
- package/dist/toolkits/datadog/tools/index.js +450 -0
- package/dist/toolkits/datadog/tools/integrations.d.ts +32 -0
- package/dist/toolkits/datadog/tools/integrations.js +47 -0
- package/dist/toolkits/datadog/tools/logs.d.ts +39 -0
- package/dist/toolkits/datadog/tools/logs.js +121 -0
- package/dist/toolkits/datadog/tools/metrics.d.ts +27 -0
- package/dist/toolkits/datadog/tools/metrics.js +83 -0
- package/dist/toolkits/datadog/tools/monitors.d.ts +95 -0
- package/dist/toolkits/datadog/tools/monitors.js +190 -0
- package/dist/toolkits/datadog/tools/oncall-notifications.d.ts +61 -0
- package/dist/toolkits/datadog/tools/oncall-notifications.js +155 -0
- package/dist/toolkits/datadog/tools/oncall-policies.d.ts +28 -0
- package/dist/toolkits/datadog/tools/oncall-policies.js +72 -0
- package/dist/toolkits/datadog/tools/oncall-schedules.d.ts +31 -0
- package/dist/toolkits/datadog/tools/oncall-schedules.js +87 -0
- package/dist/toolkits/datadog/tools/oncall-teams.d.ts +14 -0
- package/dist/toolkits/datadog/tools/oncall-teams.js +54 -0
- package/dist/toolkits/datadog/tools/slos.d.ts +43 -0
- package/dist/toolkits/datadog/tools/slos.js +62 -0
- package/dist/toolkits/datadog/tools/synthetics.d.ts +58 -0
- package/dist/toolkits/datadog/tools/synthetics.js +90 -0
- package/dist/toolkits/datadog/tools/usage.d.ts +7 -0
- package/dist/toolkits/datadog/tools/usage.js +25 -0
- package/dist/toolkits/datadog/tools/users.d.ts +35 -0
- package/dist/toolkits/datadog/tools/users.js +66 -0
- package/dist/toolkits/dev-to/icon.d.ts +5 -0
- package/dist/toolkits/dev-to/icon.js +10 -0
- package/dist/toolkits/dev-to/manifest.d.ts +3 -0
- package/dist/toolkits/dev-to/manifest.js +34 -0
- package/dist/toolkits/dev-to/tools/articles.d.ts +78 -0
- package/dist/toolkits/dev-to/tools/articles.js +262 -0
- package/dist/toolkits/dev-to/tools/client.d.ts +25 -0
- package/dist/toolkits/dev-to/tools/client.js +65 -0
- package/dist/toolkits/dev-to/tools/community.d.ts +61 -0
- package/dist/toolkits/dev-to/tools/community.js +244 -0
- package/dist/toolkits/dev-to/tools/index.d.ts +202 -0
- package/dist/toolkits/dev-to/tools/index.js +37 -0
- package/dist/toolkits/dev-to/tools/listings.d.ts +26 -0
- package/dist/toolkits/dev-to/tools/listings.js +92 -0
- package/dist/toolkits/discord/tools/applications.d.ts +5 -5
- package/dist/toolkits/discord/tools/index.d.ts +5 -5
- package/dist/toolkits/figma/tools/create-modify-delete-variables.d.ts +1 -1
- package/dist/toolkits/figma/tools/get-file-nodes.d.ts +1 -1
- package/dist/toolkits/figma/tools/index.d.ts +3 -3
- package/dist/toolkits/figma/tools/render-images-of-file-nodes.d.ts +1 -1
- package/dist/toolkits/google-analytics/tools/reports.d.ts +9 -9
- package/dist/toolkits/google-classroom/tools/index.d.ts +7 -7
- package/dist/toolkits/google-classroom/tools/invitations.d.ts +2 -2
- package/dist/toolkits/google-classroom/tools/misc.d.ts +1 -1
- package/dist/toolkits/google-classroom/tools/roster.d.ts +5 -5
- package/dist/toolkits/google-search-console/tools/index.d.ts +2 -2
- package/dist/toolkits/google-search-console/tools/search-analytics-query.d.ts +2 -2
- package/dist/toolkits/hostinger/tools/index.d.ts +1 -1
- package/dist/toolkits/hostinger/tools/whois.d.ts +1 -1
- package/dist/toolkits/hugging-face/tools/datasets-viewer.d.ts +1 -1
- package/dist/toolkits/hugging-face/tools/datasets.d.ts +1 -1
- package/dist/toolkits/hugging-face/tools/index.d.ts +1 -1
- package/dist/toolkits/hugging-face/tools/models.d.ts +1 -1
- package/dist/toolkits/hugging-face/tools/repos.d.ts +1 -1
- package/dist/toolkits/hugging-face/tools/spaces.d.ts +1 -1
- package/dist/toolkits/jira/tools/index.d.ts +4 -4
- package/dist/toolkits/jira/tools/meta.d.ts +2 -2
- package/dist/toolkits/jira/tools/users.d.ts +3 -3
- package/dist/toolkits/kaggle/icon.d.ts +5 -0
- package/dist/toolkits/kaggle/icon.js +6 -0
- package/dist/toolkits/kaggle/manifest.d.ts +3 -0
- package/dist/toolkits/kaggle/manifest.js +32 -0
- package/dist/toolkits/kaggle/tools/client.d.ts +10 -0
- package/dist/toolkits/kaggle/tools/client.js +94 -0
- package/dist/toolkits/kaggle/tools/competitions.d.ts +48 -0
- package/dist/toolkits/kaggle/tools/competitions.js +109 -0
- package/dist/toolkits/kaggle/tools/config.d.ts +110 -0
- package/dist/toolkits/kaggle/tools/config.js +256 -0
- package/dist/toolkits/kaggle/tools/datasets.d.ts +88 -0
- package/dist/toolkits/kaggle/tools/datasets.js +161 -0
- package/dist/toolkits/kaggle/tools/index.d.ts +482 -0
- package/dist/toolkits/kaggle/tools/index.js +53 -0
- package/dist/toolkits/kaggle/tools/kernels.d.ts +62 -0
- package/dist/toolkits/kaggle/tools/kernels.js +121 -0
- package/dist/toolkits/kaggle/tools/model_instance_files.d.ts +11 -0
- package/dist/toolkits/kaggle/tools/model_instance_files.js +23 -0
- package/dist/toolkits/kaggle/tools/model_instances.d.ts +8 -0
- package/dist/toolkits/kaggle/tools/model_instances.js +20 -0
- package/dist/toolkits/kaggle/tools/models.d.ts +14 -0
- package/dist/toolkits/kaggle/tools/models.js +33 -0
- package/dist/toolkits/nasa/icon.d.ts +5 -0
- package/dist/toolkits/nasa/icon.js +56 -0
- package/dist/toolkits/nasa/manifest.d.ts +3 -0
- package/dist/toolkits/nasa/manifest.js +49 -0
- package/dist/toolkits/nasa/tools/agage.d.ts +60 -0
- package/dist/toolkits/nasa/tools/agage.js +176 -0
- package/dist/toolkits/nasa/tools/client.d.ts +95 -0
- package/dist/toolkits/nasa/tools/client.js +337 -0
- package/dist/toolkits/nasa/tools/cmr.d.ts +268 -0
- package/dist/toolkits/nasa/tools/cmr.js +984 -0
- package/dist/toolkits/nasa/tools/donki.d.ts +63 -0
- package/dist/toolkits/nasa/tools/donki.js +301 -0
- package/dist/toolkits/nasa/tools/eonet.d.ts +74 -0
- package/dist/toolkits/nasa/tools/eonet.js +279 -0
- package/dist/toolkits/nasa/tools/icesat2.d.ts +25 -0
- package/dist/toolkits/nasa/tools/icesat2.js +97 -0
- package/dist/toolkits/nasa/tools/imagery.d.ts +36 -0
- package/dist/toolkits/nasa/tools/imagery.js +138 -0
- package/dist/toolkits/nasa/tools/index.d.ts +1063 -0
- package/dist/toolkits/nasa/tools/index.js +865 -0
- package/dist/toolkits/nasa/tools/neo.d.ts +15 -0
- package/dist/toolkits/nasa/tools/neo.js +75 -0
- package/dist/toolkits/nasa/tools/ntrs.d.ts +152 -0
- package/dist/toolkits/nasa/tools/ntrs.js +292 -0
- package/dist/toolkits/nasa/tools/osdr.d.ts +72 -0
- package/dist/toolkits/nasa/tools/osdr.js +290 -0
- package/dist/toolkits/nasa/tools/planetary.d.ts +58 -0
- package/dist/toolkits/nasa/tools/planetary.js +312 -0
- package/dist/toolkits/nasa/tools/power.d.ts +52 -0
- package/dist/toolkits/nasa/tools/power.js +213 -0
- package/dist/toolkits/nasa/tools/ssc.d.ts +44 -0
- package/dist/toolkits/nasa/tools/ssc.js +92 -0
- package/dist/toolkits/nasa/tools/tolnet.d.ts +84 -0
- package/dist/toolkits/nasa/tools/tolnet.js +254 -0
- package/dist/toolkits/neo4j/tools/analytics.d.ts +1 -1
- package/dist/toolkits/neo4j/tools/index.d.ts +3 -3
- package/dist/toolkits/neo4j/tools/instances.d.ts +2 -2
- package/dist/toolkits/neon/tools/auth.d.ts +4 -4
- package/dist/toolkits/neon/tools/dataapi.d.ts +1 -1
- package/dist/toolkits/neon/tools/index.d.ts +7 -7
- package/dist/toolkits/neon/tools/projects.d.ts +2 -2
- package/dist/toolkits/new-relic/icon.d.ts +5 -0
- package/dist/toolkits/new-relic/icon.js +6 -0
- package/dist/toolkits/new-relic/manifest.d.ts +3 -0
- package/dist/toolkits/new-relic/manifest.js +41 -0
- package/dist/toolkits/new-relic/tools/admin.d.ts +310 -0
- package/dist/toolkits/new-relic/tools/admin.js +282 -0
- package/dist/toolkits/new-relic/tools/alert-policies.d.ts +74 -0
- package/dist/toolkits/new-relic/tools/alert-policies.js +136 -0
- package/dist/toolkits/new-relic/tools/apm.d.ts +129 -0
- package/dist/toolkits/new-relic/tools/apm.js +228 -0
- package/dist/toolkits/new-relic/tools/client.d.ts +62 -0
- package/dist/toolkits/new-relic/tools/client.js +167 -0
- package/dist/toolkits/new-relic/tools/conditions.d.ts +190 -0
- package/dist/toolkits/new-relic/tools/conditions.js +265 -0
- package/dist/toolkits/new-relic/tools/config.d.ts +73 -0
- package/dist/toolkits/new-relic/tools/config.js +131 -0
- package/dist/toolkits/new-relic/tools/dashboards.d.ts +204 -0
- package/dist/toolkits/new-relic/tools/dashboards.js +159 -0
- package/dist/toolkits/new-relic/tools/entities.d.ts +160 -0
- package/dist/toolkits/new-relic/tools/entities.js +218 -0
- package/dist/toolkits/new-relic/tools/index.d.ts +23 -0
- package/dist/toolkits/new-relic/tools/index.js +179 -0
- package/dist/toolkits/new-relic/tools/ingest.d.ts +31 -0
- package/dist/toolkits/new-relic/tools/ingest.js +80 -0
- package/dist/toolkits/new-relic/tools/notifications.d.ts +186 -0
- package/dist/toolkits/new-relic/tools/notifications.js +232 -0
- package/dist/toolkits/new-relic/tools/nrql-conditions.d.ts +105 -0
- package/dist/toolkits/new-relic/tools/nrql-conditions.js +136 -0
- package/dist/toolkits/new-relic/tools/nrql.d.ts +38 -0
- package/dist/toolkits/new-relic/tools/nrql.js +99 -0
- package/dist/toolkits/new-relic/tools/synthetics.d.ts +176 -0
- package/dist/toolkits/new-relic/tools/synthetics.js +246 -0
- package/dist/toolkits/notebook-lm/icon.d.ts +5 -0
- package/dist/toolkits/notebook-lm/icon.js +6 -0
- package/dist/toolkits/notebook-lm/manifest.d.ts +3 -0
- package/dist/toolkits/notebook-lm/manifest.js +44 -0
- package/dist/toolkits/notebook-lm/tools/add-text-sources.d.ts +36 -0
- package/dist/toolkits/notebook-lm/tools/add-text-sources.js +51 -0
- package/dist/toolkits/notebook-lm/tools/create-audio-overview.d.ts +47 -0
- package/dist/toolkits/notebook-lm/tools/create-audio-overview.js +55 -0
- package/dist/toolkits/notebook-lm/tools/create-notebook.d.ts +52 -0
- package/dist/toolkits/notebook-lm/tools/create-notebook.js +49 -0
- package/dist/toolkits/notebook-lm/tools/delete-audio-overview.d.ts +33 -0
- package/dist/toolkits/notebook-lm/tools/delete-audio-overview.js +46 -0
- package/dist/toolkits/notebook-lm/tools/delete-notebooks.d.ts +32 -0
- package/dist/toolkits/notebook-lm/tools/delete-notebooks.js +46 -0
- package/dist/toolkits/notebook-lm/tools/delete-sources.d.ts +33 -0
- package/dist/toolkits/notebook-lm/tools/delete-sources.js +47 -0
- package/dist/toolkits/notebook-lm/tools/get-notebook.d.ts +52 -0
- package/dist/toolkits/notebook-lm/tools/get-notebook.js +45 -0
- package/dist/toolkits/notebook-lm/tools/get-source.d.ts +53 -0
- package/dist/toolkits/notebook-lm/tools/get-source.js +47 -0
- package/dist/toolkits/notebook-lm/tools/index.d.ts +516 -0
- package/dist/toolkits/notebook-lm/tools/index.js +93 -0
- package/dist/toolkits/notebook-lm/tools/list-recent-notebooks.d.ts +32 -0
- package/dist/toolkits/notebook-lm/tools/list-recent-notebooks.js +41 -0
- package/dist/toolkits/notebook-lm/tools/share-notebook.d.ts +48 -0
- package/dist/toolkits/notebook-lm/tools/share-notebook.js +57 -0
- package/dist/toolkits/notebook-lm/tools/upload-source-file.d.ts +40 -0
- package/dist/toolkits/notebook-lm/tools/upload-source-file.js +62 -0
- package/dist/toolkits/notebook-lm/tools/utils.d.ts +15 -0
- package/dist/toolkits/notebook-lm/tools/utils.js +46 -0
- package/dist/toolkits/npm/icon.d.ts +5 -0
- package/dist/toolkits/npm/icon.js +11 -0
- package/dist/toolkits/npm/manifest.d.ts +3 -0
- package/dist/toolkits/npm/manifest.js +35 -0
- package/dist/toolkits/npm/tools/client.d.ts +19 -0
- package/dist/toolkits/npm/tools/client.js +64 -0
- package/dist/toolkits/npm/tools/downloads.d.ts +19 -0
- package/dist/toolkits/npm/tools/downloads.js +39 -0
- package/dist/toolkits/npm/tools/index.d.ts +14 -0
- package/dist/toolkits/npm/tools/index.js +24 -0
- package/dist/toolkits/npm/tools/registry.d.ts +24 -0
- package/dist/toolkits/npm/tools/registry.js +58 -0
- package/dist/toolkits/npm/tools/security.d.ts +9 -0
- package/dist/toolkits/npm/tools/security.js +29 -0
- package/dist/toolkits/slack/tools/admin-users.d.ts +1 -1
- package/dist/toolkits/slack/tools/slack-lists.d.ts +3 -3
- package/dist/toolkits/snowflake/icon.d.ts +5 -0
- package/dist/toolkits/snowflake/icon.js +6 -0
- package/dist/toolkits/snowflake/manifest.d.ts +3 -0
- package/dist/toolkits/snowflake/manifest.js +32 -0
- package/dist/toolkits/snowflake/tools/catalog.d.ts +56 -0
- package/dist/toolkits/snowflake/tools/catalog.js +123 -0
- package/dist/toolkits/snowflake/tools/client.d.ts +53 -0
- package/dist/toolkits/snowflake/tools/client.js +145 -0
- package/dist/toolkits/snowflake/tools/index.d.ts +14 -0
- package/dist/toolkits/snowflake/tools/index.js +28 -0
- package/dist/toolkits/snowflake/tools/statements.d.ts +27 -0
- package/dist/toolkits/snowflake/tools/statements.js +84 -0
- package/dist/toolkits/snowflake/tools/status.d.ts +22 -0
- package/dist/toolkits/snowflake/tools/status.js +54 -0
- package/dist/toolkits/telegram/icon.d.ts +5 -0
- package/dist/toolkits/telegram/icon.js +6 -0
- package/dist/toolkits/telegram/manifest.d.ts +3 -0
- package/dist/toolkits/telegram/manifest.js +34 -0
- package/dist/toolkits/telegram/tools/bot.d.ts +13 -0
- package/dist/toolkits/telegram/tools/bot.js +23 -0
- package/dist/toolkits/telegram/tools/chats.d.ts +22 -0
- package/dist/toolkits/telegram/tools/chats.js +46 -0
- package/dist/toolkits/telegram/tools/client.d.ts +12 -0
- package/dist/toolkits/telegram/tools/client.js +46 -0
- package/dist/toolkits/telegram/tools/index.d.ts +15 -0
- package/dist/toolkits/telegram/tools/index.js +31 -0
- package/dist/toolkits/telegram/tools/messages.d.ts +86 -0
- package/dist/toolkits/telegram/tools/messages.js +134 -0
- package/dist/toolkits/telegram/tools/updates.d.ts +23 -0
- package/dist/toolkits/telegram/tools/updates.js +54 -0
- package/dist/toolkits/youtube/tools/get-channel-activities.d.ts +1 -1
- package/dist/toolkits/youtube/tools/index.d.ts +5 -5
- package/dist/toolkits/youtube/tools/list-channel-sections.d.ts +1 -1
- package/dist/toolkits/youtube/tools/post-comment.d.ts +1 -1
- package/dist/toolkits/youtube/tools/subscribe-channel.d.ts +1 -1
- package/dist/toolkits/youtube/tools/unsubscribe-channel.d.ts +1 -1
- package/package.json +2 -3
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { accountIdField, nerdgraph, newRelicApiKeyField, restV2 } from './client.js';
|
|
5
|
+
const signalInput = z.object({
|
|
6
|
+
aggregationWindow: z.number().int().min(30).describe('Aggregation window seconds (static: 30-120; baseline: 30-3600)'),
|
|
7
|
+
aggregationMethod: z.enum(['EVENT_FLOW', 'EVENT_TIMER', 'CADENCE']).describe('EVENT_FLOW recommended'),
|
|
8
|
+
aggregationDelay: z.number().int().min(0).max(1200).optional().describe('Delay seconds for late data (0-1200)'),
|
|
9
|
+
}).describe('Signal aggregation config');
|
|
10
|
+
const staticTerm = z.object({
|
|
11
|
+
threshold: z.number().describe('Threshold value triggering the alert'),
|
|
12
|
+
thresholdDuration: z.number().int().min(60).describe('Seconds violated before alerting (multiple of 60)'),
|
|
13
|
+
thresholdOccurrences: z.enum(['ALL', 'AT_LEAST_ONCE']).describe('ALL: every point violates; AT_LEAST_ONCE: one point'),
|
|
14
|
+
operator: z.enum(['ABOVE', 'ABOVE_OR_EQUALS', 'BELOW', 'BELOW_OR_EQUALS', 'EQUALS', 'NOT_EQUALS']),
|
|
15
|
+
priority: z.enum(['CRITICAL', 'WARNING']),
|
|
16
|
+
});
|
|
17
|
+
const CONDITION_SELECT = 'id name enabled';
|
|
18
|
+
export const createStaticNrqlCondition = tool({
|
|
19
|
+
description: 'Creates a static NRQL alert condition (threshold-based) via NerdGraph. Find the policy ID via getAlertPolicies first.',
|
|
20
|
+
inputSchema: z.object({
|
|
21
|
+
newRelicApiKey: newRelicApiKeyField,
|
|
22
|
+
accountId: accountIdField('Account ID for the condition'),
|
|
23
|
+
policyId: z.string().describe('Policy ID to attach the condition to'),
|
|
24
|
+
name: z.string().describe('Condition name, unique within the policy'),
|
|
25
|
+
nrql: z.object({ query: z.string().describe("NRQL query, e.g. 'SELECT count(*) FROM Transaction'") }).describe('Query to monitor'),
|
|
26
|
+
signal: signalInput,
|
|
27
|
+
terms: staticTerm.describe('Threshold definition'),
|
|
28
|
+
valueFunction: z.enum(['SINGLE_VALUE', 'SUM']).describe('SINGLE_VALUE for scalars, SUM for aggregates'),
|
|
29
|
+
violationTimeLimitSeconds: z.number().int().min(300).max(2592000).describe('Max seconds a violation stays open (300-2592000)'),
|
|
30
|
+
enabled: z.boolean().optional().describe('Actively monitoring (default true)'),
|
|
31
|
+
description: z.string().optional(),
|
|
32
|
+
expiration: z.object({
|
|
33
|
+
expirationDuration: z.number().int().min(30).max(172800).optional(),
|
|
34
|
+
openViolationOnExpiration: z.boolean().optional().describe('Loss-of-signal detection'),
|
|
35
|
+
closeViolationsOnExpiration: z.boolean().optional(),
|
|
36
|
+
}).optional().describe('Signal-loss handling'),
|
|
37
|
+
}),
|
|
38
|
+
execute: async ({ newRelicApiKey, accountId, policyId, ...condition }) => nerdgraph(newRelicApiKey, `mutation($accountId: Int!, $policyId: ID!, $condition: AlertsNrqlStaticConditionInput!) { alertsNrqlConditionStaticCreate(accountId: $accountId, policyId: $policyId, condition: $condition) { ${CONDITION_SELECT} } }`, { accountId, policyId, condition: { enabled: true, ...condition } }, 'create static NRQL condition'),
|
|
39
|
+
});
|
|
40
|
+
export const updateStaticNrqlCondition = tool({
|
|
41
|
+
description: 'Updates a static NRQL condition via NerdGraph. Only provided fields change; static-type conditions only.',
|
|
42
|
+
inputSchema: z.object({
|
|
43
|
+
newRelicApiKey: newRelicApiKeyField,
|
|
44
|
+
accountId: accountIdField('Account ID owning the condition'),
|
|
45
|
+
id: z.string().describe('Condition ID to update'),
|
|
46
|
+
condition: z.record(z.any()).describe("Fields to change: name, nrql {query}, signal, terms, valueFunction, enabled, description, expiration, etc."),
|
|
47
|
+
}),
|
|
48
|
+
execute: async ({ newRelicApiKey, accountId, id, condition }) => nerdgraph(newRelicApiKey, `mutation($accountId: Int!, $id: ID!, $condition: AlertsNrqlStaticConditionUpdateInput!) { alertsNrqlConditionStaticUpdate(accountId: $accountId, id: $id, condition: $condition) { ${CONDITION_SELECT} } }`, { accountId, id, condition }, 'update static NRQL condition'),
|
|
49
|
+
});
|
|
50
|
+
const baselineTerm = z.object({
|
|
51
|
+
threshold: z.number().describe('Standard deviations from baseline triggering the alert'),
|
|
52
|
+
thresholdDuration: z.number().int().min(60).max(7200).describe('Breach seconds before alerting (60-7200)'),
|
|
53
|
+
thresholdOccurrences: z.enum(['ALL', 'AT_LEAST_ONCE']),
|
|
54
|
+
operator: z.enum(['ABOVE', 'BELOW', 'EQUALS']),
|
|
55
|
+
priority: z.enum(['CRITICAL', 'WARNING']),
|
|
56
|
+
});
|
|
57
|
+
export const createNrqlBaselineCondition = tool({
|
|
58
|
+
description: 'Creates a NRQL baseline condition (ML anomaly detection vs historical baseline) via NerdGraph. Use for anomaly detection instead of static thresholds.',
|
|
59
|
+
inputSchema: z.object({
|
|
60
|
+
newRelicApiKey: newRelicApiKeyField,
|
|
61
|
+
accountId: accountIdField('Account ID for the condition'),
|
|
62
|
+
policyId: z.number().int().describe('Policy ID to attach the condition to'),
|
|
63
|
+
condition: z.object({
|
|
64
|
+
name: z.string().describe('Condition name'),
|
|
65
|
+
enabled: z.boolean().describe('Actively monitoring'),
|
|
66
|
+
baselineDirection: z.enum(['LOWER_ONLY', 'UPPER_ONLY', 'UPPER_AND_LOWER']).describe('Anomaly direction'),
|
|
67
|
+
nrql: z.object({ query: z.string().describe("NRQL query, e.g. 'SELECT average(duration) FROM Transaction'") }),
|
|
68
|
+
signal: signalInput,
|
|
69
|
+
terms: z.array(baselineTerm).min(1).describe('Threshold terms (at least one)'),
|
|
70
|
+
runbookUrl: z.string().optional(),
|
|
71
|
+
description: z.string().optional(),
|
|
72
|
+
}).describe('Baseline condition configuration'),
|
|
73
|
+
}),
|
|
74
|
+
execute: async ({ newRelicApiKey, accountId, policyId, condition }) => nerdgraph(newRelicApiKey, `mutation($accountId: Int!, $policyId: ID!, $condition: AlertsNrqlBaselineConditionInput!) { alertsNrqlConditionBaselineCreate(accountId: $accountId, policyId: $policyId, condition: $condition) { ${CONDITION_SELECT} baselineDirection } }`, { accountId, policyId: String(policyId), condition }, 'create NRQL baseline condition'),
|
|
75
|
+
});
|
|
76
|
+
export const updateNrqlBaselineCondition = tool({
|
|
77
|
+
description: 'Updates a baseline NRQL condition via NerdGraph (name, direction, thresholds, query, etc.). Baseline-type only.',
|
|
78
|
+
inputSchema: z.object({
|
|
79
|
+
newRelicApiKey: newRelicApiKeyField,
|
|
80
|
+
accountId: accountIdField('Account ID owning the condition'),
|
|
81
|
+
id: z.string().describe('Baseline condition ID to update'),
|
|
82
|
+
condition: z.record(z.any()).describe('Fields to change: name, baselineDirection, nrql {query, dataAccountId}, terms, signal, expiration, enabled, etc.'),
|
|
83
|
+
}),
|
|
84
|
+
execute: async ({ newRelicApiKey, accountId, id, condition }) => nerdgraph(newRelicApiKey, `mutation($accountId: Int!, $id: ID!, $condition: AlertsNrqlBaselineConditionUpdateInput!) { alertsNrqlConditionBaselineUpdate(accountId: $accountId, id: $id, condition: $condition) { ${CONDITION_SELECT} baselineDirection } }`, { accountId, id, condition }, 'update NRQL baseline condition'),
|
|
85
|
+
});
|
|
86
|
+
const restTerm = z.object({
|
|
87
|
+
duration: z.string().describe("Minutes as string, e.g. '5'"),
|
|
88
|
+
operator: z.enum(['above', 'below', 'equal']),
|
|
89
|
+
priority: z.enum(['critical', 'warning']),
|
|
90
|
+
threshold: z.string().describe("Numeric string, e.g. '100'"),
|
|
91
|
+
timeFunction: z.enum(['all', 'any']).describe('all: entire duration; any: at least once'),
|
|
92
|
+
});
|
|
93
|
+
export const createNrqlCondition = tool({
|
|
94
|
+
description: 'Creates a NRQL alert condition via REST API v2 for threshold alerting on custom queries.',
|
|
95
|
+
inputSchema: z.object({
|
|
96
|
+
newRelicApiKey: newRelicApiKeyField,
|
|
97
|
+
policyId: z.number().int().describe('Policy ID to add the condition to'),
|
|
98
|
+
nrqlCondition: z.object({
|
|
99
|
+
name: z.string().describe('Condition name, unique within the policy'),
|
|
100
|
+
enabled: z.boolean().describe('Active immediately'),
|
|
101
|
+
nrql: z.object({ query: z.string().describe("Valid NRQL SELECT, e.g. 'SELECT count(*) FROM Transaction'") }),
|
|
102
|
+
terms: z.array(restTerm).min(1).describe('Threshold terms (at least one)'),
|
|
103
|
+
type: z.enum(['static']).optional().describe("Condition type (default 'static')"),
|
|
104
|
+
runbookUrl: z.string().optional(),
|
|
105
|
+
valueFunction: z.string().optional().describe("e.g. 'single_value'"),
|
|
106
|
+
}).describe('NRQL condition configuration'),
|
|
107
|
+
}),
|
|
108
|
+
execute: async ({ newRelicApiKey, policyId, nrqlCondition }) => restV2(newRelicApiKey, 'POST', `/alerts_nrql_conditions/policies/${policyId}.json`, { body: { nrql_condition: { type: 'static', ...nrqlCondition } } }, 'create NRQL condition'),
|
|
109
|
+
});
|
|
110
|
+
export const updateNrqlCondition = tool({
|
|
111
|
+
description: 'Updates a NRQL condition (name, query, thresholds, enabled) via REST API v2. Only provided fields change.',
|
|
112
|
+
inputSchema: z.object({
|
|
113
|
+
newRelicApiKey: newRelicApiKeyField,
|
|
114
|
+
conditionId: z.number().int().describe('NRQL condition ID to update'),
|
|
115
|
+
nrqlCondition: z.record(z.any()).describe('Fields to change: name, nrql {query}, terms, enabled, runbook_url, value_function, etc.'),
|
|
116
|
+
}),
|
|
117
|
+
execute: async ({ newRelicApiKey, conditionId, nrqlCondition }) => restV2(newRelicApiKey, 'PUT', `/alerts_nrql_conditions/${conditionId}.json`, { body: { nrql_condition: nrqlCondition } }, 'update NRQL condition'),
|
|
118
|
+
});
|
|
119
|
+
export const deleteNrqlCondition = tool({
|
|
120
|
+
description: 'Deletes a NRQL alert condition via REST API v2 after confirming the condition ID.',
|
|
121
|
+
inputSchema: z.object({
|
|
122
|
+
newRelicApiKey: newRelicApiKeyField,
|
|
123
|
+
conditionId: z.number().int().describe('NRQL condition ID to delete'),
|
|
124
|
+
}),
|
|
125
|
+
execute: async ({ newRelicApiKey, conditionId }) => restV2(newRelicApiKey, 'DELETE', `/alerts_nrql_conditions/${conditionId}.json`, undefined, 'delete NRQL condition'),
|
|
126
|
+
});
|
|
127
|
+
export const listNrqlConditions = tool({
|
|
128
|
+
description: 'Lists NRQL conditions for a policy via REST API v2 (queries, thresholds, enabled state).',
|
|
129
|
+
inputSchema: z.object({
|
|
130
|
+
newRelicApiKey: newRelicApiKeyField,
|
|
131
|
+
policyId: z.number().int().describe('Policy ID to list NRQL conditions for'),
|
|
132
|
+
page: z.number().int().min(1).optional().describe('Page number for large result sets'),
|
|
133
|
+
}),
|
|
134
|
+
execute: async ({ newRelicApiKey, policyId, page }) => restV2(newRelicApiKey, 'GET', '/alerts_nrql_conditions.json', { query: { policy_id: policyId, page } }, 'list NRQL conditions'),
|
|
135
|
+
});
|
|
136
|
+
//# sourceMappingURL=nrql-conditions.js.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const executeNrqlQuery: import("ai").Tool<{
|
|
2
|
+
query: string;
|
|
3
|
+
accountId: number;
|
|
4
|
+
timeout?: number | undefined;
|
|
5
|
+
newRelicApiKey?: string | undefined;
|
|
6
|
+
asyncExecution?: boolean | undefined;
|
|
7
|
+
}, any>;
|
|
8
|
+
export declare const queryError: import("ai").Tool<{
|
|
9
|
+
accountId: number;
|
|
10
|
+
nrqlQuery: string;
|
|
11
|
+
newRelicApiKey?: string | undefined;
|
|
12
|
+
}, any>;
|
|
13
|
+
export declare const queryExampleReadQuery: import("ai").Tool<{
|
|
14
|
+
query: string;
|
|
15
|
+
newRelicApiKey?: string | undefined;
|
|
16
|
+
variables?: Record<string, any> | undefined;
|
|
17
|
+
}, any>;
|
|
18
|
+
export declare const searchEntities: import("ai").Tool<{
|
|
19
|
+
query?: string | undefined;
|
|
20
|
+
type?: string | undefined;
|
|
21
|
+
domain?: string | undefined;
|
|
22
|
+
newRelicApiKey?: string | undefined;
|
|
23
|
+
infrastructureIntegrationType?: string | undefined;
|
|
24
|
+
cursor?: string | undefined;
|
|
25
|
+
}, any>;
|
|
26
|
+
export declare const fetchRulesCollection: import("ai").Tool<{
|
|
27
|
+
collectionId: string;
|
|
28
|
+
newRelicApiKey?: string | undefined;
|
|
29
|
+
cursor?: string | undefined;
|
|
30
|
+
}, any>;
|
|
31
|
+
export declare const fetchYourOrgId: import("ai").Tool<{
|
|
32
|
+
newRelicApiKey?: string | undefined;
|
|
33
|
+
}, any>;
|
|
34
|
+
export declare const queryCloudProviders: import("ai").Tool<{
|
|
35
|
+
accountId: number;
|
|
36
|
+
newRelicApiKey?: string | undefined;
|
|
37
|
+
}, any>;
|
|
38
|
+
//# sourceMappingURL=nrql.d.ts.map
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { accountIdField, nerdgraph, newRelicApiKeyField } from './client.js';
|
|
5
|
+
const NRQL_SELECT = 'results queryProgress { queryId completed retryAfter retryDeadline resultExpiration }';
|
|
6
|
+
function nrqlQueryObject(accountId, nrql, timeout, asyncExecution) {
|
|
7
|
+
return `{
|
|
8
|
+
actor {
|
|
9
|
+
account(id: ${accountId}) {
|
|
10
|
+
nrql(query: ${JSON.stringify(nrql)}${timeout !== undefined ? `, timeout: ${timeout}` : ''}${asyncExecution ? ', async: true' : ''}) {
|
|
11
|
+
${NRQL_SELECT}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}`;
|
|
16
|
+
}
|
|
17
|
+
export const executeNrqlQuery = tool({
|
|
18
|
+
description: "Executes a NRQL query against telemetry data (transactions, logs, metrics, events). Use asyncExecution for queries over ~5s, then poll with the returned queryId via the same query string.",
|
|
19
|
+
inputSchema: z.object({
|
|
20
|
+
newRelicApiKey: newRelicApiKeyField,
|
|
21
|
+
accountId: accountIdField('Account ID whose data to query'),
|
|
22
|
+
query: z.string().describe("NRQL query, e.g. 'SELECT count(*) FROM Transaction SINCE 1 HOUR AGO'"),
|
|
23
|
+
timeout: z.number().int().min(1).max(600).optional().describe('Timeout seconds (default 5; up to 600 on Data Plus)'),
|
|
24
|
+
asyncExecution: z.boolean().optional().describe('Async mode for long queries — returns queryId to poll'),
|
|
25
|
+
}),
|
|
26
|
+
execute: async ({ newRelicApiKey, accountId, query, timeout, asyncExecution }) => nerdgraph(newRelicApiKey, `query { ${nrqlQueryObject(accountId, query, timeout, asyncExecution)} }`, undefined, 'execute NRQL query'),
|
|
27
|
+
});
|
|
28
|
+
export const queryError = tool({
|
|
29
|
+
description: 'Queries error data (TransactionError etc.) with a custom NRQL query. Use to analyze error counts, facet by error.message, or spot error patterns.',
|
|
30
|
+
inputSchema: z.object({
|
|
31
|
+
newRelicApiKey: newRelicApiKeyField,
|
|
32
|
+
accountId: accountIdField('Account ID to query error data from'),
|
|
33
|
+
nrqlQuery: z.string().describe("NRQL query, e.g. 'SELECT count(*) FROM TransactionError FACET error.message SINCE 24 HOURS AGO'"),
|
|
34
|
+
}),
|
|
35
|
+
execute: async ({ newRelicApiKey, accountId, nrqlQuery }) => nerdgraph(newRelicApiKey, `query { ${nrqlQueryObject(accountId, nrqlQuery)} }`, undefined, 'query error data'),
|
|
36
|
+
});
|
|
37
|
+
export const queryExampleReadQuery = tool({
|
|
38
|
+
description: 'Executes any raw GraphQL read query against NerdGraph. Use for data not covered by other tools; pass variables separately.',
|
|
39
|
+
inputSchema: z.object({
|
|
40
|
+
newRelicApiKey: newRelicApiKeyField,
|
|
41
|
+
query: z.string().describe("GraphQL query, e.g. '{ actor { user { name email } } }'"),
|
|
42
|
+
variables: z.record(z.any()).optional().describe('Query variables, e.g. {accountId: 123456}'),
|
|
43
|
+
}),
|
|
44
|
+
execute: async ({ newRelicApiKey, query, variables }) => nerdgraph(newRelicApiKey, query.startsWith('query') || query.startsWith('mutation') ? query : `query { ${query} }`, variables, 'execute GraphQL query'),
|
|
45
|
+
});
|
|
46
|
+
export const searchEntities = tool({
|
|
47
|
+
description: 'Searches New Relic entities by name/type/domain (up to 200 per page). Use to find GUIDs for tagging, workloads, or deployments. Provide raw query OR queryBuilder, not both.',
|
|
48
|
+
inputSchema: z.object({
|
|
49
|
+
newRelicApiKey: newRelicApiKeyField,
|
|
50
|
+
query: z.string().optional().describe("Search string, e.g. \"domain = 'APM' and type = 'APPLICATION'\""),
|
|
51
|
+
domain: z.string().optional().describe("Builder: domain filter, e.g. 'APM', 'BROWSER', 'SYNTH', 'INFRA'"),
|
|
52
|
+
type: z.string().optional().describe("Builder: entity type, e.g. 'APPLICATION', 'MONITOR', 'HOST'"),
|
|
53
|
+
infrastructureIntegrationType: z.string().optional().describe('Builder: infra integration type, e.g. AWS_RDS_DB_INSTANCE'),
|
|
54
|
+
cursor: z.string().optional().describe('nextCursor from a previous page'),
|
|
55
|
+
}),
|
|
56
|
+
execute: async ({ newRelicApiKey, query, domain, type, infrastructureIntegrationType, cursor }) => {
|
|
57
|
+
if (query && (domain || type || infrastructureIntegrationType)) {
|
|
58
|
+
return { error: 'Provide either query or queryBuilder fields (domain/type), not both' };
|
|
59
|
+
}
|
|
60
|
+
const searchArgs = [];
|
|
61
|
+
if (query)
|
|
62
|
+
searchArgs.push(`query: ${JSON.stringify(query)}`);
|
|
63
|
+
else {
|
|
64
|
+
const qb = [];
|
|
65
|
+
if (domain)
|
|
66
|
+
qb.push(`domain: ${JSON.stringify(domain)}`);
|
|
67
|
+
if (type)
|
|
68
|
+
qb.push(`type: ${JSON.stringify(type)}`);
|
|
69
|
+
if (infrastructureIntegrationType)
|
|
70
|
+
qb.push(`infrastructureIntegrationType: ${JSON.stringify(infrastructureIntegrationType)}`);
|
|
71
|
+
if (qb.length)
|
|
72
|
+
searchArgs.push(`queryBuilder: { ${qb.join(', ')} }`);
|
|
73
|
+
}
|
|
74
|
+
return nerdgraph(newRelicApiKey, `query($cursor: String) { actor { entitySearch(${searchArgs.join(', ')}) { query results(cursor: $cursor) { nextCursor entities { guid name entityType domainType accountId tags { key values } } } } } }`, { cursor: cursor ?? null }, 'search entities');
|
|
75
|
+
},
|
|
76
|
+
});
|
|
77
|
+
export const fetchRulesCollection = tool({
|
|
78
|
+
description: 'Fetches rules/elements from a Scorecard collection by collection ID. Use cursor pagination via nextCursor.',
|
|
79
|
+
inputSchema: z.object({
|
|
80
|
+
newRelicApiKey: newRelicApiKeyField,
|
|
81
|
+
collectionId: z.string().describe('Scorecard collection ID'),
|
|
82
|
+
cursor: z.string().optional().describe('nextCursor from a previous page'),
|
|
83
|
+
}),
|
|
84
|
+
execute: async ({ newRelicApiKey, collectionId, cursor }) => nerdgraph(newRelicApiKey, `query($collectionId: [ID!]!, $cursor: String) { actor { entityManagement { collectionElements(collectionIds: $collectionId, cursor: $cursor) { items { id name type } nextCursor } } } }`, { collectionId: [collectionId], cursor: cursor ?? null }, 'fetch rules collection'),
|
|
85
|
+
});
|
|
86
|
+
export const fetchYourOrgId = tool({
|
|
87
|
+
description: 'Returns the organization ID and name for the API key owner. Takes no inputs — run first when the org ID is unknown.',
|
|
88
|
+
inputSchema: z.object({ newRelicApiKey: newRelicApiKeyField }),
|
|
89
|
+
execute: async ({ newRelicApiKey }) => nerdgraph(newRelicApiKey, 'query { actor { organization { id name } } }', undefined, 'fetch organization ID'),
|
|
90
|
+
});
|
|
91
|
+
export const queryCloudProviders = tool({
|
|
92
|
+
description: 'Lists cloud integration providers (AWS, GCP, Azure) configured for an account. Use before linking accounts or configuring integrations.',
|
|
93
|
+
inputSchema: z.object({
|
|
94
|
+
newRelicApiKey: newRelicApiKeyField,
|
|
95
|
+
accountId: accountIdField('Account ID to query cloud providers for'),
|
|
96
|
+
}),
|
|
97
|
+
execute: async ({ newRelicApiKey, accountId }) => nerdgraph(newRelicApiKey, `query($accountId: Int!) { actor { account(id: $accountId) { cloud { providers { id name slug } } } } }`, { accountId }, 'query cloud providers'),
|
|
98
|
+
});
|
|
99
|
+
//# sourceMappingURL=nrql.js.map
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
export declare const createMonitor: import("ai").Tool<{
|
|
2
|
+
type: "SIMPLE" | "BROWSER" | "SCRIPT_API" | "SCRIPT_BROWSER";
|
|
3
|
+
status: "ENABLED" | "DISABLED";
|
|
4
|
+
name: string;
|
|
5
|
+
frequency: number;
|
|
6
|
+
locations: string[];
|
|
7
|
+
newRelicApiKey?: string | undefined;
|
|
8
|
+
uri?: string | undefined;
|
|
9
|
+
}, any>;
|
|
10
|
+
export declare const getSynthMonitor: import("ai").Tool<{
|
|
11
|
+
monitorId: string;
|
|
12
|
+
newRelicApiKey?: string | undefined;
|
|
13
|
+
}, any>;
|
|
14
|
+
export declare const listMonitors: import("ai").Tool<{
|
|
15
|
+
limit?: number | undefined;
|
|
16
|
+
newRelicApiKey?: string | undefined;
|
|
17
|
+
offset?: number | undefined;
|
|
18
|
+
}, any>;
|
|
19
|
+
export declare const patchMonitor: import("ai").Tool<{
|
|
20
|
+
monitorId: string;
|
|
21
|
+
type?: "SIMPLE" | "BROWSER" | "SCRIPT_API" | "SCRIPT_BROWSER" | undefined;
|
|
22
|
+
status?: "ENABLED" | "DISABLED" | undefined;
|
|
23
|
+
name?: string | undefined;
|
|
24
|
+
newRelicApiKey?: string | undefined;
|
|
25
|
+
frequency?: number | undefined;
|
|
26
|
+
locations?: string[] | undefined;
|
|
27
|
+
uri?: string | undefined;
|
|
28
|
+
slaThreshold?: number | undefined;
|
|
29
|
+
}, any>;
|
|
30
|
+
export declare const updateSynthMonitor: import("ai").Tool<{
|
|
31
|
+
type: "SIMPLE" | "BROWSER" | "SCRIPT_API" | "SCRIPT_BROWSER";
|
|
32
|
+
status: "ENABLED" | "DISABLED";
|
|
33
|
+
name: string;
|
|
34
|
+
monitorId: string;
|
|
35
|
+
frequency: number;
|
|
36
|
+
locations: string[];
|
|
37
|
+
uri: string;
|
|
38
|
+
newRelicApiKey?: string | undefined;
|
|
39
|
+
slaThreshold?: number | undefined;
|
|
40
|
+
}, any>;
|
|
41
|
+
export declare const deleteMonitor: import("ai").Tool<{
|
|
42
|
+
monitorId: string;
|
|
43
|
+
newRelicApiKey?: string | undefined;
|
|
44
|
+
}, any>;
|
|
45
|
+
export declare const updateMonitorScript: import("ai").Tool<{
|
|
46
|
+
monitorId: string;
|
|
47
|
+
scriptText: string;
|
|
48
|
+
newRelicApiKey?: string | undefined;
|
|
49
|
+
}, any>;
|
|
50
|
+
export declare const listLocations: import("ai").Tool<{
|
|
51
|
+
newRelicApiKey?: string | undefined;
|
|
52
|
+
}, any>;
|
|
53
|
+
export declare const createSyntheticsSimpleMonitor: import("ai").Tool<{
|
|
54
|
+
status: "ENABLED" | "DISABLED";
|
|
55
|
+
name: string;
|
|
56
|
+
period: "EVERY_MINUTE" | "EVERY_5_MINUTES" | "EVERY_10_MINUTES" | "EVERY_15_MINUTES" | "EVERY_30_MINUTES" | "EVERY_HOUR" | "EVERY_6_HOURS" | "EVERY_12_HOURS" | "EVERY_DAY";
|
|
57
|
+
accountId: number;
|
|
58
|
+
locations: {
|
|
59
|
+
public: string[];
|
|
60
|
+
};
|
|
61
|
+
uri: string;
|
|
62
|
+
newRelicApiKey?: string | undefined;
|
|
63
|
+
advancedOptions?: {
|
|
64
|
+
customHeaders?: {
|
|
65
|
+
value: string;
|
|
66
|
+
name: string;
|
|
67
|
+
}[] | undefined;
|
|
68
|
+
useTlsValidation?: boolean | undefined;
|
|
69
|
+
responseValidationText?: string | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
}, any>;
|
|
72
|
+
export declare const updateSyntheticsSimpleMonitor: import("ai").Tool<{
|
|
73
|
+
guid: string;
|
|
74
|
+
monitor: {
|
|
75
|
+
status?: "ENABLED" | "DISABLED" | undefined;
|
|
76
|
+
name?: string | undefined;
|
|
77
|
+
period?: "EVERY_MINUTE" | "EVERY_5_MINUTES" | "EVERY_10_MINUTES" | "EVERY_15_MINUTES" | "EVERY_30_MINUTES" | "EVERY_HOUR" | "EVERY_6_HOURS" | "EVERY_12_HOURS" | "EVERY_DAY" | undefined;
|
|
78
|
+
locations?: string[] | undefined;
|
|
79
|
+
uri?: string | undefined;
|
|
80
|
+
advancedOptions?: {
|
|
81
|
+
customHeaders?: {
|
|
82
|
+
value: string;
|
|
83
|
+
name: string;
|
|
84
|
+
}[] | undefined;
|
|
85
|
+
useTlsValidation?: boolean | undefined;
|
|
86
|
+
responseValidationText?: string | undefined;
|
|
87
|
+
redirectIsFailure?: boolean | undefined;
|
|
88
|
+
shouldBypassHeadRequest?: boolean | undefined;
|
|
89
|
+
} | undefined;
|
|
90
|
+
apdexTarget?: number | undefined;
|
|
91
|
+
};
|
|
92
|
+
newRelicApiKey?: string | undefined;
|
|
93
|
+
}, any>;
|
|
94
|
+
export declare const createScriptedMonitor: import("ai").Tool<{
|
|
95
|
+
name: string;
|
|
96
|
+
runtime: {
|
|
97
|
+
runtimeType: string;
|
|
98
|
+
runtimeTypeVersion: string;
|
|
99
|
+
scriptLanguage?: string | undefined;
|
|
100
|
+
};
|
|
101
|
+
period: "EVERY_MINUTE" | "EVERY_5_MINUTES" | "EVERY_10_MINUTES" | "EVERY_15_MINUTES" | "EVERY_30_MINUTES" | "EVERY_HOUR" | "EVERY_6_HOURS" | "EVERY_12_HOURS" | "EVERY_DAY";
|
|
102
|
+
accountId: number;
|
|
103
|
+
locations: {
|
|
104
|
+
private?: string[] | undefined;
|
|
105
|
+
public?: string[] | undefined;
|
|
106
|
+
};
|
|
107
|
+
monitorType: "SCRIPT_API" | "SCRIPT_BROWSER";
|
|
108
|
+
script: string;
|
|
109
|
+
status?: "ENABLED" | "DISABLED" | "MUTED" | undefined;
|
|
110
|
+
newRelicApiKey?: string | undefined;
|
|
111
|
+
advancedOptions?: Record<string, any> | undefined;
|
|
112
|
+
}, any>;
|
|
113
|
+
export declare const updateScriptedMonitor: import("ai").Tool<{
|
|
114
|
+
guid: string;
|
|
115
|
+
monitor: {
|
|
116
|
+
status?: "ENABLED" | "DISABLED" | "MUTED" | undefined;
|
|
117
|
+
name?: string | undefined;
|
|
118
|
+
period?: "EVERY_MINUTE" | "EVERY_5_MINUTES" | "EVERY_10_MINUTES" | "EVERY_15_MINUTES" | "EVERY_30_MINUTES" | "EVERY_HOUR" | "EVERY_6_HOURS" | "EVERY_12_HOURS" | "EVERY_DAY" | undefined;
|
|
119
|
+
locations?: {
|
|
120
|
+
private?: string[] | undefined;
|
|
121
|
+
public?: string[] | undefined;
|
|
122
|
+
} | undefined;
|
|
123
|
+
apdexTarget?: number | undefined;
|
|
124
|
+
script?: string | undefined;
|
|
125
|
+
};
|
|
126
|
+
monitorType: "SCRIPT_API" | "SCRIPT_BROWSER";
|
|
127
|
+
newRelicApiKey?: string | undefined;
|
|
128
|
+
}, any>;
|
|
129
|
+
export declare const createBrokenLinksMonitor: import("ai").Tool<{
|
|
130
|
+
status: "ENABLED" | "DISABLED";
|
|
131
|
+
name: string;
|
|
132
|
+
runtime: {
|
|
133
|
+
runtimeType: string;
|
|
134
|
+
runtimeTypeVersion: string;
|
|
135
|
+
};
|
|
136
|
+
period: "EVERY_MINUTE" | "EVERY_5_MINUTES" | "EVERY_10_MINUTES" | "EVERY_15_MINUTES" | "EVERY_30_MINUTES" | "EVERY_HOUR" | "EVERY_6_HOURS" | "EVERY_12_HOURS" | "EVERY_DAY";
|
|
137
|
+
accountId: number;
|
|
138
|
+
locations: {
|
|
139
|
+
private?: string[] | undefined;
|
|
140
|
+
public?: string[] | undefined;
|
|
141
|
+
};
|
|
142
|
+
uri: string;
|
|
143
|
+
tags?: {
|
|
144
|
+
values: string[];
|
|
145
|
+
key: string;
|
|
146
|
+
}[] | undefined;
|
|
147
|
+
newRelicApiKey?: string | undefined;
|
|
148
|
+
}, any>;
|
|
149
|
+
export declare const createSyntheticsPrivateLocation: import("ai").Tool<{
|
|
150
|
+
name: string;
|
|
151
|
+
accountId: number;
|
|
152
|
+
description?: string | undefined;
|
|
153
|
+
newRelicApiKey?: string | undefined;
|
|
154
|
+
verifiedScriptExecution?: boolean | undefined;
|
|
155
|
+
}, any>;
|
|
156
|
+
export declare const deleteSyntheticsPrivateLocation: import("ai").Tool<{
|
|
157
|
+
guid: string;
|
|
158
|
+
newRelicApiKey?: string | undefined;
|
|
159
|
+
}, any>;
|
|
160
|
+
export declare const deleteSyntheticsMonitorGraphql: import("ai").Tool<{
|
|
161
|
+
guid: string;
|
|
162
|
+
newRelicApiKey?: string | undefined;
|
|
163
|
+
}, any>;
|
|
164
|
+
export declare const createSyntheticsSecureCredential: import("ai").Tool<{
|
|
165
|
+
value: string;
|
|
166
|
+
key: string;
|
|
167
|
+
accountId: number;
|
|
168
|
+
description?: string | undefined;
|
|
169
|
+
newRelicApiKey?: string | undefined;
|
|
170
|
+
}, any>;
|
|
171
|
+
export declare const deleteSyntheticsSecureCredential: import("ai").Tool<{
|
|
172
|
+
key: string;
|
|
173
|
+
accountId: number;
|
|
174
|
+
newRelicApiKey?: string | undefined;
|
|
175
|
+
}, any>;
|
|
176
|
+
//# sourceMappingURL=synthetics.d.ts.map
|