Class RuleMetricDataSource

java.lang.Object
com.microsoft.azure.management.monitor.RuleDataSource
com.microsoft.azure.management.monitor.RuleMetricDataSource

public class RuleMetricDataSource extends RuleDataSource
A rule metric data source. The discriminator value is always RuleMetricDataSource in this case.
  • Constructor Details

    • RuleMetricDataSource

      public RuleMetricDataSource()
  • Method Details

    • metricName

      public String metricName()
      Get the name of the metric that defines what the rule monitors.
      Returns:
      the metricName value
    • withMetricName

      public RuleMetricDataSource withMetricName(String metricName)
      Set the name of the metric that defines what the rule monitors.
      Parameters:
      metricName - the metricName value to set
      Returns:
      the RuleMetricDataSource object itself.