Skip to content

Commit

Permalink
Merge pull request #19605 from brnhensley/patch-6
Browse files Browse the repository at this point in the history
chore: capitalize NRQL clauses
  • Loading branch information
adutta-newrelic authored Dec 26, 2024
2 parents b131152 + 8458566 commit 5cd2030
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,5 @@ When New Relic processes FOSSA events, they're stored in the **Vulnerability** t
2. Enter the following query:

```sql
FROM Vulnerability SELECT * where source = 'Fossa' since 7 days ago
FROM Vulnerability SELECT * WHERE source = 'Fossa' SINCE 7 days ago
```
24 changes: 12 additions & 12 deletions src/content/docs/vulnerability-management/integrations/snyk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ To configure your webhook, go through the following steps:

```shell
curl -H "content-type: application/json" \
-H "authorization: token YOUR_SNYK_API_TOKEN" \
"https://api.snyk.io/api/v1/orgs" | jq -r '.orgs[] | "\(.id)\t\(.name)"'
-H "authorization: token YOUR_SNYK_API_TOKEN" \
"https://api.snyk.io/api/v1/orgs" | jq -r '.orgs[] | "\(.id)\t\(.name)"'
```

<Callout variant="important">
Expand All @@ -64,11 +64,11 @@ To configure your webhook, go through the following steps:

```shell
curl -X POST -H "content-type: application/json" \
-H "authorization: token <SNYK_API_TOKEN>" \
--data '{"url":
"https://security-ingest-processor.service.newrelic.com/v1/security/webhooks/snyk?Api-Key=YOUR_NEW_RELIC_LICENSE_KEY",
"secret": "YOUR_SIGNING_SECRET"}' \
"https://api.snyk.io/api/v1/org/<SNYK_ORG_ID>/webhooks"
-H "authorization: token <SNYK_API_TOKEN>" \
--data '{"url":
"https://security-ingest-processor.service.newrelic.com/v1/security/webhooks/snyk?Api-Key=YOUR_NEW_RELIC_LICENSE_KEY",
"secret": "YOUR_SIGNING_SECRET"}' \
"https://api.snyk.io/api/v1/org/<SNYK_ORG_ID>/webhooks"
```
</Step>

Expand All @@ -79,16 +79,16 @@ To configure your webhook, go through the following steps:

```shell
curl -H "content-type: application/json" \
-H "authorization: token YOUR_SNYK_API_TOKEN" \
"https://api.snyk.io/api/v1/org/YOUR_SNYK_ORG_ID/webhooks"
-H "authorization: token YOUR_SNYK_API_TOKEN" \
"https://api.snyk.io/api/v1/org/YOUR_SNYK_ORG_ID/webhooks"
```

To test a webhook, copy the ID from the webhook you want to test, and run the following command:

```shell
curl -X POST --data "" -H "content-type: application/json" \
-H "authorization: token YOUR_SNYK_API_TOKEN" \
"https://api.snyk.io/api/v1/org/YOUR_SNYK_ORG_ID/webhooks/YOUR_WEBHOOK_ID/ping"
-H "authorization: token YOUR_SNYK_API_TOKEN" \
"https://api.snyk.io/api/v1/org/YOUR_SNYK_ORG_ID/webhooks/YOUR_WEBHOOK_ID/ping"
```

The command will return `OK` if you've set up the webhook correctly.
Expand Down Expand Up @@ -166,7 +166,7 @@ When <DNT>Snyk</DNT> events are processed, they're stored in the <DNT>**Vulnerab
2. Enter the following query:

```sql
FROM Vulnerability SELECT * where source = 'Snyk' since 7 days ago
FROM Vulnerability SELECT * WHERE source = 'Snyk' SINCE 7 days ago
```

<img
Expand Down

0 comments on commit 5cd2030

Please sign in to comment.