ScaleRuleMetricDimension Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. ScaleRuleMetricDimension
- com.
Implements
public final class ScaleRuleMetricDimension
implements JsonSerializable<ScaleRuleMetricDimension>
Specifies an auto scale rule metric dimension.
Constructor Summary
Constructor | Description |
---|---|
ScaleRuleMetricDimension() |
Creates an instance of Scale |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
dimensionName()
Get the dimension |
static
Scale |
fromJson(JsonReader jsonReader)
Reads an instance of Scale |
Scale |
operator()
Get the operator property: the dimension operator. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
List<String> |
values()
Get the values property: list of dimension values. |
Scale |
withDimensionName(String dimensionName)
Set the dimension |
Scale |
withOperator(ScaleRuleMetricDimensionOperationType operator)
Set the operator property: the dimension operator. |
Scale |
withValues(List<String> values)
Set the values property: list of dimension values. |
Methods inherited from java.lang.Object
Constructor Details
ScaleRuleMetricDimension
public ScaleRuleMetricDimension()
Creates an instance of ScaleRuleMetricDimension class.
Method Details
dimensionName
public String dimensionName()
Get the dimensionName property: Name of the dimension.
Returns:
fromJson
public static ScaleRuleMetricDimension fromJson(JsonReader jsonReader)
Reads an instance of ScaleRuleMetricDimension from the JsonReader.
Parameters:
Returns:
Throws:
operator
public ScaleRuleMetricDimensionOperationType operator()
Get the operator property: the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to any of the values. 'NotEquals' being not equal to all of the values.
Returns:
toJson
validate
public void validate()
Validates the instance.
values
public List
Get the values property: list of dimension values. For example: ["App1","App2"].
Returns:
withDimensionName
public ScaleRuleMetricDimension withDimensionName(String dimensionName)
Set the dimensionName property: Name of the dimension.
Parameters:
Returns:
withOperator
public ScaleRuleMetricDimension withOperator(ScaleRuleMetricDimensionOperationType operator)
Set the operator property: the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to any of the values. 'NotEquals' being not equal to all of the values.
Parameters:
Returns:
withValues
public ScaleRuleMetricDimension withValues(List
Set the values property: list of dimension values. For example: ["App1","App2"].
Parameters:
Returns:
Applies to
Azure SDK for Java