全部產品
Search
文件中心

Data Transmission Service:查詢同步執行個體的監控警示

更新時間:Feb 08, 2025

調用DescribeSynchronizationJobAlert介面查詢同步執行個體的監控警示設定詳情。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

請求參數

名稱 類型 是否必選 樣本值 描述
Action String DescribeSynchronizationJobAlert

系統規定參數,取值:DescribeSynchronizationJobAlert

SynchronizationJobId String dtskxz1170c10p****

資料同步執行個體ID,可以通過調用DescribeSynchronizationJobs介面查詢。

RegionId String cn-hangzhou

地區ID,傳入本參數來指定訂閱通道所在地區,詳情請參見支援的地區列表

SynchronizationDirection String Forward

同步方向,取值:

  • Forward:正向。
  • Reverse:反向。
說明 預設取值為Forward
ClientToken String ETnLKlblzczshOTUbOCz****

用於保證請求的等冪性。由用戶端產生該參數值,要保證在不同請求間唯一,最大值不超過64個ASCII字元,且該參數值中不能包含非ASCII字元。

AccountId String 12323344****

阿里雲主帳號ID,無需設定,該參數即將下線。

返回資料

名稱 類型 樣本值 描述
DelayAlertPhone String 1361234****,1371234****

延遲警示的連絡人手機號碼。

DelayAlertStatus String enable

是否監控延遲狀態,傳回值:

  • enable:是。
  • disable:否。
DelayOverSeconds String 10

觸發延遲警示的閾值,單位為秒。

ErrCode String InternalError

調用出錯時返回的錯誤碼。

ErrMessage String The request processing has failed due to some unknown error.

調用出錯時返回的錯誤資訊。

ErrorAlertPhone String 1361234****,1371234****

異常警示的連絡人手機號碼。

ErrorAlertStatus String enable

是否監控異常狀態,傳回值:

  • enable:是。
  • disable:否。
RequestId String 210ec20e16055205968635339d****

請求ID。

Success String true

請求是否成功。

SynchronizationDirection String Forward

同步方向,傳回值:

  • Forward:正向。
  • Reverse:反向。
    說明 只有在資料同步的拓撲為雙向同步時,才會返回該參數。
SynchronizationJobId String kxz1170c10p****

資料同步執行個體ID。

SynchronizationJobName String Polar MySQL_TO_RDS MySQL

資料同步作業名稱。

樣本

請求樣本

http(s)://dts.aliyuncs.com/?Action=DescribeSynchronizationJobAlert
&SynchronizationJobId=dtskxz1170c10p****
&<公用請求參數>

正常返回樣本

XML格式

<DescribeSynchronizationJobAlertresponse>
      <SynchronizationJobId>kxz1170c10p****</SynchronizationJobId>
      <RequestId>210ec20e16055205968635339d****</RequestId>
      <SynchronizationJobName>Polar MySQL_TO_RDS MySQL</SynchronizationJobName>
      <DelayAlertPhone>1361234****,1371234****</DelayAlertPhone>
      <ErrorAlertStatus>enable</ErrorAlertStatus>
      <DelayAlertStatus>enable</DelayAlertStatus>
      <DelayOverSeconds>10</DelayOverSeconds>
      <Success>true</Success>
</DescribeSynchronizationJobAlertresponse>

JSON格式

{
	"SynchronizationJobId": "kxz1170c10p****",
	"RequestId": "210ec20e16055205968635339d****",
	"SynchronizationJobName": "Polar MySQL_TO_RDS MySQL",
    "DelayAlertPhone": "1361234****,1371234****",
	"ErrorAlertStatus": "enable",
	"DelayAlertStatus": "enable",
	"DelayOverSeconds": "10",
	"Success": true
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。