• EnglishEspañol日本語한국어Português
  • ログイン今すぐ開始

この機械翻訳は、参考として提供されています。

In the event of any inconsistency between the English version and the translated version, the English versionwill take priority. Please visit this page for more information.

問題を作成する

メトリックの平均値の算出(サマリー)

デフォルトでは、New Relic REST API 呼び出しは、時間範囲の制限に基づいて一連のメトリック データ値を返します。これらの値の平均を取得するには、API 呼び出しに&summarize=trueを含めます。例えば:

curl -X GET "https://api.newrelic.com/v2/applications/${APP_ID}/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'

EU 地域のアカウントをお持ちの場合、上記の URL はhttps://api.eu.newrelic.comで始まります。

ヒント

データの集計を防ぐには、API 呼び出しでsummarizeを省略してください。&summarize=falseを指定する必要はありません。

Copyright © 2024 New Relic株式会社。

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.