建立Data Integration新版任務警示規則,當前支援的任務類型包括:MySQL到Hologres整庫即時解決方案。
介面說明
當您的任務同步類型中包含即時同步時,支援設定警示規則。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| DIJobId |
integer |
是 |
任務 ID,是警示規則關聯的任務 ID。 |
11265 |
| Description |
string |
否 |
描述。 |
mysql synchronizes to hologres heartbeat alert |
| MetricType |
string |
是 |
警示指標類型,可選的枚舉值:
|
Heartbeat |
| TriggerConditions |
array<object> |
是 |
警示觸發條件列表,支援多條件。 |
|
|
object |
否 |
警示觸發條件。 |
||
| Severity |
string |
否 |
嚴重程度,可選的枚舉值:
|
Warning |
| Duration |
integer |
否 |
警示計算時間區間,單位分鐘。 |
15 |
| Threshold |
integer |
否 |
警示閾值。
|
5 |
| NotificationSettings |
object |
是 |
警示通知設定。 |
|
| NotificationChannels |
array<object> |
是 |
警示通知渠道,支援多值。 |
|
|
object |
否 |
警示通知渠道。 |
||
| Severity |
string |
否 |
嚴重程度。
|
Warning |
| Channels |
array |
否 |
通道列表。 |
|
|
string |
否 |
通道,可選的枚舉值:
|
Ding |
|
| NotificationReceivers |
array<object> |
是 |
警示通知接收方,支援多值。 |
|
|
object |
否 |
警示通知接收方。 |
||
| ReceiverType |
string |
否 |
接收方類型。
|
DingToken |
| ReceiverValues |
array |
否 |
接收方取值列表。 |
|
|
string |
否 |
接收方取值。
|
token1 |
|
| InhibitionInterval |
integer |
否 |
警示抑制間隔時間長度,單位分鐘,預設 5 分鐘。 |
5 |
| Enabled |
boolean |
否 |
警示規則是否啟用,預設不開啟。 |
true |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
響應。 |
||
| RequestId |
string |
請求 ID。 |
C636A747-7E4E-594D-94CD-2B4F8A9A9A63 |
| DIAlarmRuleId |
integer |
警示規則 ID。 |
34988 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "C636A747-7E4E-594D-94CD-2B4F8A9A9A63",
"DIAlarmRuleId": 34988
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 500 | InternalError.System | An internal system error occurred. Try again later. | |
| 500 | InternalError.UserId.Missing | An internal system error occurred. Try again later. | |
| 403 | Forbidden.Access | Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition. | 沒有許可權,請授權 |
| 429 | Throttling.Api | The request for this resource has exceeded your available limit. | |
| 429 | Throttling.System | The DataWorks system is busy. Try again later. | |
| 429 | Throttling.User | Your request is too frequent. Try again later. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。