アプリケーションモニタリング、OpenTelemetry 向けマネージドサービス、Managed Service for Prometheus、およびリアルユーザーモニタリング (RUM) に書き込まれたデータ量をクエリします。
今すぐお試しください
テスト
RAM 認証
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| IntervalInSec |
integer |
任意 |
データスライス間の時間間隔。 単位:秒。 最小値:3600。 有効な値:
列挙値:
|
3600 |
| StartTime |
integer |
必須 |
クエリする時間範囲の開始時刻。 単位:ミリ秒。 |
1699200000000 |
| EndTime |
integer |
必須 |
クエリする時間範囲の終了時刻。 単位:ミリ秒。 |
1699286400000 |
| OrderBy |
string |
任意 |
データをソートするディメンション。 有効な値:
列挙値:
|
dataType |
| Metric |
string |
必須 |
メトリック名。 有効な値:USAGEFEE.STAT。 列挙値:
|
USAGEFEE.STAT |
| Order |
string |
任意 |
データのソート順。 有効な値:
|
ASC |
| AdvancedFilters |
array<object> |
任意 |
フィルター条件。 |
|
|
object |
任意 |
|||
| Key |
string |
任意 |
フィルター条件のキー。 |
regionId |
| Value |
string |
任意 |
フィルター条件の値。 |
cn-hangzhou |
| OpType |
string |
任意 |
演算子。 有効な値:eq および in。 列挙値:
|
eq |
| Dimensions |
array |
任意 |
クエリするメトリックのディメンション。 有効な値:
|
|
|
string |
任意 |
メトリックのディメンション。 |
dataType |
|
| Measures |
array |
任意 |
クエリするメトリックのメジャー。 |
|
|
string |
任意 |
メトリックのメジャー。 有効な値:byte_sum。 列挙値:
|
byte_sum |
|
| QueryType |
string |
必須 |
データの型。 有効な値:
列挙値:
|
instantQuery |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| Code |
integer |
応答ステータス。 有効な値:2XX (リクエストは成功)、3XX (リダイレクトメッセージが返される)、4XX (リクエストは無効)、5XX (サーバーエラーが発生)。 |
200 |
| HttpStatusCode |
integer |
HTTP ステータスコード。 |
200 |
| Message |
string |
リクエストが失敗した場合に返されるエラーメッセージ。 |
success |
| RequestId |
string |
リクエスト ID。 |
99A663CB-8D7B-4B0D-A006-03C8EE38E7BB |
| Success |
boolean |
リクエストが成功したかどうかを示します。 有効な値:
|
true |
| Data |
object |
返された構造体。 |
|
| Complete |
boolean |
複数リージョンクエリが完了したかどうかを示します。 有効な値:
|
true |
| Items |
array<object> |
返された構造体。 |
|
|
object |
クエリされたデータ。 |
{ "date": "1697108400", "dataType": "metrics", "byte_sum": 9497922 } |
例
成功レスポンス
JSONJSON
{
"Code": 200,
"HttpStatusCode": 200,
"Message": "success",
"RequestId": "99A663CB-8D7B-4B0D-A006-03C8EE38E7BB",
"Success": true,
"Data": {
"Complete": true,
"Items": [
{
"date": "1697108400",
"dataType": "metrics",
"byte_sum": 9497922
}
]
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | ParameterMetricIllegal | The specified metric is invalid. | |
| 400 | ParameterMeasuresIllegal | The specified Measures is invalid. | |
| 400 | ParameterTimeStampIllegal | The specified timeStamp is invalid. | |
| 400 | ParameterOrderIllegal | The specified order is invalid. | |
| 400 | ParameterPageSizeIllegal | The specified PageSize is invalid. | |
| 400 | ParameterIntervalIllegal | The specified interval is invalid. | |
| 400 | ParameterMeasuresMissing | You must specify measures. | |
| 400 | ParameterDimensionsIllegal | The specified dimensions is invalid. | |
| 400 | ParameterRegionIdIllegal | The specified RegionId is invalid. | |
| 400 | InternalError | Internal error. Please try again. Contact the DingTalk service account if the issue persists after multiple retries. | |
| 403 | APINotAuthorize | The current user is not authorized to access the interface. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。