TriggerCondition Class

The condition that results in the Log Search rule.

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

Inheritance
TriggerCondition

Constructor

TriggerCondition(*, threshold_operator: Union[str, azure.mgmt.monitor.v2018_04_16.models._monitor_management_client_enums.ConditionalOperator] = 'GreaterThanOrEqual', threshold: float, metric_trigger: Optional[azure.mgmt.monitor.v2018_04_16.models._models_py3.LogMetricTrigger] = None, **kwargs)

Variables

threshold_operator
str or <xref:$>(<xref:python-base-namespace>)ConditionalOperator

Required. Evaluation operation for rule - 'GreaterThan' or 'LessThan. Possible values include: "GreaterThanOrEqual", "LessThanOrEqual", "GreaterThan", "LessThan", "Equal". Default value: "GreaterThanOrEqual".

threshold
float

Required. Result or count threshold based on which rule should be triggered.

metric_trigger
<xref:$>(<xref:python-base-namespace>)LogMetricTrigger

Trigger condition for metric query rule.