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 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:
- Dts
Job stringId - 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. - Delay
Rule stringTime - 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 stringId - 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. - Delay
Rule stringTime - 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 StringId - 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. - delay
Rule StringTime - 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 stringId - 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. - delay
Rule stringTime - 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_ strid - 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_ strtime - 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
.
- dts
Job StringId - 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. - delay
Rule StringTime - 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.
- Delay
Rule stringTime - Trigger delay alarm threshold, which is measured in seconds.
- Dts
Job stringId - 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 stringTime - Trigger delay alarm threshold, which is measured in seconds.
- Dts
Job stringId - 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 StringTime - Trigger delay alarm threshold, which is measured in seconds.
- dts
Job StringId - 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 stringTime - Trigger delay alarm threshold, which is measured in seconds.
- dts
Job stringId - 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_ strtime - Trigger delay alarm threshold, which is measured in seconds.
- dts_
job_ strid - 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.
- delay
Rule StringTime - Trigger delay alarm threshold, which is measured in seconds.
- dts
Job StringId - 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.