ログモニタリングタスクの詳細を照会します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
cms:DescribeLogMonitorAttribute |
get |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| MetricName |
string |
必須 |
メトリックの名前。 |
cpu_total_****** |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| Code |
string |
状態コード。 説明
状態コード 200 は、リクエストが成功したことを示します。 |
200 |
| Message |
string |
返されたメッセージ。 |
The specified resource is not found. |
| RequestId |
string |
リクエスト ID。 |
C6718537-E673-4A58-8EE1-24B8B38C7AAE |
| Success |
boolean |
操作が成功したかどうかを示します。有効な値:
|
true |
| LogMonitor |
object |
ログモニタリングタスクの詳細。 |
|
| ValueFilterRelation |
string |
フィルター条件の論理演算子。このパラメーターは `ValueFilter` と共に使用されます。有効な値:
|
and |
| SlsLogstore |
string |
Simple Log Service Logstore の名前。 |
logstore_****** |
| MetricName |
string |
メトリックの名前。 |
cpu_total_****** |
| GroupId |
integer |
アプリケーション グループの ID。 |
123****** |
| LogId |
integer |
ログモニタリングタスクの ID。 |
123****** |
| MetricExpress |
string |
メトリック式。 |
{} |
| SlsRegionId |
string |
Simple Log Service が存在するリージョンの ID。 |
cn-hangzhou |
| GmtCreate |
integer |
タスクが作成された時間。 この値は、1970 年 1 月 1 日からの経過ミリ秒数を表す UNIX タイムスタンプです。 |
1678440033000 |
| SlsProject |
string |
Simple Log Service プロジェクトの名前。 |
project_****** |
| Aggregates |
array<object> |
集約の定義。 |
|
|
object |
集約の定義。 |
||
| Max |
string |
最大値。 |
0 |
| Min |
string |
最小値。 |
0 |
| Function |
string |
統計期間内のログデータを集約するために使用される関数。有効な値:
|
count |
| Alias |
string |
フィールドのエイリアス。 |
alias_****** |
| FieldName |
string |
ログ内のフィールドの元の名前。 |
field_****** |
| ValueFilter |
array<object> |
フィルター条件。このパラメーターは `ValueFilterRelation` と共に使用されます。このパラメーターは、SQL 文の `WHERE` 句に相当します。 このパラメーターを指定しない場合、すべてのデータが処理されます。たとえば、ログに `Level` フィールドが含まれており、`Level` の値が `Error` であるログの数をカウントしたい場合、集約関数を `count` に設定し、`Level` が `Error` に等しいというフィルター条件を指定できます。 |
|
|
object |
フィルター条件。 |
||
| Key |
string |
キー。 |
key_****** |
| Value |
string |
値。 |
value_****** |
| Operator |
string |
フィールド値を照合するために使用されるオペレーター。有効な値:
|
contain |
| Tumblingwindows |
array |
事前集約ウィンドウ。単位: 秒。Cloud Monitor は、指定された事前集約ウィンドウでデータを集約します。 |
|
|
string |
事前集約ウィンドウ。単位: 秒。Cloud Monitor は、指定された事前集約ウィンドウでデータを集約します。 |
60 |
|
| Groupbys |
array |
ログデータが集約されるディメンション。このパラメーターは、SQL 文の `GROUP BY` 句に相当します。モニタリングデータをグループ化するディメンションを指定できます。このパラメーターを指定しない場合、すべてのモニタリングデータは集計方法に基づいて集約されます。 |
|
|
string |
`group by` の定義 |
userId |
例
成功レスポンス
JSONJSON
{
"Code": "200",
"Message": "The specified resource is not found.",
"RequestId": "C6718537-E673-4A58-8EE1-24B8B38C7AAE",
"Success": true,
"LogMonitor": {
"ValueFilterRelation": "and",
"SlsLogstore": "logstore_******",
"MetricName": "cpu_total_******",
"GroupId": 0,
"LogId": 0,
"MetricExpress": "{}",
"SlsRegionId": "cn-hangzhou",
"GmtCreate": 1678440033000,
"SlsProject": "project_******",
"Aggregates": [
{
"Max": "0",
"Min": "0",
"Function": "count",
"Alias": "alias_******",
"FieldName": "field_******"
}
],
"ValueFilter": [
{
"Key": "key_******",
"Value": "value_******",
"Operator": "contain"
}
],
"Tumblingwindows": [
"60"
],
"Groupbys": [
"userId"
]
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | ParameterInvalid | Illegal parameters. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | AccessForbidden | User not authorized to operate on the specified resource. | |
| 404 | ResourceNotFound | The specified resource is not found. | The specified resource is not found. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。