Share via


DiagnosticSettingsResource Class

Definition

The diagnostic setting resource.

[Microsoft.Rest.Serialization.JsonTransformation]
public class DiagnosticSettingsResource : Microsoft.Azure.Management.Monitor.Models.ProxyOnlyResource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type DiagnosticSettingsResource = class
    inherit ProxyOnlyResource
Public Class DiagnosticSettingsResource
Inherits ProxyOnlyResource
Inheritance
DiagnosticSettingsResource
Attributes

Constructors

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.

Properties

EventHubAuthorizationRuleId

Gets or sets the resource Id for the event hub authorization rule.

EventHubName

Gets or sets the name of the event hub. If none is specified, the default event hub will be selected.

Id

Gets azure resource Id

(Inherited from ProxyOnlyResource)
LogAnalyticsDestinationType

Gets or sets 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: &lt;normalized service identity&gt;_&lt;normalized category name&gt;. Possible values are: Dedicated and null (null is default.)

Logs

Gets or sets the list of logs settings.

Metrics

Gets or sets the list of metric settings.

Name

Gets azure resource name

(Inherited from ProxyOnlyResource)
ServiceBusRuleId

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

StorageAccountId

Gets or sets the resource ID of the storage account to which you would like to send Diagnostic Logs.

Type

Gets azure resource type

(Inherited from ProxyOnlyResource)
WorkspaceId

Gets or sets 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

Applies to