ArmMonitorModelFactory.DiagnosticSettingData 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.
Initializes a new instance of DiagnosticSettingData.
public static Azure.ResourceManager.Monitor.DiagnosticSettingData DiagnosticSettingData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.Core.ResourceIdentifier storageAccountId = default, Azure.Core.ResourceIdentifier serviceBusRuleId = default, Azure.Core.ResourceIdentifier eventHubAuthorizationRuleId = default, string eventHubName = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Monitor.Models.MetricSettings> metrics = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Monitor.Models.LogSettings> logs = default, Azure.Core.ResourceIdentifier workspaceId = default, Azure.Core.ResourceIdentifier marketplacePartnerId = default, string logAnalyticsDestinationType = default);
static member DiagnosticSettingData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * string * seq<Azure.ResourceManager.Monitor.Models.MetricSettings> * seq<Azure.ResourceManager.Monitor.Models.LogSettings> * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * string -> Azure.ResourceManager.Monitor.DiagnosticSettingData
Public Shared Function DiagnosticSettingData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional storageAccountId As ResourceIdentifier = Nothing, Optional serviceBusRuleId As ResourceIdentifier = Nothing, Optional eventHubAuthorizationRuleId As ResourceIdentifier = Nothing, Optional eventHubName As String = Nothing, Optional metrics As IEnumerable(Of MetricSettings) = Nothing, Optional logs As IEnumerable(Of LogSettings) = Nothing, Optional workspaceId As ResourceIdentifier = Nothing, Optional marketplacePartnerId As ResourceIdentifier = Nothing, Optional logAnalyticsDestinationType As String = Nothing) As DiagnosticSettingData
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- storageAccountId
- ResourceIdentifier
The resource ID of the storage account to which you would like to send Diagnostic Logs.
- serviceBusRuleId
- ResourceIdentifier
The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
- eventHubAuthorizationRuleId
- ResourceIdentifier
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
- IEnumerable<MetricSettings>
The list of metric settings.
- logs
- IEnumerable<LogSettings>
The list of logs settings.
- workspaceId
- ResourceIdentifier
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.
- marketplacePartnerId
- ResourceIdentifier
The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
- 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.).
Returns
A new DiagnosticSettingData instance for mocking.
Applies to
Azure SDK for .NET