New-AzScheduledQueryRuleLogMetricTrigger
Creates an object of type Log Metric Trigger.
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
Syntax
New-AzScheduledQueryRuleLogMetricTrigger
-ThresholdOperator <String>
-Threshold <Double>
-MetricTriggerType <String>
-MetricColumn <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Creates an object of type Log Metric Trigger and is optional. This is the trigger condition for metric query rule, to be used when you need to state metric measurement type of alert.
Examples
Example 1
PS C:\> $metricTrigger = New-AzScheduledQueryRuleLogMetricTrigger -ThresholdOperator "GreaterThan" -Threshold 5 -MetricTriggerType "Consecutive" -MetricColumn "Computer"
Parameters
The credentials, account, tenant, and subscription used for communication with Azure.
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Column on which metric value is being aggregated. The input is not validated. It will first be validated when New-AzScheduledQueryRule is eventually called.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The metric trigger type. The input is not validated. It will first be validated when New-AzScheduledQueryRule is eventually called.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The metric threshold value: Consecutive, Total. The input is not validated. It will first be validated when New-AzScheduledQueryRule is eventually called.
| Type: | Double |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The metric threshold operator : GreaterThan, LessThan, Equal. The input is not validated. It will first be validated when New-AzScheduledQueryRule is eventually called.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Inputs
None