Class LocationThresholdRuleConditionArgs.Builder
- java.lang.Object
-
- com.pulumi.azurenative.insights.inputs.LocationThresholdRuleConditionArgs.Builder
-
- Enclosing class:
- LocationThresholdRuleConditionArgs
public static final class LocationThresholdRuleConditionArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(LocationThresholdRuleConditionArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(LocationThresholdRuleConditionArgs defaults)
-
-
Method Detail
-
dataSource
public LocationThresholdRuleConditionArgs.Builder dataSource(@Nullable com.pulumi.core.Output<com.pulumi.core.Either<RuleManagementEventDataSourceArgs,RuleMetricDataSourceArgs>> dataSource)
- Parameters:
dataSource
- the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.- Returns:
- builder
-
dataSource
public LocationThresholdRuleConditionArgs.Builder dataSource(com.pulumi.core.Either<RuleManagementEventDataSourceArgs,RuleMetricDataSourceArgs> dataSource)
- Parameters:
dataSource
- the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.- Returns:
- builder
-
dataSource
public LocationThresholdRuleConditionArgs.Builder dataSource(RuleManagementEventDataSourceArgs dataSource)
- Parameters:
dataSource
- the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.- Returns:
- builder
-
dataSource
public LocationThresholdRuleConditionArgs.Builder dataSource(RuleMetricDataSourceArgs dataSource)
- Parameters:
dataSource
- the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.- Returns:
- builder
-
failedLocationCount
public LocationThresholdRuleConditionArgs.Builder failedLocationCount(com.pulumi.core.Output<java.lang.Integer> failedLocationCount)
- Parameters:
failedLocationCount
- the number of locations that must fail to activate the alert.- Returns:
- builder
-
failedLocationCount
public LocationThresholdRuleConditionArgs.Builder failedLocationCount(java.lang.Integer failedLocationCount)
- Parameters:
failedLocationCount
- the number of locations that must fail to activate the alert.- Returns:
- builder
-
odataType
public LocationThresholdRuleConditionArgs.Builder odataType(com.pulumi.core.Output<java.lang.String> odataType)
- Parameters:
odataType
- specifies the type of condition. This can be one of three types: ManagementEventRuleCondition (occurrences of management events), LocationThresholdRuleCondition (based on the number of failures of a web test), and ThresholdRuleCondition (based on the threshold of a metric). Expected value is 'Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition'.- Returns:
- builder
-
odataType
public LocationThresholdRuleConditionArgs.Builder odataType(java.lang.String odataType)
- Parameters:
odataType
- specifies the type of condition. This can be one of three types: ManagementEventRuleCondition (occurrences of management events), LocationThresholdRuleCondition (based on the number of failures of a web test), and ThresholdRuleCondition (based on the threshold of a metric). Expected value is 'Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition'.- Returns:
- builder
-
windowSize
public LocationThresholdRuleConditionArgs.Builder windowSize(@Nullable com.pulumi.core.Output<java.lang.String> windowSize)
- Parameters:
windowSize
- the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.- Returns:
- builder
-
windowSize
public LocationThresholdRuleConditionArgs.Builder windowSize(java.lang.String windowSize)
- Parameters:
windowSize
- the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.- Returns:
- builder
-
build
public LocationThresholdRuleConditionArgs build()
-
-