Skip to content

Commit

Permalink
Merge pull request #17124 from brnhensley/patch-11
Browse files Browse the repository at this point in the history
chore: add language identifiers
  • Loading branch information
homelessbirds committed Apr 29, 2024
2 parents d78cdc0 + 327f21a commit b352d12
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ The following template maps the issue payload to the payload used by the classic
The following template maps the issue payload to the default payload used by the classic PagerDuty channel. You can use some or all of the dynamic variables, along with any custom variables, to define your own payload.
```handlbars
```handlebars
{
{{#if nrAccountId}}"account_id": {{nrAccountId}},{{/if}}
"account_name": {{json accumulations.tag.account.[0]}},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,14 @@ Here is an example of the API request format and JSON response.
>
Use this format for your API call:

```
```sh
curl -X PUT 'https://api.newrelic.com/v2/alerts_entity_conditions/12345.json' \
-H "X-Api-Key:<a href='/docs/apis/rest-api-v2/getting-started/introduction-new-relic-rest-api-v2#api_key'>$API_KEY</a>" -i \
-H 'X-Api-Key:$API_KEY' -i \
-H 'Content-Type: application/json' \
-G -d 'entity_type=application&condition_id=234567'
```

* Replace `$API_KEY` with your [API key](/docs/apis/rest-api-v2/getting-started/introduction-new-relic-rest-api-v2#api_key).
</Collapser>

<Collapser
Expand All @@ -172,27 +174,27 @@ Here is an example of the API request format and JSON response.
>
The API returns the response as JSON.

```
```json
{
"condition": [
{
"id": 234567,
"type": "apm_app_metric",
"name": "demo",
"enabled": true,
"entities": [
12345
],
"metric": "apdex",
"condition_scope": "instance", <---<<< scope indicator
"violation_close_timer": 24,
"terms": [
"id": 234567,
"type": "apm_app_metric",
"name": "demo",
"enabled": true,
"entities": [
12345
],
"metric": "apdex",
"condition_scope": "instance", <---<<< scope indicator
"violation_close_timer": 24,
"terms": [
{
"duration": "5",
"operator": "above",
"priority": "critical",
"threshold": "1",
"time_function": "all"
"duration": "5",
"operator": "above",
"priority": "critical",
"threshold": "1",
"time_function": "all"
}
]
}
Expand Down

0 comments on commit b352d12

Please sign in to comment.