IScheduledQueryRuleResource.TargetResourceType Property

Definition

List of resource type of the target resource(s) on which the alert is created/updated. For example if the scope is a resource group and targetResourceTypes is Microsoft.Compute/virtualMachines, then a different alert will be fired for each virtual machine in the resource group which meet the alert criteria. Relevant only for rules of the kind LogAlert

[Microsoft.Azure.PowerShell.Cmdlets.Monitor.ScheduledQueryRule.Runtime.Info(Description="List of resource type of the target resource(s) on which the alert is created/updated. For example if the scope is a resource group and targetResourceTypes is Microsoft.Compute/virtualMachines, then a different alert will be fired for each virtual machine in the resource group which meet the alert criteria. Relevant only for rules of the kind LogAlert", PossibleTypes=new System.Type[] { typeof(System.String) }, ReadOnly=false, Required=false, SerializedName="targetResourceTypes")]
public string[] TargetResourceType { get; set; }
[<Microsoft.Azure.PowerShell.Cmdlets.Monitor.ScheduledQueryRule.Runtime.Info(Description="List of resource type of the target resource(s) on which the alert is created/updated. For example if the scope is a resource group and targetResourceTypes is Microsoft.Compute/virtualMachines, then a different alert will be fired for each virtual machine in the resource group which meet the alert criteria. Relevant only for rules of the kind LogAlert", PossibleTypes=new System.Type[] { typeof(System.String) }, ReadOnly=false, Required=false, SerializedName="targetResourceTypes")>]
member this.TargetResourceType : string[] with get, set
Public Property TargetResourceType As String()

Property Value

String[]
Attributes

Applies to