ScaleRuleInner Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. fluent. models. ScaleRuleInner
- com.
public final class 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 |
---|---|
Metric |
metricTrigger()
Get the metric |
Scale |
scaleAction()
Get the scale |
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
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:
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for