MetricCriteria Class

Criterion to filter metrics.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.mgmt.monitor.v2018_03_01.models._models_py3.MultiMetricCriteria
MetricCriteria

Constructor

MetricCriteria(*, name: str, metric_name: str, time_aggregation: Union[str, azure.mgmt.monitor.v2018_03_01.models._monitor_management_client_enums.AggregationTypeEnum], operator: Union[str, azure.mgmt.monitor.v2018_03_01.models._monitor_management_client_enums.Operator], threshold: float, additional_properties: Optional[Dict[str, Any]] = None, metric_namespace: Optional[str] = None, dimensions: Optional[List[azure.mgmt.monitor.v2018_03_01.models._models_py3.MetricDimension]] = None, skip_metric_validation: Optional[bool] = None, **kwargs)

Variables

additional_properties
dict[str, any]

Unmatched properties from the message are deserialized to this collection.

criterion_type
str or <xref:$>(<xref:python-base-namespace>)CriterionType

Required. Specifies the type of threshold criteria.Constant filled by server. Possible values include: "StaticThresholdCriterion", "DynamicThresholdCriterion".

name
str

Required. Name of the criteria.

metric_name
str

Required. Name of the metric.

metric_namespace
str

Namespace of the metric.

time_aggregation
str or <xref:$>(<xref:python-base-namespace>)AggregationTypeEnum

Required. the criteria time aggregation types. Possible values include: "Average", "Count", "Minimum", "Maximum", "Total".

dimensions
list[<xref:$>(<xref:python-base-namespace>)MetricDimension]

List of dimension conditions.

skip_metric_validation
bool

Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.

operator
str or <xref:$>(<xref:python-base-namespace>)Operator

Required. the criteria operator. Possible values include: "Equals", "GreaterThan", "GreaterThanOrEqual", "LessThan", "LessThanOrEqual".

threshold
float

Required. the criteria threshold value that activates the alert.