Interface DiagnosticSetting.DefinitionStages.WithDiagnosticLogRecipient
- All Known Subinterfaces:
DiagnosticSetting.Definition,DiagnosticSetting.DefinitionStages.WithCreate
- Enclosing interface:
- DiagnosticSetting.DefinitionStages
public static interface DiagnosticSetting.DefinitionStages.WithDiagnosticLogRecipient
The stage of the definition which contains minimum required properties to be specified for Diagnostic
Settings creation.
-
Method Summary
Modifier and TypeMethodDescriptionwithEventHub(String eventHubAuthorizationRuleId) Sets EventHub Namespace Authorization Rule for data transfer.withEventHub(String eventHubAuthorizationRuleId, String eventHubName) Sets EventHub Namespace Authorization Rule for data transfer.withLogAnalytics(String workspaceId) Sets Log Analytics workspace for data transfer.withStorageAccount(String storageAccountId) Sets Storage Account for data transfer.
-
Method Details
-
withLogAnalytics
Sets Log Analytics workspace for data transfer.- Parameters:
workspaceId- of Log Analytics that should exist in the same region as resource.- Returns:
- the stage of creating Diagnostic Settings.
-
withStorageAccount
Sets Storage Account for data transfer.- Parameters:
storageAccountId- of storage account that should exist in the same region as resource.- Returns:
- the stage of creating Diagnostic Settings.
-
withEventHub
Sets EventHub Namespace Authorization Rule for data transfer.- Parameters:
eventHubAuthorizationRuleId- of EventHub namespace authorization rule that should exist in the same region as resource.- Returns:
- the stage of creating Diagnostic Settings.
-
withEventHub
DiagnosticSetting.DefinitionStages.WithCreate withEventHub(String eventHubAuthorizationRuleId, String eventHubName) Sets EventHub Namespace Authorization Rule for data transfer.- Parameters:
eventHubAuthorizationRuleId- of EventHub namespace authorization rule that should exist in the same region as resource.eventHubName- name of the EventHub. If none is specified, the default EventHub will be selected.- Returns:
- the stage of creating Diagnostic Settings.
-