1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. dts
  5. JobMonitorRule
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.dts.JobMonitorRule

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    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 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.

    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",
    });
    
    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"),
    })
    
    var jobMonitorRuleResource = new JobMonitorRule("jobMonitorRuleResource", JobMonitorRuleArgs.builder()
        .dtsJobId("string")
        .type("string")
        .delayRuleTime("string")
        .phone("string")
        .state("string")
        .build());
    
    job_monitor_rule_resource = alicloud.dts.JobMonitorRule("jobMonitorRuleResource",
        dts_job_id="string",
        type="string",
        delay_rule_time="string",
        phone="string",
        state="string")
    
    const jobMonitorRuleResource = new alicloud.dts.JobMonitorRule("jobMonitorRuleResource", {
        dtsJobId: "string",
        type: "string",
        delayRuleTime: "string",
        phone: "string",
        state: "string",
    });
    
    type: alicloud:dts:JobMonitorRule
    properties:
        delayRuleTime: string
        dtsJobId: string
        phone: string
        state: string
        type: string
    

    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>
    

    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.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi