Skip to content

SubscriptionJob2Props

Properties for defining a SubscriptionJob2.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-dts-subscriptionjob2

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkdts"
&alicloudroscdkdts.SubscriptionJob2Props {
    DbList: interface{},
    DtsJobName: interface{},
    SourceEndpoint: interface{},
    SubscriptionInstance: interface{},
    Checkpoint: interface{},
    DedicatedClusterId: interface{},
    DelayNotice: interface{},
    DelayPhone: interface{},
    DelayRuleTime: interface{},
    DestPrimaryVswId: interface{},
    DestSecondaryVswId: interface{},
    DtsBisLabel: interface{},
    DtsInstanceId: interface{},
    DtsJobId: interface{},
    ErrorNotice: interface{},
    ErrorPhone: interface{},
    MaxDu: interface{},
    MinDu: interface{},
    Reserve: interface{},
    ResourceGroupId: interface{},
    SrcPrimaryVswId: interface{},
    SrcSecondaryVswId: interface{},
    Status: interface{},
    SubscriptionDataType: interface{},
}

Properties

Name Type Description
DbList interface{} Property dbList: The objects for which you want to track data changes.
DtsJobName interface{} Property dtsJobName: The name of the DTS instance.
SourceEndpoint interface{} Property sourceEndpoint: Source instance configuration.
SubscriptionInstance interface{} Property subscriptionInstance: Subscription instance configuration.
Checkpoint interface{} Property checkpoint: The start offset of incremental data migration or synchronization.
DedicatedClusterId interface{} Property dedicatedClusterId: The ID of the DTS dedicated cluster on which the task runs.
DelayNotice interface{} Property delayNotice: Specifies whether to monitor the task latency.
DelayPhone interface{} Property delayPhone: The mobile numbers that receive latency-related alerts.
DelayRuleTime interface{} Property delayRuleTime: The threshold for latency alerts.
DestPrimaryVswId interface{} Property destPrimaryVswId: The primary VSW ID at the destination end of the VPC NAT.
DestSecondaryVswId interface{} Property destSecondaryVswId: The secondary VSW ID at the destination end of the VPC NAT.
DtsBisLabel interface{} Property dtsBisLabel: The environment tag of the DTS instance.
DtsInstanceId interface{} Property dtsInstanceId: The ID of the DTS instance.
DtsJobId interface{} Property dtsJobId: The ID of the DTS task.
ErrorNotice interface{} Property errorNotice: Specifies whether to monitor the task status.
ErrorPhone interface{} Property errorPhone: The mobile numbers that receive status-related alerts.
MaxDu interface{} Property maxDu: The DU upper limit of the Serverless instance, with values being: 2, 4, 8, 16.
MinDu interface{} Property minDu: The lower limit of DU for Serverless instances, with values being: 1, 2, 4, 8, 16.
Reserve interface{} Property reserve: The reserved parameter of DTS.
ResourceGroupId interface{} Property resourceGroupId: The ID of the resource group.
SrcPrimaryVswId interface{} Property srcPrimaryVswId: The primary VSW ID at the source end of the VPC NAT.
SrcSecondaryVswId interface{} Property srcSecondaryVswId: The secondary VSW ID at the source end of the VPC NAT.
Status interface{} Property status: The status of the resource.
SubscriptionDataType interface{} Property subscriptionDataType: Subscription data type.

DbListRequired

DbList interface{}
  • Type: interface{}

Property dbList: The objects for which you want to track data changes.


DtsJobNameRequired

DtsJobName interface{}
  • Type: interface{}

Property dtsJobName: The name of the DTS instance.


SourceEndpointRequired

SourceEndpoint interface{}
  • Type: interface{}

Property sourceEndpoint: Source instance configuration.


SubscriptionInstanceRequired

SubscriptionInstance interface{}
  • Type: interface{}

Property subscriptionInstance: Subscription instance configuration.


CheckpointOptional

Checkpoint interface{}
  • Type: interface{}

Property checkpoint: The start offset of incremental data migration or synchronization.

This value is a UNIX timestamp representing the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC.


DedicatedClusterIdOptional

DedicatedClusterId interface{}
  • Type: interface{}

Property dedicatedClusterId: The ID of the DTS dedicated cluster on which the task runs.


