Share via


IMetricTrigger Interface

Definition

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.MetricTriggerTypeConverter))]
public interface IMetricTrigger : Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.IJsonSerializable
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.MetricTriggerTypeConverter))>]
type IMetricTrigger = interface
    interface IJsonSerializable
Public Interface IMetricTrigger
Implements IJsonSerializable
Derived
Attributes
Implements

Properties

Dimension

List of dimension conditions. For example: [{"DimensionName":"AppName","Operator":"Equals","Values":["App1"]},{"DimensionName":"Deployment","Operator":"Equals","Values":["default"]}].

DividePerInstance

a value indicating whether metric should divide per instance.

MetricName

the name of the metric that defines what the rule monitors.

MetricNamespace

the namespace of the metric that defines what the rule monitors.

MetricResourceLocation

the location of the resource the rule monitors.

MetricResourceUri

the resource identifier of the resource the rule monitors.

Operator

the operator that is used to compare the metric data and the threshold.

Statistic

the metric statistic type. How the metrics from multiple instances are combined.

Threshold

the threshold of the metric that triggers the scale action.

TimeAggregation

time aggregation type. How the data that is collected should be combined over time. The default value is Average.

TimeGrain

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.

TimeWindow

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.

Methods

ToJson(JsonObject, SerializationMode) (Inherited from IJsonSerializable)

Applies to