DATASOURCE::DTS::JobMonitorRules is used to query the alert rules of Data Transmission Service (DTS) tasks.
Syntax
{
"Type": "DATASOURCE::DTS::JobMonitorRules",
"Properties": {
"RefreshOptions": String
}
}Properties
Property | Type | Required | Editable | Description | Constraint |
RefreshOptions | String | No | Yes | The refresh policy for data source resources when the stack is updated. | Valid values:
|
Return value
Fn::GetAtt
JobMonitorRules: the alert rules of the data migration, data synchronization, or change tracking tasks.
DtsJobIds: the IDs of the data migration, data synchronization, or change tracking tasks.
Property | Type | Description | Constraint |
DtsJobIds | List | The IDs of the data migration, data synchronization, or change tracking tasks. | None. |
JobMonitorRules | List | The alert rules of the data migration, data synchronization, or change tracking tasks. | None. |
Type | String | The type of the alert rule. | Valid values:
|
JobType | String | The task type of the DTS instance. | Valid values:
|
State | String | Specifies whether to enable the alert rule. | Return value:
|
Phone | String | The mobile number that receives alert notifications when the alert is triggered. | None. |
Times | String | The number of statistical periods of the incremental data verification task. | None. |
Period | String | The statistical period of the incremental data verification task. Unit: minutes. | None. |
NoticeValue | String | The alert threshold. | None. |
DelayRuleTime | String | The threshold for triggering latency alerts. Unit: seconds. | None. |
JobId | String | The ID of the task. | None. |
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters: {}
Resources:
ExtensionDataSource:
Type: DATASOURCE::DTS::JobMonitorRules
Properties: {}
Outputs:
JobMonitorRules:
Description: The list of job monitor rules.
Value:
Fn::GetAtt:
- ExtensionDataSource
- JobMonitorRules
DtsJobIds:
Description: The list of dts job IDs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- DtsJobIds
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::DTS::JobMonitorRules",
"Properties": {
}
}
},
"Outputs": {
"JobMonitorRules": {
"Description": "The list of job monitor rules.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"JobMonitorRules"
]
}
},
"DtsJobIds": {
"Description": "The list of dts job IDs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DtsJobIds"
]
}
}
}
}