ScaleRuleInner Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. fluent. models. ScaleRuleInner
- com.
Implements
public final class ScaleRuleInner
implements JsonSerializable<ScaleRuleInner>
A rule that provide the triggers and parameters for the scaling action.
Constructor Summary
Constructor | Description |
---|---|
ScaleRuleInner() |
Creates an instance of Scale |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Scale |
fromJson(JsonReader jsonReader)
Reads an instance of Scale |
Metric |
metricTrigger()
Get the metric |
Scale |
scaleAction()
Get the scale |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Scale |
withMetricTrigger(MetricTrigger metricTrigger)
Set the metric |
Scale |
withScaleAction(ScaleAction scaleAction)
Set the scale |
Methods inherited from java.lang.Object
Constructor Details
ScaleRuleInner
public ScaleRuleInner()
Creates an instance of ScaleRuleInner class.
Method Details
fromJson
public static ScaleRuleInner fromJson(JsonReader jsonReader)
Reads an instance of ScaleRuleInner from the JsonReader.
Parameters:
Returns:
Throws:
metricTrigger
public MetricTrigger metricTrigger()
Get the metricTrigger property: the trigger that results in a scaling action.
Returns:
scaleAction
public ScaleAction scaleAction()
Get the scaleAction property: the parameters for the scaling action.
Returns:
toJson
validate
public void validate()
Validates the instance.
withMetricTrigger
public ScaleRuleInner withMetricTrigger(MetricTrigger metricTrigger)
Set the metricTrigger property: the trigger that results in a scaling action.
Parameters:
Returns:
withScaleAction
public ScaleRuleInner withScaleAction(ScaleAction scaleAction)
Set the scaleAction property: the parameters for the scaling action.
Parameters:
Returns:
Applies to
Azure SDK for Java