By default, New Relic REST API calls return a series of metric data values based on time range restrictions. To obtain the average of these values, include &summarize=true
in your API call. For example:
curl -X GET "https://api.newrelic.com/v2/applications/$APPID/metrics/data.json" \
-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'
If you have an EU region account, the above URL begins with https://api.eu.newrelic.com
.
ヒント
To prevent summarizing data, omit summarize
in your API call. You do not need to specify &summarize=false
.
その他のヘルプ
さらに支援が必要な場合は、これらのサポートと学習リソースを確認してください:
- Explorers Hubでは、コミュニティからのサポートを受けたり、ディスカッションに参加したりすることができます。
- 当社サイトで答えを見つけて、サポートポータルの使用方法を確認してください。
- Linux、Windows、およびmacOS向けトラブルシューティングツールであるNew Relic Diagnosticsを実行してください。
- New Relicのデータセキュリティとライセンスドキュメント をご確認ください。