共用方式為


MonitorExtensions.GetActivityLogAlertResource Method

Definition

Gets an object representing an ActivityLogAlertResource 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 ActivityLogAlertResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetActivityLogAlertResource(ResourceIdentifier) instead.

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

Parameters

client
ArmClient

The ArmClient instance the method will execute against.

id
ResourceIdentifier

The resource ID of the resource to get.

Returns

Returns a ActivityLogAlertResource object.

Exceptions

client is null.

Applies to