Share via


MonitorExtensions.GetAlertRuleResource(ArmClient, ResourceIdentifier) Method

Definition

Gets an object representing an AlertRuleResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create an AlertRuleResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetAlertRuleResource(ResourceIdentifier) instead.

public static Azure.ResourceManager.Monitor.AlertRuleResource GetAlertRuleResource (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id);
static member GetAlertRuleResource : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.Monitor.AlertRuleResource
<Extension()>
Public Function GetAlertRuleResource (client As ArmClient, id As ResourceIdentifier) As AlertRuleResource

Parameters

client
ArmClient

The ArmClient instance the method will execute against.

id
ResourceIdentifier

The resource ID of the resource to get.

Returns

Returns a AlertRuleResource object.

Exceptions

client is null.

Applies to