Configures alert settings to monitor a data migration instance.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ConfigureMigrationJobAlert |
The operation that you want to perform. Set the value to ConfigureMigrationJobAlert. |
MigrationJobId | String | Yes | dtslb9113qq11n**** |
The ID of the data migration instance. You can call the DescribeMigrationJobs operation to query the instance ID. |
RegionId | String | No | cn-hangzhou |
The ID of the region where the data migration instance resides. For more information, see List of supported regions. |
DelayAlertStatus | String | No | enable |
Specifies whether to monitor task latency. Valid values:
Note
|
DelayAlertPhone | String | No | 1361234****,1371234**** |
The mobile phone numbers that receive latency-related alerts. Separate mobile phone numbers with commas (,). Note
|
ErrorAlertStatus | String | No | enable |
Specifies whether to monitor task status. Valid values:
Note
|
ErrorAlertPhone | String | No | 1361234****,1371234**** |
The mobile phone numbers that receive status-related alerts. Separate mobile phone numbers with commas (,). Note
|
DelayOverSeconds | String | No | 10 |
The threshold for triggering latency alerts. The unit is seconds and the value must be an integer. You can set the threshold based on your business needs. To avoid delay fluctuations caused by network and database loads, we recommend that you set the threshold to more than 10 seconds. Note If the DelayAlertStatus parameter is set to enable, this parameter must be specified.
|
AccountId | String | No | 12323344**** |
The ID of the Alibaba Cloud account. You do not need to specify this parameter because this parameter will be removed in the future. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
ErrCode | String | InternalError |
The error code returned if the call failed. |
ErrMessage | String | The request processing has failed due to some unknown error. |
The error message returned if the call failed. |
RequestId | String | 0a2a047516051973705541561d**** |
The ID of the request. |
Success | String | true |
Indicates whether the call was successful. |
Examples
Sample requests
http(s)://dts.aliyuncs.com/?Action=ConfigureMigrationJobAlert
&MigrationJobId=dtslb9113qq11n****
&DelayAlertStatus=enable
&DelayOverSeconds=10
&<Common request parameters>
Sample responses
XML
format
<ConfigureMigrationJobAlertResponse>
<RequestId>0a2a047516051973705541561d****</RequestId>
<Success>true</Success>
</ConfigureMigrationJobAlertResponse>
JSON
format
{
"RequestId": "0a2a047516051973705541561d****",
"Success": true
}
Error codes
For a list of error codes, visit the API Error Center.