DATASOURCE::DTS::JobMonitorRule类型用于查询单个DTS任务的告警规则。
语法
{
"Type": "DATASOURCE::DTS::JobMonitorRule",
"Properties": {
"DtsJobId": String,
"RefreshOptions": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
DtsJobId | String | 是 | 是 | 迁移、同步或订阅任务ID。 | 无 |
RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 取值:
|
返回值
Fn::GetAtt
Type:监控规则的类型。
DtsJobId:迁移、同步或订阅任务ID。
Phone:告警触发后需通知的联系人手机号码。
State:是否启用监控规则。
Times:增量校验任务的周期数。
Period:增量校验任务的统计周期,单位为分钟。
DelayRuleTime:触发延迟告警的阈值,单位为秒。
示例
YAML
JSON
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
DtsJobId:
Type: String
Description:
en: The ID of the data migration, data synchronization, or change tracking task.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::DTS::JobMonitorRule
Properties:
DtsJobId:
Ref: DtsJobId
Outputs:
Type:
Description: The type of the monitoring rule.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Type
DtsJobId:
Description: The ID of the data migration, data synchronization, or change tracking task.
Value:
Fn::GetAtt:
- ExtensionDataSource
- DtsJobId
Phone:
Description: The mobile phone numbers that receive alert notifications. Multiple mobile numbers are separated by commas (,).
Value:
Fn::GetAtt:
- ExtensionDataSource
- Phone
State:
Description: 'Indicates whether the monitoring rule is enabled. '
Value:
Fn::GetAtt:
- ExtensionDataSource
- State
Times:
Description: The number of cycles for the incremental validation task.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Times
Period:
Description: The statistical period for incremental validation tasks, in minutes.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Period
DelayRuleTime:
Description: The threshold that triggers the alert.
Value:
Fn::GetAtt:
- ExtensionDataSource
- DelayRuleTime
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"DtsJobId": {
"Type": "String",
"Description": {
"en": "The ID of the data migration, data synchronization, or change tracking task."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::DTS::JobMonitorRule",
"Properties": {
"DtsJobId": {
"Ref": "DtsJobId"
}
}
}
},
"Outputs": {
"Type": {
"Description": "The type of the monitoring rule.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Type"
]
}
},
"DtsJobId": {
"Description": "The ID of the data migration, data synchronization, or change tracking task.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DtsJobId"
]
}
},
"Phone": {
"Description": "The mobile phone numbers that receive alert notifications. Multiple mobile numbers are separated by commas (,).",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Phone"
]
}
},
"State": {
"Description": "Indicates whether the monitoring rule is enabled. ",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"State"
]
}
},
"Times": {
"Description": "The number of cycles for the incremental validation task.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Times"
]
}
},
"Period": {
"Description": "The statistical period for incremental validation tasks, in minutes.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Period"
]
}
},
"DelayRuleTime": {
"Description": "The threshold that triggers the alert.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DelayRuleTime"
]
}
}
}
}
该文章对您有帮助吗?
- 本页导读 (1)
- 语法
- 属性
- 返回值
- 示例