Skip to content

Commit

Permalink
chore: format shell command
Browse files Browse the repository at this point in the history
  • Loading branch information
brnhensley authored Jan 22, 2025
1 parent 442ab82 commit 30dd4c3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ freshnessValidatedDate: never

By default, New Relic REST API calls return a series of metric data values based on [time range restrictions](/docs/apm/apis/requirements/extracting-metric-data#time). To obtain the average of these values, include `&summarize=true` in your API call. For example:

```
```sh
curl -X GET "https://api.newrelic.com/v2/applications/${APP_ID}/metrics/data.json" \
-H "Api-Key:<a href="/docs/apis/rest-api-v2/getting-started/introduction-new-relic-rest-api-v2#api_key">$API_KEY</a>" -i \
-H "Api-Key:$API_KEY" -i \
-d 'names[]=Agent/MetricsReported/count&from=2014-08-11T14:42:00%2B08:00&to=2014-08-11T15:12:00%2B08:00&summarize=true'
```

Expand Down

0 comments on commit 30dd4c3

Please sign in to comment.