Udostępnij za pośrednictwem


LogProfileResourcePatch Constructors

Definition

Overloads

LogProfileResourcePatch()

Initializes a new instance of the LogProfileResourcePatch class.

LogProfileResourcePatch(IList<String>, IList<String>, RetentionPolicy, IDictionary<String,String>, String, String)

Initializes a new instance of the LogProfileResourcePatch class.

LogProfileResourcePatch()

Initializes a new instance of the LogProfileResourcePatch class.

public LogProfileResourcePatch ();
Public Sub New ()

Applies to

LogProfileResourcePatch(IList<String>, IList<String>, RetentionPolicy, IDictionary<String,String>, String, String)

Initializes a new instance of the LogProfileResourcePatch class.

public LogProfileResourcePatch (System.Collections.Generic.IList<string> locations, System.Collections.Generic.IList<string> categories, Microsoft.Azure.Management.Monitor.Models.RetentionPolicy retentionPolicy, System.Collections.Generic.IDictionary<string,string> tags = default, string storageAccountId = default, string serviceBusRuleId = default);
new Microsoft.Azure.Management.Monitor.Models.LogProfileResourcePatch : System.Collections.Generic.IList<string> * System.Collections.Generic.IList<string> * Microsoft.Azure.Management.Monitor.Models.RetentionPolicy * System.Collections.Generic.IDictionary<string, string> * string * string -> Microsoft.Azure.Management.Monitor.Models.LogProfileResourcePatch
Public Sub New (locations As IList(Of String), categories As IList(Of String), retentionPolicy As RetentionPolicy, Optional tags As IDictionary(Of String, String) = Nothing, Optional storageAccountId As String = Nothing, Optional serviceBusRuleId As String = Nothing)

Parameters

locations
IList<String>

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
IList<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.

tags
IDictionary<String,String>

Resource tags

storageAccountId
String

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

serviceBusRuleId
String

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}'.

Applies to