ArmMonitorModelFactory.LogProfilePatch Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static Azure.ResourceManager.Monitor.Models.LogProfilePatch LogProfilePatch(System.Collections.Generic.IDictionary<string,string> tags = 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 LogProfilePatch : System.Collections.Generic.IDictionary<string, string> * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * seq<Azure.Core.AzureLocation> * seq<string> * Azure.ResourceManager.Monitor.Models.RetentionPolicy -> Azure.ResourceManager.Monitor.Models.LogProfilePatch
Public Shared Function LogProfilePatch (Optional tags As IDictionary(Of String, String) = 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 LogProfilePatch
Parameters
- tags
- IDictionary<String,String>
Resource tags.
- 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 LogProfilePatch instance for mocking.