Share via


LogProfileResource Constructors

Definition

Overloads

LogProfileResource()

Initializes a new instance of the LogProfileResource class.

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

Initializes a new instance of the LogProfileResource class.

LogProfileResource()

Initializes a new instance of the LogProfileResource class.

public LogProfileResource ();
Public Sub New ()

Applies to

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

Initializes a new instance of the LogProfileResource class.

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

Parameters

location
String

Resource location

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.

id
String

Azure resource Id

name
String

Azure resource name

type
String

Azure resource type

tags
IDictionary<String,String>

Resource tags

kind
String

Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.

etag
String

The etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.

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