1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. dts
  5. JobMonitorRule
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.dts.JobMonitorRule

Explore with Pulumi AI

Provides a DTS Job Monitor Rule resource.

For information about DTS Job Monitor Rule and how to use it, see What is Job Monitor Rule.

NOTE: Available since v1.134.0.

Create JobMonitorRule Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new JobMonitorRule(name: string, args: JobMonitorRuleArgs, opts?: CustomResourceOptions);
@overload
def JobMonitorRule(resource_name: str,
                   args: JobMonitorRuleArgs,
                   opts: Optional[ResourceOptions] = None)

@overload
def JobMonitorRule(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   dts_job_id: Optional[str] = None,
                   type: Optional[str] = None,
                   delay_rule_time: Optional[str] = None,
                   phone: Optional[str] = None,
                   state: Optional[str] = None)
func NewJobMonitorRule(ctx *Context, name string, args JobMonitorRuleArgs, opts ...ResourceOption) (*JobMonitorRule, error)
public JobMonitorRule(string name, JobMonitorRuleArgs args, CustomResourceOptions? opts = null)
public JobMonitorRule(String name, JobMonitorRuleArgs args)
public JobMonitorRule(String name, JobMonitorRuleArgs args, CustomResourceOptions options)
type: alicloud:dts:JobMonitorRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. JobMonitorRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. JobMonitorRuleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. JobMonitorRuleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. JobMonitorRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. JobMonitorRuleArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var jobMonitorRuleResource = new AliCloud.Dts.JobMonitorRule("jobMonitorRuleResource", new()
{
    DtsJobId = "string",
    Type = "string",
    DelayRuleTime = "string",
    Phone = "string",
    State = "string",
});
Copy
example, err := dts.NewJobMonitorRule(ctx, "jobMonitorRuleResource", &dts.JobMonitorRuleArgs{
	DtsJobId:      pulumi.String("string"),
	Type:          pulumi.String("string"),
	DelayRuleTime: pulumi.String("string"),
	Phone:         pulumi.String("string"),
	State:         pulumi.String("string"),
})
Copy
var jobMonitorRuleResource = new JobMonitorRule("jobMonitorRuleResource", JobMonitorRuleArgs.builder()
    .dtsJobId("string")
    .type("string")
    .delayRuleTime("string")
    .phone("string")
    .state("string")
    .build());
Copy
job_monitor_rule_resource = alicloud.dts.JobMonitorRule("jobMonitorRuleResource",
    dts_job_id="string",
    type="string",
    delay_rule_time="string",
    phone="string",
    state="string")
Copy
const jobMonitorRuleResource = new alicloud.dts.JobMonitorRule("jobMonitorRuleResource", {
    dtsJobId: "string",
    type: "string",
    delayRuleTime: "string",
    phone: "string",
    state: "string",
});
Copy
type: alicloud:dts:JobMonitorRule
properties:
    delayRuleTime: string
    dtsJobId: string
    phone: string
    state: string
    type: string
Copy

JobMonitorRule Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The JobMonitorRule resource accepts the following input properties:

DtsJobId
This property is required.
Changes to this property will trigger replacement.
string
Migration, synchronization or subscription task ID can be by calling the [DescribeDtsJobs] get.
Type
This property is required.
Changes to this property will trigger replacement.
string
Monitoring rules of type, valid values: delay, error. delay: delay alarm. error: abnormal alarm.
DelayRuleTime string
Trigger delay alarm threshold, which is measured in seconds.
Phone string
The alarm is triggered after notification of the contact phone number, A plurality of phone numbers between them with a comma (,) to separate.
State string
Whether to enable monitoring rules, valid values: Y, N.
DtsJobId
This property is required.
Changes to this property will trigger replacement.
string
Migration, synchronization or subscription task ID can be by calling the [DescribeDtsJobs] get.
Type
This property is required.
Changes to this property will trigger replacement.
string
Monitoring rules of type, valid values: delay, error. delay: delay alarm. error: abnormal alarm.
DelayRuleTime string
Trigger delay alarm threshold, which is measured in seconds.
Phone string
The alarm is triggered after notification of the contact phone number, A plurality of phone numbers between them with a comma (,) to separate.
State string
Whether to enable monitoring rules, valid values: Y, N.
dtsJobId
This property is required.
Changes to this property will trigger replacement.
String
Migration, synchronization or subscription task ID can be by calling the [DescribeDtsJobs] get.
type
This property is required.
Changes to this property will trigger replacement.
String
Monitoring rules of type, valid values: delay, error. delay: delay alarm. error: abnormal alarm.
delayRuleTime String
Trigger delay alarm threshold, which is measured in seconds.
phone String
The alarm is triggered after notification of the contact phone number, A plurality of phone numbers between them with a comma (,) to separate.
state String
Whether to enable monitoring rules, valid values: Y, N.
dtsJobId
This property is required.
Changes to this property will trigger replacement.
string
Migration, synchronization or subscription task ID can be by calling the [DescribeDtsJobs] get.
type
This property is required.
Changes to this property will trigger replacement.
string
Monitoring rules of type, valid values: delay, error. delay: delay alarm. error: abnormal alarm.
delayRuleTime string
Trigger delay alarm threshold, which is measured in seconds.
phone string
The alarm is triggered after notification of the contact phone number, A plurality of phone numbers between them with a comma (,) to separate.
state string
Whether to enable monitoring rules, valid values: Y, N.
dts_job_id
This property is required.
Changes to this property will trigger replacement.
str
Migration, synchronization or subscription task ID can be by calling the [DescribeDtsJobs] get.
type
This property is required.
Changes to this property will trigger replacement.
str
Monitoring rules of type, valid values: delay, error. delay: delay alarm. error: abnormal alarm.
delay_rule_time str
Trigger delay alarm threshold, which is measured in seconds.
phone str
The alarm is triggered after notification of the contact phone number, A plurality of phone numbers between them with a comma (,) to separate.
state str
Whether to enable monitoring rules, valid values: Y, N.
dtsJobId
This property is required.
Changes to this property will trigger replacement.
String
Migration, synchronization or subscription task ID can be by calling the [DescribeDtsJobs] get.
type
This property is required.
Changes to this property will trigger replacement.
String
Monitoring rules of type, valid values: delay, error. delay: delay alarm. error: abnormal alarm.
delayRuleTime String
Trigger delay alarm threshold, which is measured in seconds.
phone String
The alarm is triggered after notification of the contact phone number, A plurality of phone numbers between them with a comma (,) to separate.
state String
Whether to enable monitoring rules, valid values: Y, N.

