### YamlMime:JavaType uid: "com.azure.resourcemanager.monitor.models.ScaleRule" fullName: "com.azure.resourcemanager.monitor.models.ScaleRule" name: "ScaleRule" nameWithType: "ScaleRule" summary: "An immutable client-side representation of an Azure autoscale profile scale rule." syntax: "public interface **ScaleRule**
extends <>, <>" methods: - uid: "com.azure.resourcemanager.monitor.models.ScaleRule.condition()" fullName: "com.azure.resourcemanager.monitor.models.ScaleRule.condition()" name: "condition()" nameWithType: "ScaleRule.condition()" summary: "Get the operator that is used to compare the metric data and the threshold." modifiers: - "abstract" syntax: "public abstract ComparisonOperationType condition()" desc: "Get the operator that is used to compare the metric data and the threshold. Possible values include: 'Equals', 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual'." returns: description: "the operator value" type: "" - uid: "com.azure.resourcemanager.monitor.models.ScaleRule.cooldown()" fullName: "com.azure.resourcemanager.monitor.models.ScaleRule.cooldown()" name: "cooldown()" nameWithType: "ScaleRule.cooldown()" summary: "Get the amount of time to wait since the last scaling action before this action occurs." modifiers: - "abstract" syntax: "public abstract Duration cooldown()" desc: "Get the amount of time to wait since the last scaling action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format." returns: description: "the cooldown value" type: "Duration" - uid: "com.azure.resourcemanager.monitor.models.ScaleRule.duration()" fullName: "com.azure.resourcemanager.monitor.models.ScaleRule.duration()" name: "duration()" nameWithType: "ScaleRule.duration()" summary: "Get the range of time in which instance data is collected." modifiers: - "abstract" syntax: "public abstract Duration duration()" desc: "Get the range of time in which instance data is collected. This value must be greater than the delay in metric collection, which can vary from resource-to-resource. Must be between 12 hours and 5 minutes." returns: description: "the timeWindow value" type: "Duration" - uid: "com.azure.resourcemanager.monitor.models.ScaleRule.frequency()" fullName: "com.azure.resourcemanager.monitor.models.ScaleRule.frequency()" name: "frequency()" nameWithType: "ScaleRule.frequency()" summary: "Get the granularity of metrics the rule monitors." modifiers: - "abstract" syntax: "public abstract Duration frequency()" desc: "Get the granularity of metrics the rule monitors. Must be one of the predefined values returned from metric definitions for the metric. Must be between 12 hours and 1 minute." returns: description: "the timeGrain value" type: "Duration" - uid: "com.azure.resourcemanager.monitor.models.ScaleRule.frequencyStatistic()" fullName: "com.azure.resourcemanager.monitor.models.ScaleRule.frequencyStatistic()" name: "frequencyStatistic()" nameWithType: "ScaleRule.frequencyStatistic()" summary: "Get the metric statistic type." modifiers: - "abstract" syntax: "public abstract MetricStatisticType frequencyStatistic()" desc: "Get the metric statistic type. How the metrics from multiple instances are combined. Possible values include: 'Average', 'Min', 'Max', 'Sum'." returns: description: "the statistic value" type: "" - uid: "com.azure.resourcemanager.monitor.models.ScaleRule.metricName()" fullName: "com.azure.resourcemanager.monitor.models.ScaleRule.metricName()" name: "metricName()" nameWithType: "ScaleRule.metricName()" summary: "Get the name of the metric that defines what the rule monitors." modifiers: - "abstract" syntax: "public abstract String metricName()" desc: "Get the name of the metric that defines what the rule monitors." returns: description: "the metricName value" type: "String" - uid: "com.azure.resourcemanager.monitor.models.ScaleRule.metricSource()" fullName: "com.azure.resourcemanager.monitor.models.ScaleRule.metricSource()" name: "metricSource()" nameWithType: "ScaleRule.metricSource()" summary: "Get the resource identifier of the resource the rule monitors." modifiers: - "abstract" syntax: "public abstract String metricSource()" desc: "Get the resource identifier of the resource the rule monitors." returns: description: "the metricResourceUri value" type: "String" - uid: "com.azure.resourcemanager.monitor.models.ScaleRule.scaleDirection()" fullName: "com.azure.resourcemanager.monitor.models.ScaleRule.scaleDirection()" name: "scaleDirection()" nameWithType: "ScaleRule.scaleDirection()" summary: "Get the scale direction." modifiers: - "abstract" syntax: "public abstract ScaleDirection scaleDirection()" desc: "Get the scale direction. Whether the scaling action increases or decreases the number of instances. Possible values include: 'None', 'Increase', 'Decrease'." returns: description: "the direction value" type: "" - uid: "com.azure.resourcemanager.monitor.models.ScaleRule.scaleInstanceCount()" fullName: "com.azure.resourcemanager.monitor.models.ScaleRule.scaleInstanceCount()" name: "scaleInstanceCount()" nameWithType: "ScaleRule.scaleInstanceCount()" summary: "Get the number of instances that are involved in the scaling action." modifiers: - "abstract" syntax: "public abstract int scaleInstanceCount()" desc: "Get the number of instances that are involved in the scaling action." returns: description: "the value value" type: "" - uid: "com.azure.resourcemanager.monitor.models.ScaleRule.scaleType()" fullName: "com.azure.resourcemanager.monitor.models.ScaleRule.scaleType()" name: "scaleType()" nameWithType: "ScaleRule.scaleType()" summary: "Get the type of action that should occur when the scale rule fires." modifiers: - "abstract" syntax: "public abstract ScaleType scaleType()" desc: "Get the type of action that should occur when the scale rule fires. Possible values include: 'ChangeCount', 'PercentChangeCount', 'ExactCount'." returns: description: "the type value" type: "" - uid: "com.azure.resourcemanager.monitor.models.ScaleRule.threshold()" fullName: "com.azure.resourcemanager.monitor.models.ScaleRule.threshold()" name: "threshold()" nameWithType: "ScaleRule.threshold()" summary: "Get the threshold of the metric that triggers the scale action." modifiers: - "abstract" syntax: "public abstract double threshold()" desc: "Get the threshold of the metric that triggers the scale action." returns: description: "the threshold value" type: "" - uid: "com.azure.resourcemanager.monitor.models.ScaleRule.timeAggregation()" fullName: "com.azure.resourcemanager.monitor.models.ScaleRule.timeAggregation()" name: "timeAggregation()" nameWithType: "ScaleRule.timeAggregation()" summary: "Get the time aggregation type." modifiers: - "abstract" syntax: "public abstract TimeAggregationType timeAggregation()" desc: "Get the time aggregation type. How the data that is collected should be combined over time. The default value is Average. Possible values include: 'Average', 'Minimum', 'Maximum', 'Total', 'Count'." returns: description: "the timeAggregation value" type: "" type: "interface" desc: "An immutable client-side representation of an Azure autoscale profile scale rule." implements: - "<>" - "<>" metadata: {} package: "com.azure.resourcemanager.monitor.models" artifact: com.azure.resourcemanager:azure-resourcemanager-monitor:2.44.0