RuleCondition Class

  • java.lang.Object
    • com.microsoft.azure.management.monitor.RuleCondition

public class RuleCondition

The condition that results in the alert rule being activated.

Constructor Summary

Constructor Description
RuleCondition()

Method Summary

Modifier and Type Method and Description
RuleDataSource dataSource()

Get the resource from which the rule collects its data.

RuleCondition withDataSource(RuleDataSource dataSource)

Set the resource from which the rule collects its data.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

RuleCondition

public RuleCondition()

Method Details

dataSource

public RuleDataSource dataSource()

Get the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.

Returns:

the dataSource value

withDataSource

public RuleCondition withDataSource(RuleDataSource dataSource)

Set the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.

Parameters:

dataSource - the dataSource value to set

Returns:

the RuleCondition object itself.

Applies to