DynamicMetricCriteria Class
Criterion for dynamic threshold.
All required parameters must be populated in order to send to Azure.
- Inheritance
-
azure.mgmt.monitor.v2018_03_01.models._models_py3.MultiMetricCriteriaDynamicMetricCriteria
Constructor
DynamicMetricCriteria(*, 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.DynamicThresholdOperator], alert_sensitivity: Union[str, azure.mgmt.monitor.v2018_03_01.models._monitor_management_client_enums.DynamicThresholdSensitivity], failing_periods: azure.mgmt.monitor.v2018_03_01.models._models_py3.DynamicThresholdFailingPeriods, 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, ignore_data_before: Optional[datetime.datetime] = None, **kwargs)
Variables
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>)DynamicThresholdOperator
Required. The operator used to compare the metric value against the threshold. Possible values include: "GreaterThan", "LessThan", "GreaterOrLessThan".
- alert_sensitivity
- str or <xref:$>(<xref:python-base-namespace>)DynamicThresholdSensitivity
Required. The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern. Possible values include: "Low", "Medium", "High".
- failing_periods
- <xref:$>(<xref:python-base-namespace>)DynamicThresholdFailingPeriods
Required. The minimum number of violations required within the selected lookback time window required to raise an alert.
- ignore_data_before
- datetime
Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format).
Feedback
Submit and view feedback for