カスタム監視ルールを更新します。
今すぐお試しください
テスト
RAM 認証
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RemindId |
integer |
必須 |
カスタムルールの ID。 |
1234 |
| RemindName |
string |
任意 |
カスタムルールの名前。名前の長さは 128 文字以下です。 |
update_remindname |
| DndEnd |
string |
任意 |
サイレント期間の終了時間。この時間より前はアラートが送信されません。フォーマット: hh:mm。hh の有効な値: [0,23]。mm の有効な値: [0,59]。 |
08:00 |
| RemindUnit |
string |
任意 |
監視対象のタイプ。有効な値:
列挙値:
|
NODE |
| NodeIds |
string |
任意 |
監視対象がノードの場合のノード ID。1 つのルールで最大 50 個のノードをモニターできます。複数のノード ID はコンマ (,) で区切ります。 このパラメーターは、RemindUnit が NODE にセットされている場合にのみ効果が得られます。 |
1,2,3 |
| BaselineIds |
string |
任意 |
監視対象がベースラインの場合のベースライン ID。1 つのルールで最大 5 個のベースラインをモニターできます。複数のベースライン ID はコンマ (,) で区切ります。 このパラメーターは、RemindUnit が BASELINE にセットされている場合にのみ効果が得られます。 |
1,2,3 |
| ProjectId |
integer |
任意 |
監視対象がワークスペースの場合のワークスペース ID。1 つのルールでモニターできるワークスペースは 1 つだけです。 このパラメーターは、RemindUnit が PROJECT にセットされている場合にのみ効果が得られます。 |
1234 |
| BizProcessIds |
string |
任意 |
監視対象がビジネスプロセスの場合のビジネスプロセス ID。1 つのルールで最大 5 個のビジネスプロセスをモニターできます。複数のビジネスプロセス ID はコンマ (,) で区切ります。 このパラメーターは、RemindUnit が BIZPROCESS にセットされている場合にのみ効果が得られます。 |
1,2,3 |
| RemindType |
string |
任意 |
アラートルールをトリガーする条件。有効な値:
アラートのトリガー条件の詳細については、「カスタムルール」を参照してください。 |
FINISHED |
| MaxAlertTimes |
integer |
任意 |
アラートの最大値。有効な値: [1,10]。デフォルト値: 3。 |
3 |
| AlertInterval |
integer |
任意 |
通知間隔 (秒単位)。最小値: 1200。デフォルト値: 1800。 |
1800 |
| Detail |
string |
任意 |
異なるトリガー条件に対する構成の詳細:
|
{"hour":23,"minu":59} |
| AlertUnit |
string |
任意 |
アラートの受信者。有効な値:
列挙値:
|
OWNER |
| AlertMethods |
string |
任意 |
アラート通知方法。有効な値:
複数のアラート方法はコンマ (,) で区切ります。 |
SMS,MAIL |
| AlertTargets |
string |
任意 |
異なるアラート受信者に対する構成の詳細:
|
9527952795279527 |
| UseFlag |
boolean |
任意 |
アラートルールを有効にするかどうかを指定します。有効な値:
|
true |
| RobotUrls |
string |
任意 |
DingTalk グループチャットボットの Webhook URL。複数の Webhook URL はコンマ (,) で区切ります。 パラメータ設定が undefined にセットされている場合、システムは DingTalk チャットボットの Webhook URL をクリアします。 |
https://oapi.dingtalk.com/robot/send?access_token=****************************** |
| Webhooks |
string |
任意 |
WeCom または Lark チャットボットの Webhook URL。複数の Webhook URL はコンマ (,) で区切ります。alertMethods パラメーターには WEBHOOKS アラート機能を含める必要があります。パラメーターが undefined にセットされている場合、システムは Webhook URL をクリアします。 DataWorks Enterprise Edition のみがサポートされています。 利用可能なリージョン: 中国 (上海)、中国 (成都)、中国 (張家口)、中国 (北京)、中国 (杭州)、中国 (深セン)、中国 (香港)、ドイツ (フランクフルト)、アジア太平洋東南部 1 (シンガポール)。 |
https://open.feishu.cn/open-apis/bot/v2/hook/******* |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| HttpStatusCode |
integer |
HTTP 状態コード。 |
200 |
| Data |
boolean |
カスタム監視ルールの更新結果。 |
true |
| ErrorMessage |
string |
エラーメッセージ。 |
The specified parameters are invalid. |
| RequestId |
string |
リクエストの一意の ID。この ID を使用して問題のトラブルシューティングを行えます。 |
0000-ABCD-EFG**** |
| Success |
boolean |
呼び出しが成功したかどうかを示します。有効な値:
|
true |
| ErrorCode |
string |
エラーコード。 |
1031203110005 |
例
成功レスポンス
JSONJSON
{
"HttpStatusCode": 200,
"Data": true,
"ErrorMessage": "The specified parameters are invalid.",
"RequestId": "0000-ABCD-EFG****",
"Success": true,
"ErrorCode": "1031203110005"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 500 | Forbidden.Not.Server | The dataworksAPI service is not available in this area. Please try it in another area. | |
| 500 | Forbidden.Wkbench.BaselineNoPermission | You are not authorized to access the baseline. | |
| 500 | Forbidden.Wkbench.ProjectNoPermission | You are not authorized to access the workspace. | |
| 500 | InternalError.System | An internal system error occurred. Try again later. | |
| 500 | InternalError.UserId.Missing | An internal system error occurred. Try again later. | |
| 500 | Forbidden.Wkbench.RemindNoPermission | You are not authorized to modify the reminder. | |
| 500 | Invalid.Wkbench.RemindNotExist | The reminder does not exist. | |
| 429 | Throttling.Api | The request for this resource has exceeded your available limit. | |
| 429 | Throttling.Api.Risk | The request for this resource has exceeded your daily available limit. | |
| 429 | Throttling.Resource | You have reached the limit for the resource. Please contact us by submitting a ticket. | |
| 429 | Throttling.System | The DataWorks system is busy. Try again later. | |
| 429 | Throttling.User | Your request is too frequent. Try again later. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。