DelayNoticeOptional

DelayNotice interface{}
  • Type: interface{}

Property delayNotice: Specifies whether to monitor the task latency.

Valid values: true and false


DelayPhoneOptional

DelayPhone interface{}
  • Type: interface{}

Property delayPhone: The mobile numbers that receive latency-related alerts.

Separate multiple mobile numbers with commas (,). You can specify up to 10 mobile numbers. Note: You can also configure alert rules for DTS tasks in the CloudMonitor console.This parameter is available only for users of the China site (aliyun.com). Only mobile numbers in the Chinese mainland are supported. Users of the international site (alibabacloud.com) cannot receive alerts by using mobile numbers.


DelayRuleTimeOptional

DelayRuleTime interface{}
  • Type: interface{}

Property delayRuleTime: The threshold for latency alerts.

Unit: seconds. The value must be an integer. You can set the threshold based on your business requirements. To prevent unstable latency caused by network and database overloads, we recommend that you set the threshold to more than 10 seconds.

If DelayNotice is set to true, this parameter is required.


DestPrimaryVswIdOptional

DestPrimaryVswId interface{}
  • Type: interface{}

Property destPrimaryVswId: The primary VSW ID at the destination end of the VPC NAT.


DestSecondaryVswIdOptional

DestSecondaryVswId interface{}
  • Type: interface{}

Property destSecondaryVswId: The secondary VSW ID at the destination end of the VPC NAT.


DtsBisLabelOptional

DtsBisLabel interface{}
  • Type: interface{}

Property dtsBisLabel: The environment tag of the DTS instance.

Valid values: normal and online.


DtsInstanceIdOptional

DtsInstanceId interface{}
  • Type: interface{}

Property dtsInstanceId: The ID of the DTS instance.


DtsJobIdOptional

DtsJobId interface{}
  • Type: interface{}

Property dtsJobId: The ID of the DTS task.


ErrorNoticeOptional

ErrorNotice interface{}
  • Type: interface{}

Property errorNotice: Specifies whether to monitor the task status.

Valid values: true and false.


ErrorPhoneOptional

ErrorPhone interface{}
  • Type: interface{}

Property errorPhone: The mobile numbers that receive status-related alerts.

Separate multiple mobile numbers with commas (,). You can specify up to 10 mobile numbers. Note: You can also configure alert rules for DTS tasks in the CloudMonitor console.This parameter is available only for users of the China site (aliyun.com). Only mobile numbers in the Chinese mainland are supported. Users of the international site (alibabacloud.com) cannot receive alerts by using mobile numbers.


MaxDuOptional

MaxDu interface{}
  • Type: interface{}

Property maxDu: The DU upper limit of the Serverless instance, with values being: 2, 4, 8, 16.

Currently, this feature is not supported, please do not pass in parameters.


MinDuOptional

MinDu interface{}
  • Type: interface{}

Property minDu: The lower limit of DU for Serverless instances, with values being: 1, 2, 4, 8, 16.

This feature is currently not supported, please do not pass in parameters.


ReserveOptional

Reserve interface{}
  • Type: interface{}

Property reserve: The reserved parameter of DTS.

The value is a JSON string. You can specify this parameter to add more configurations of the source or destination instance to the DTS task. For example, you can specify the data storage format of the destination Kafka database and the CEN instance ID.


ResourceGroupIdOptional

ResourceGroupId interface{}
  • Type: interface{}

Property resourceGroupId: The ID of the resource group.


SrcPrimaryVswIdOptional

SrcPrimaryVswId interface{}
  • Type: interface{}

Property srcPrimaryVswId: The primary VSW ID at the source end of the VPC NAT.


SrcSecondaryVswIdOptional

SrcSecondaryVswId interface{}
  • Type: interface{}

Property srcSecondaryVswId: The secondary VSW ID at the source end of the VPC NAT.


StatusOptional

Status interface{}
  • Type: interface{}

Property status: The status of the resource.

Valid values:

  • Subscribing: Start the task.
  • Suspending: Suspend the task.
  • Stopping: Stop the task.

SubscriptionDataTypeOptional

SubscriptionDataType interface{}
  • Type: interface{}

Property subscriptionDataType: Subscription data type.