Język

ArmMonitorModelFactory.LogProfileData Method

Definition

Initializes a new instance of LogProfileData.

public static Azure.ResourceManager.Monitor.LogProfileData LogProfileData(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, Azure.Core.ResourceIdentifier storageAccountId = default, Azure.Core.ResourceIdentifier serviceBusRuleId = default, System.Collections.Generic.IEnumerable<Azure.Core.AzureLocation> locations = default, System.Collections.Generic.IEnumerable<string> categories = default, Azure.ResourceManager.Monitor.Models.RetentionPolicy retentionPolicy = default);
static member LogProfileData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * seq<Azure.Core.AzureLocation> * seq<string> * Azure.ResourceManager.Monitor.Models.RetentionPolicy -> Azure.ResourceManager.Monitor.LogProfileData
Public Shared Function LogProfileData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional storageAccountId As ResourceIdentifier = Nothing, Optional serviceBusRuleId As ResourceIdentifier = Nothing, Optional locations As IEnumerable(Of AzureLocation) = Nothing, Optional categories As IEnumerable(Of String) = Nothing, Optional retentionPolicy As RetentionPolicy = Nothing) As LogProfileData

Parameters

id
ResourceIdentifier

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

name
String

The name of the resource.

resourceType
ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

systemData
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

tags
IDictionary<String,String>

Resource tags.

location
AzureLocation

The geo-location where the resource lives.

storageAccountId
ResourceIdentifier

the resource id of the storage account to which you would like to send the Activity Log.

serviceBusRuleId
ResourceIdentifier

The service bus rule ID of the service bus namespace in which you would like to have Event Hubs created for streaming the Activity Log. The rule ID is of the format: '{service bus resource ID}/authorizationrules/{key name}'.

locations
IEnumerable<AzureLocation>

List of regions for which Activity Log events should be stored or streamed. It is a comma separated list of valid ARM locations including the 'global' location.

categories
IEnumerable<String>

the categories of the logs. These categories are created as is convenient to the user. Some values are: 'Write', 'Delete', and/or 'Action.'.

retentionPolicy
RetentionPolicy

the retention policy for the events in the log.

Returns

A new LogProfileData instance for mocking.

Applies to