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 Summary
Constructors Constructor Description RuleMetricDataSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringmetricName()Get the name of the metric that defines what the rule monitors.RuleMetricDataSourcewithMetricName(String metricName)Set the name of the metric that defines what the rule monitors.-
Methods inherited from class com.microsoft.azure.management.monitor.RuleDataSource
resourceUri, withResourceUri
-
-
-
-
Method Detail
-
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.
-
-