Class ThresholdRuleConditionArgs


  • public final class ThresholdRuleConditionArgs
    extends com.pulumi.resources.ResourceArgs
    A rule condition based on a metric crossing a threshold.
    • Method Detail

      • dataSource

        public java.util.Optional<com.pulumi.core.Output<com.pulumi.core.Either<RuleManagementEventDataSourceArgs,​RuleMetricDataSourceArgs>>> dataSource()
        Returns:
        the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
      • odataType

        public com.pulumi.core.Output<java.lang.String> odataType()
        Returns:
        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.ThresholdRuleCondition'.
      • operator

        public com.pulumi.core.Output<ConditionOperator> operator()
        Returns:
        the operator used to compare the data and the threshold.
      • threshold

        public com.pulumi.core.Output<java.lang.Double> threshold()
        Returns:
        the threshold value that activates the alert.
      • timeAggregation

        public java.util.Optional<com.pulumi.core.Output<TimeAggregationOperator>> timeAggregation()
        Returns:
        the time aggregation operator. How the data that are collected should be combined over time. The default value is the PrimaryAggregationType of the Metric.
      • windowSize

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> windowSize()
        Returns:
        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.