I came across a code and want to implement the same for my pipeline for vm availability metrics, but not able to understand usage of -windowsize and -frequency parameters they are used as below :
Add-AzMetricAlertRuleV2 -Name "VM CPU Percentage Exceeded- $machinename " -ResourceGroupName $RGroupName -WindowSize 0:5 -Frequency 0:5 -TargetResourceScope $virtualMachine -TargetResourceType "Microsoft.Compute/virtualMachines" -TargetResourceRegion "westeurope" -Description $ciNumber -Severity "2" -ActionGroupId $actionId -Condition $triggerCondition1
where we have declared $RGroupname, $actionId and $triggerCondition1 at the top in the code.
What is Windowsize and Frequency implying here?