MetricTrigger Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The trigger that results in a scaling action.
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.MetricTriggerTypeConverter))]
public class MetricTrigger : Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IMetricTrigger
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.MetricTriggerTypeConverter))>]
type MetricTrigger = class
interface IMetricTrigger
interface IJsonSerializable
Public Class MetricTrigger
Implements IMetricTrigger
- Inheritance
-
MetricTrigger
- Attributes
- Implements
Constructors
MetricTrigger() |
Creates an new MetricTrigger instance. |
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
DeserializeFromDictionary(IDictionary) |
Deserializes a IDictionary into an instance of MetricTrigger. |
DeserializeFromPSObject(PSObject) |
Deserializes a PSObject into an instance of MetricTrigger. |
FromJson(JsonNode) |
Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IMetricTrigger. |
FromJsonString(String) |
Creates a new instance of MetricTrigger, deserializing the content from a json string. |
ToJson(JsonObject, SerializationMode) |
Serializes this instance of MetricTrigger into a JsonNode. |
ToJsonString() |
Serializes this instance to a json string. |
ToString() |