DiagnosticSettingsResource Constructors

Definition

Overloads

DiagnosticSettingsResource()

Initializes a new instance of the DiagnosticSettingsResource class.

DiagnosticSettingsResource(String, String, String, String, String, String, String, IList<MetricSettings>, IList<LogSettings>, String, String)

Initializes a new instance of the DiagnosticSettingsResource class.

DiagnosticSettingsResource()

Initializes a new instance of the DiagnosticSettingsResource class.

public DiagnosticSettingsResource ();
Public Sub New ()

Applies to

DiagnosticSettingsResource(String, String, String, String, String, String, String, IList<MetricSettings>, IList<LogSettings>, String, String)

Initializes a new instance of the DiagnosticSettingsResource class.

public DiagnosticSettingsResource (string id = default, string name = default, string type = default, string storageAccountId = default, string serviceBusRuleId = default, string eventHubAuthorizationRuleId = default, string eventHubName = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.MetricSettings> metrics = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.LogSettings> logs = default, string workspaceId = default, string logAnalyticsDestinationType = default);
new Microsoft.Azure.Management.Monitor.Models.DiagnosticSettingsResource : string * string * string * string * string * string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.MetricSettings> * System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.LogSettings> * string * string -> Microsoft.Azure.Management.Monitor.Models.DiagnosticSettingsResource
Public Sub New (Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional storageAccountId As String = Nothing, Optional serviceBusRuleId As String = Nothing, Optional eventHubAuthorizationRuleId As String = Nothing, Optional eventHubName As String = Nothing, Optional metrics As IList(Of MetricSettings) = Nothing, Optional logs As IList(Of LogSettings) = Nothing, Optional workspaceId As String = Nothing, Optional logAnalyticsDestinationType As String = Nothing)

Parameters

id
String

Azure resource Id

name
String

Azure resource name

type
String

Azure resource type

storageAccountId
String

The resource ID of the storage account to which you would like to send Diagnostic Logs.

serviceBusRuleId
String

The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.

eventHubAuthorizationRuleId
String

The resource Id for the event hub authorization rule.

eventHubName
String

The name of the event hub. If none is specified, the default event hub will be selected.

metrics
IList<MetricSettings>

The list of metric settings.

logs
IList<LogSettings>

The list of logs settings.

workspaceId
String

The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2

logAnalyticsDestinationType
String

A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: <normalized service identity>_<normalized category name>. Possible values are: Dedicated and null (null is default.)

Applies to