Language

ArmMonitorModelFactory.ServiceDiagnosticSettingPatch Method

Definition

public static Azure.ResourceManager.Monitor.Models.ServiceDiagnosticSettingPatch ServiceDiagnosticSettingPatch(System.Collections.Generic.IDictionary<string,string> tags = 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);
static member ServiceDiagnosticSettingPatch : System.Collections.Generic.IDictionary<string, string> * 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.ResourceManager.Monitor.Models.ServiceDiagnosticSettingPatch
Public Shared Function ServiceDiagnosticSettingPatch (Optional tags As IDictionary(Of String, String) = 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) As ServiceDiagnosticSettingPatch

Parameters

tags
IDictionary<String,String>

Resource tags.

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.

Returns

A new ServiceDiagnosticSettingPatch instance for mocking.

Applies to