ArmMonitorModelFactory.ServiceDiagnosticSettingData 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.
public static Azure.ResourceManager.Monitor.ServiceDiagnosticSettingData ServiceDiagnosticSettingData(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, 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.AzureLocation location = default, System.Collections.Generic.IDictionary<string,string> tags = default);
static member ServiceDiagnosticSettingData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * seq<Azure.ResourceManager.Monitor.Models.MetricSettings> * seq<Azure.ResourceManager.Monitor.Models.LogSettings> * Azure.Core.ResourceIdentifier * Azure.Core.AzureLocation * System.Collections.Generic.IDictionary<string, string> -> Azure.ResourceManager.Monitor.ServiceDiagnosticSettingData
Public Shared Function ServiceDiagnosticSettingData (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 metrics As IEnumerable(Of MetricSettings) = Nothing, Optional logs As IEnumerable(Of LogSettings) = Nothing, Optional workspaceId As ResourceIdentifier = Nothing, Optional location As AzureLocation = Nothing, Optional tags As IDictionary(Of String, String) = Nothing) As ServiceDiagnosticSettingData
Parameters
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
- name
- String
The name of the resource.
- resourceType
- ResourceType
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
- systemData
- SystemData
Azure Resource Manager metadata containing createdBy and modifiedBy information.
- 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 service bus namespace in which you would like to have Event Hubs created for streaming Diagnostic Logs. The rule ID is of the format: '{service bus resource ID}/authorizationrules/{key name}'.
- eventHubAuthorizationRuleId
- ResourceIdentifier
The resource Id for the event hub namespace authorization rule.
- metrics
- IEnumerable<MetricSettings>
the list of metric settings.
- logs
- IEnumerable<LogSettings>
the list of logs settings.
- workspaceId
- ResourceIdentifier
The workspace ID (resource ID of a Log Analytics workspace) for a 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.
- location
- AzureLocation
Resource location.
- tags
- IDictionary<String,String>
Resource tags.
Returns
A new ServiceDiagnosticSettingData instance for mocking.