Package com.pulumi.alicloud.dts
Class JobMonitorRule
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.alicloud.dts.JobMonitorRule
-
public class JobMonitorRule extends com.pulumi.resources.CustomResource
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](https://www.aliyun.com/product/dts). > **NOTE:** Available since v1.134.0. ## Import DTS Job Monitor Rule can be imported using the id, e.g. ```sh $ pulumi import alicloud:dts/jobMonitorRule:JobMonitorRule example <dts_job_id> ```
-
-
Constructor Summary
Constructors Constructor Description JobMonitorRule(java.lang.String name)
JobMonitorRule(java.lang.String name, JobMonitorRuleArgs args)
JobMonitorRule(java.lang.String name, JobMonitorRuleArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>
delayRuleTime()
com.pulumi.core.Output<java.lang.String>
dtsJobId()
static JobMonitorRule
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, JobMonitorRuleState state, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.util.Optional<java.lang.String>>
phone()
com.pulumi.core.Output<java.lang.String>
state()
com.pulumi.core.Output<java.lang.String>
type()
-
-
-
Constructor Detail
-
JobMonitorRule
public JobMonitorRule(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
JobMonitorRule
public JobMonitorRule(java.lang.String name, JobMonitorRuleArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
JobMonitorRule
public JobMonitorRule(java.lang.String name, JobMonitorRuleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
delayRuleTime
public com.pulumi.core.Output<java.lang.String> delayRuleTime()
- Returns:
- Trigger delay alarm threshold, which is measured in seconds.
-
dtsJobId
public com.pulumi.core.Output<java.lang.String> dtsJobId()
- Returns:
- Migration, synchronization or subscription task ID can be by calling the [DescribeDtsJobs] get.
-
phone
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> phone()
- Returns:
- The alarm is triggered after notification of the contact phone number, A plurality of phone numbers between them with a comma (,) to separate.
-
state
public com.pulumi.core.Output<java.lang.String> state()
- Returns:
- Whether to enable monitoring rules, valid values: `Y`, `N`.
-
type
public com.pulumi.core.Output<java.lang.String> type()
- Returns:
- Monitoring rules of type, valid values: `delay`, `error`. **delay**: delay alarm. **error**: abnormal alarm.
-
get
public static JobMonitorRule get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable JobMonitorRuleState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.state
-options
- Optional settings to control the behavior of the CustomResource.
-
-