DescribeSiteMonitorStatistics 操作を呼び出して、指定されたサイトモニタリングタスクにおける指定されたメトリックの平均統計を照会します。
操作説明
This topic provides an example on how to query the average statistics of the Availability metric in the site monitoring task whose ID is ef4cdc8b-9dc7-43e7-810e-f950e56c****. The returned result shows that the availability is 100.
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
cms:DescribeSiteMonitorStatistics |
get |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| TaskId |
string |
必須 |
サイトモニタリングタスクの ID。 サイトモニタリングタスクの ID の取得方法については、 DescribeSiteMonitorList を参照してください。 |
ef4cdc8b-9dc7-43e7-810e-f950e56c**** |
| TimeRange |
string |
任意 |
統計期間。 単位: 分。デフォルト値: 1440 (1 日)。最大値: 43200 (30 日)。 |
1440 |
| StartTime |
string |
任意 |
クエリする時間有効値の開始時刻。 単位: ミリ秒。デフォルト値: 現在時刻の 1 時間前。 |
1576142850527 |
| MetricName |
string |
必須 |
メトリックの名前。有効な値:
|
Availability |
共通リクエストパラメーターの詳細については、共通パラメーター を参照してください。
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| Code |
string |
The HTTP status code. 説明
The value 200 indicates that the call is successful. |
200 |
| Message |
string |
The returned message. |
Successful |
| Data |
string |
The statistical result. |
100 |
| RequestId |
string |
The ID of the request. |
3AD2724D-E317-4BFB-B422-D6691D071BE1 |
| Success |
string |
Indicates whether the call is successful. Valid values:
|
true |
例
成功レスポンス
JSONJSON
{
"Code": "200",
"Message": "Successful",
"Data": "100",
"RequestId": "3AD2724D-E317-4BFB-B422-D6691D071BE1",
"Success": "true"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InvalidParameterValue | The specified parameter is not valid. | |
| 401 | AccessDeniedException | You donot have sufficient access to perform this action. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | Forbidden | You are not authorized to operate the specified resource. | |
| 403 | InvalidClientTokenId | The X.509 certificate or cms access key ID provided does not exist in our records. | |
| 206 | %s | %s | |
| 503 | %s | %s | |
| 406 | %s | %s | |
| 429 | Throttli∂ngException | The request was denied due to request throttling. | |
| 409 | %s | %s |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。