public class DiagnosticSettingsResourceInner extends ProxyOnlyResource
| Constructor and Description |
|---|
DiagnosticSettingsResourceInner() |
| Modifier and Type | Method and Description |
|---|---|
String |
eventHubAuthorizationRuleId()
Get the eventHubAuthorizationRuleId property: The resource Id for the event hub authorization rule.
|
String |
eventHubName()
Get the eventHubName property: The name of the event hub.
|
String |
logAnalyticsDestinationType()
Get the logAnalyticsDestinationType property: A string indicating whether the export to Log Analytics should use
the default destination type, i.e.
|
List<LogSettings> |
logs()
Get the logs property: The list of logs settings.
|
List<MetricSettings> |
metrics()
Get the metrics property: The list of metric settings.
|
String |
serviceBusRuleId()
Get the serviceBusRuleId property: The service bus rule Id of the diagnostic setting.
|
String |
storageAccountId()
Get the storageAccountId property: The resource ID of the storage account to which you would like to send
Diagnostic Logs.
|
void |
validate()
Validates the instance.
|
DiagnosticSettingsResourceInner |
withEventHubAuthorizationRuleId(String eventHubAuthorizationRuleId)
Set the eventHubAuthorizationRuleId property: The resource Id for the event hub authorization rule.
|
DiagnosticSettingsResourceInner |
withEventHubName(String eventHubName)
Set the eventHubName property: The name of the event hub.
|
DiagnosticSettingsResourceInner |
withLogAnalyticsDestinationType(String logAnalyticsDestinationType)
Set the logAnalyticsDestinationType property: A string indicating whether the export to Log Analytics should use
the default destination type, i.e.
|
DiagnosticSettingsResourceInner |
withLogs(List<LogSettings> logs)
Set the logs property: The list of logs settings.
|
DiagnosticSettingsResourceInner |
withMetrics(List<MetricSettings> metrics)
Set the metrics property: The list of metric settings.
|
DiagnosticSettingsResourceInner |
withServiceBusRuleId(String serviceBusRuleId)
Set the serviceBusRuleId property: The service bus rule Id of the diagnostic setting.
|
DiagnosticSettingsResourceInner |
withStorageAccountId(String storageAccountId)
Set the storageAccountId property: The resource ID of the storage account to which you would like to send
Diagnostic Logs.
|
DiagnosticSettingsResourceInner |
withWorkspaceId(String workspaceId)
Set the workspaceId property: The full ARM resource ID of the Log Analytics workspace to which you would like to
send Diagnostic Logs.
|
String |
workspaceId()
Get the workspaceId property: The full ARM resource ID of the Log Analytics workspace to which you would like to
send Diagnostic Logs.
|
public String storageAccountId()
public DiagnosticSettingsResourceInner withStorageAccountId(String storageAccountId)
storageAccountId - the storageAccountId value to set.public String serviceBusRuleId()
public DiagnosticSettingsResourceInner withServiceBusRuleId(String serviceBusRuleId)
serviceBusRuleId - the serviceBusRuleId value to set.public String eventHubAuthorizationRuleId()
public DiagnosticSettingsResourceInner withEventHubAuthorizationRuleId(String eventHubAuthorizationRuleId)
eventHubAuthorizationRuleId - the eventHubAuthorizationRuleId value to set.public String eventHubName()
public DiagnosticSettingsResourceInner withEventHubName(String eventHubName)
eventHubName - the eventHubName value to set.public List<MetricSettings> metrics()
public DiagnosticSettingsResourceInner withMetrics(List<MetricSettings> metrics)
metrics - the metrics value to set.public List<LogSettings> logs()
public DiagnosticSettingsResourceInner withLogs(List<LogSettings> logs)
logs - the logs value to set.public String workspaceId()
public DiagnosticSettingsResourceInner withWorkspaceId(String workspaceId)
workspaceId - the workspaceId value to set.public String logAnalyticsDestinationType()
public DiagnosticSettingsResourceInner withLogAnalyticsDestinationType(String logAnalyticsDestinationType)
logAnalyticsDestinationType - the logAnalyticsDestinationType value to set.public void validate()
validate in class ProxyOnlyResourceIllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.