DATASOURCE::DTS::JobMonitorRule

更新时间:2025-02-28 02:44

DATASOURCE::DTS::JobMonitorRule类型用于查询单个DTS任务的告警规则。

语法

{
  "Type": "DATASOURCE::DTS::JobMonitorRule",
  "Properties": {
    "DtsJobId": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

属性名称

类型

必须

允许更新

描述

约束

DtsJobId

String

迁移、同步或订阅任务ID。

RefreshOptions

String

当资源栈更新时,数据源资源的刷新策略。

取值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

返回值

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)
  • 语法
  • 属性
  • 返回值
  • 示例
文档反馈
phone 联系我们

立即和Alibaba Cloud在线服务人员进行交谈,获取您想了解的产品信息以及最新折扣。

alicare alicarealicarealicare