alicloud logo
Alibaba Cloud v3.37.0, May 15 23

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 in v1.134.0+.

Example Usage

Basic Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var example = new AliCloud.Dts.JobMonitorRule("example", new()
    {
        DtsJobId = "example_value",
        Type = "delay",
    });

});
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dts"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dts.NewJobMonitorRule(ctx, "example", &dts.JobMonitorRuleArgs{
			DtsJobId: pulumi.String("example_value"),
			Type:     pulumi.String("delay"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.dts.JobMonitorRule;
import com.pulumi.alicloud.dts.JobMonitorRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new JobMonitorRule("example", JobMonitorRuleArgs.builder()        
            .dtsJobId("example_value")
            .type("delay")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.dts.JobMonitorRule("example",
    dts_job_id="example_value",
    type="delay")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = new alicloud.dts.JobMonitorRule("example", {
    dtsJobId: "example_value",
    type: "delay",
});
resources:
  example:
    type: alicloud:dts:JobMonitorRule
    properties:
      dtsJobId: example_value
      type: delay

Create JobMonitorRule Resource

new JobMonitorRule(name: string, args: JobMonitorRuleArgs, opts?: CustomResourceOptions);
@overload
def JobMonitorRule(resource_name: 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)
@overload
def JobMonitorRule(resource_name: str,
                   args: JobMonitorRuleArgs,
                   opts: Optional[ResourceOptions] = 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.

name string
The unique name of the resource.
args JobMonitorRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args 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 string
The unique name of the resource.
args JobMonitorRuleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args JobMonitorRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args JobMonitorRuleArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

The JobMonitorRule resource accepts the following input properties:

DtsJobId string

Migration, synchronization or subscription task ID can be by calling the [DescribeDtsJobs] get.

Type 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 string

Migration, synchronization or subscription task ID can be by calling the [DescribeDtsJobs] get.

Type 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 String

Migration, synchronization or subscription task ID can be by calling the [DescribeDtsJobs] get.

type 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 string

Migration, synchronization or subscription task ID can be by calling the [DescribeDtsJobs] get.

type 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 str

Migration, synchronization or subscription task ID can be by calling the [DescribeDtsJobs] get.

type 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 String

Migration, synchronization or subscription task ID can be by calling the [DescribeDtsJobs] get.

type 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)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
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 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 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 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 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 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 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 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 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 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 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 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 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>

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.