AutoscaleSettingProfileRuleMetricTriggerArgs

data class AutoscaleSettingProfileRuleMetricTriggerArgs(val dimensions: Output<List<AutoscaleSettingProfileRuleMetricTriggerDimensionArgs>>? = null, val divideByInstanceCount: Output<Boolean>? = null, val metricName: Output<String>, val metricNamespace: Output<String>? = null, val metricResourceId: Output<String>, val operator: Output<String>, val statistic: Output<String>, val threshold: Output<Double>, val timeAggregation: Output<String>, val timeGrain: Output<String>, val timeWindow: Output<String>) : ConvertibleToJava<AutoscaleSettingProfileRuleMetricTriggerArgs>

Constructors

constructor(dimensions: Output<List<AutoscaleSettingProfileRuleMetricTriggerDimensionArgs>>? = null, divideByInstanceCount: Output<Boolean>? = null, metricName: Output<String>, metricNamespace: Output<String>? = null, metricResourceId: Output<String>, operator: Output<String>, statistic: Output<String>, threshold: Output<Double>, timeAggregation: Output<String>, timeGrain: Output<String>, timeWindow: Output<String>)

Properties

Link copied to clipboard

One or more dimensions block as defined below.

Link copied to clipboard
val divideByInstanceCount: Output<Boolean>? = null

Whether to enable metric divide by instance count.

Link copied to clipboard
val metricName: Output<String>

The name of the metric that defines what the rule monitors, such as Percentage CPU for Virtual Machine Scale Sets and CpuPercentage for App Service Plan.

Link copied to clipboard
val metricNamespace: Output<String>? = null

The namespace of the metric that defines what the rule monitors, such as microsoft.compute/virtualmachinescalesets for Virtual Machine Scale Sets.

Link copied to clipboard

The ID of the Resource which the Rule monitors.

Link copied to clipboard
val operator: Output<String>

Specifies the operator used to compare the metric data and threshold. Possible values are: Equals, NotEquals, GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual.

Link copied to clipboard
val statistic: Output<String>

Specifies how the metrics from multiple instances are combined. Possible values are Average, Max, Min and Sum.

Link copied to clipboard
val threshold: Output<Double>

Specifies the threshold of the metric that triggers the scale action.

Link copied to clipboard
val timeAggregation: Output<String>

Specifies how the data that's collected should be combined over time. Possible values include Average, Count, Maximum, Minimum, Last and Total.

Link copied to clipboard
val timeGrain: Output<String>

Specifies the granularity of metrics that the rule monitors, which must be one of the pre-defined values returned from the metric definitions for the metric. This value must be between 1 minute and 12 hours an be formatted as an ISO 8601 string.

Link copied to clipboard
val timeWindow: Output<String>

Specifies the time range for which data is collected, which must be greater than the delay in metric collection (which varies from resource to resource). This value must be between 5 minutes and 12 hours and be formatted as an ISO 8601 string.

Functions

Link copied to clipboard
open override fun toJava(): AutoscaleSettingProfileRuleMetricTriggerArgs