Outputs

All input properties are implicitly available as output properties. Additionally, the JobMonitorRule resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing JobMonitorRule Resource

Get an existing JobMonitorRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: JobMonitorRuleState, opts?: CustomResourceOptions): JobMonitorRule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        delay_rule_time: Optional[str] = None,
        dts_job_id: Optional[str] = None,
        phone: Optional[str] = None,
        state: Optional[str] = None,
        type: Optional[str] = None) -> JobMonitorRule
func GetJobMonitorRule(ctx *Context, name string, id IDInput, state *JobMonitorRuleState, opts ...ResourceOption) (*JobMonitorRule, error)
public static JobMonitorRule Get(string name, Input<string> id, JobMonitorRuleState? state, CustomResourceOptions? opts = null)
public static JobMonitorRule get(String name, Output<String> id, JobMonitorRuleState state, CustomResourceOptions options)
resources:  _:    type: alicloud:dts:JobMonitorRule    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
DelayRuleTime string
Trigger delay alarm threshold, which is measured in seconds.
DtsJobId Changes to this property will trigger replacement. string
Migration, synchronization or subscription task ID can be by calling the [DescribeDtsJobs] get.
Phone string
The alarm is triggered after notification of the contact phone number, A plurality of phone numbers between them with a comma (,) to separate.
State string
Whether to enable monitoring rules, valid values: Y, N.
Type Changes to this property will trigger replacement. string
Monitoring rules of type, valid values: delay, error. delay: delay alarm. error: abnormal alarm.
DelayRuleTime string
Trigger delay alarm threshold, which is measured in seconds.
DtsJobId Changes to this property will trigger replacement. string
Migration, synchronization or subscription task ID can be by calling the [DescribeDtsJobs] get.
Phone string
The alarm is triggered after notification of the contact phone number, A plurality of phone numbers between them with a comma (,) to separate.
State string
Whether to enable monitoring rules, valid values: Y, N.
Type Changes to this property will trigger replacement. string
Monitoring rules of type, valid values: delay, error. delay: delay alarm. error: abnormal alarm.
delayRuleTime String
Trigger delay alarm threshold, which is measured in seconds.
dtsJobId Changes to this property will trigger replacement. String
Migration, synchronization or subscription task ID can be by calling the [DescribeDtsJobs] get.
phone String
The alarm is triggered after notification of the contact phone number, A plurality of phone numbers between them with a comma (,) to separate.
state String
Whether to enable monitoring rules, valid values: Y, N.
type Changes to this property will trigger replacement. String
Monitoring rules of type, valid values: delay, error. delay: delay alarm. error: abnormal alarm.
delayRuleTime string
Trigger delay alarm threshold, which is measured in seconds.
dtsJobId Changes to this property will trigger replacement. string
Migration, synchronization or subscription task ID can be by calling the [DescribeDtsJobs] get.
phone string
The alarm is triggered after notification of the contact phone number, A plurality of phone numbers between them with a comma (,) to separate.
state string
Whether to enable monitoring rules, valid values: Y, N.
type Changes to this property will trigger replacement. string
Monitoring rules of type, valid values: delay, error. delay: delay alarm. error: abnormal alarm.
delay_rule_time str
Trigger delay alarm threshold, which is measured in seconds.
dts_job_id Changes to this property will trigger replacement. str
Migration, synchronization or subscription task ID can be by calling the [DescribeDtsJobs] get.
phone str
The alarm is triggered after notification of the contact phone number, A plurality of phone numbers between them with a comma (,) to separate.
state str
Whether to enable monitoring rules, valid values: Y, N.
type Changes to this property will trigger replacement. str
Monitoring rules of type, valid values: delay, error. delay: delay alarm. error: abnormal alarm.
delayRuleTime String
Trigger delay alarm threshold, which is measured in seconds.
dtsJobId Changes to this property will trigger replacement. String
Migration, synchronization or subscription task ID can be by calling the [DescribeDtsJobs] get.
phone String
The alarm is triggered after notification of the contact phone number, A plurality of phone numbers between them with a comma (,) to separate.
state String
Whether to enable monitoring rules, valid values: Y, N.
type Changes to this property will trigger replacement. String
Monitoring rules of type, valid values: delay, error. delay: delay alarm. error: abnormal alarm.

Import

DTS Job Monitor Rule can be imported using the id, e.g.

$ pulumi import alicloud:dts/jobMonitorRule:JobMonitorRule example <dts_job_id>
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.