DiagnosticSettingsResourceInner Class
- java.
lang. Object - ProxyResource
- ProxyOnlyResource
- com.
microsoft. azure. management. monitor. implementation. DiagnosticSettingsResourceInner
- com.
public class DiagnosticSettingsResourceInner extends ProxyOnlyResource
The diagnostic setting resource.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
eventHubAuthorizationRuleId()
Get the resource Id for the event hub authorization rule. |
String |
eventHubName()
Get the name of the event hub. If none is specified, the default event hub will be selected. |
String |
logAnalyticsDestinationType()
Get 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.). |
List<Log |
logs()
Get the list of logs settings. |
List<Metric |
metrics()
Get the list of metric settings. |
String |
serviceBusRuleId()
Get the service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility. |
String |
storageAccountId()
Get the resource ID of the storage account to which you would like to send Diagnostic Logs. |
Diagnostic |
withEventHubAuthorizationRuleId(String eventHubAuthorizationRuleId)
Set the resource Id for the event hub authorization rule. |
Diagnostic |
withEventHubName(String eventHubName)
Set the name of the event hub. If none is specified, the default event hub will be selected. |
Diagnostic |
withLogAnalyticsDestinationType(String logAnalyticsDestinationType)
Set 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.). |
Diagnostic |
withLogs(List<LogSettings> logs)
Set the list of logs settings. |
Diagnostic |
withMetrics(List<MetricSettings> metrics)
Set the list of metric settings. |
Diagnostic |
withServiceBusRuleId(String serviceBusRuleId)
Set the service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility. |
Diagnostic |
withStorageAccountId(String storageAccountId)
Set the resource ID of the storage account to which you would like to send Diagnostic Logs. |
Diagnostic |
withWorkspaceId(String workspaceId)
Set 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. |
String |
workspaceId()
Get 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. |
Method Details
eventHubAuthorizationRuleId
public String eventHubAuthorizationRuleId()
Get the resource Id for the event hub authorization rule.
Returns:
eventHubName
public String eventHubName()
Get the name of the event hub. If none is specified, the default event hub will be selected.
Returns:
logAnalyticsDestinationType
public String logAnalyticsDestinationType()
Get 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:
logs
public List
Get the list of logs settings.
Returns:
metrics
public List
Get the list of metric settings.
Returns:
serviceBusRuleId
public String serviceBusRuleId()
Get the service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
Returns:
storageAccountId
public String storageAccountId()
Get the resource ID of the storage account to which you would like to send Diagnostic Logs.
Returns:
withEventHubAuthorizationRuleId
public DiagnosticSettingsResourceInner withEventHubAuthorizationRuleId(String eventHubAuthorizationRuleId)
Set the resource Id for the event hub authorization rule.
Parameters:
Returns:
withEventHubName
public DiagnosticSettingsResourceInner withEventHubName(String eventHubName)
Set the name of the event hub. If none is specified, the default event hub will be selected.
Parameters:
Returns:
withLogAnalyticsDestinationType
public DiagnosticSettingsResourceInner withLogAnalyticsDestinationType(String logAnalyticsDestinationType)
Set 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.).
Parameters:
Returns:
withLogs
public DiagnosticSettingsResourceInner withLogs(List
Set the list of logs settings.
Parameters:
Returns:
withMetrics
public DiagnosticSettingsResourceInner withMetrics(List
Set the list of metric settings.
Parameters:
Returns:
withServiceBusRuleId
public DiagnosticSettingsResourceInner withServiceBusRuleId(String serviceBusRuleId)
Set the service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
Parameters:
Returns:
withStorageAccountId
public DiagnosticSettingsResourceInner withStorageAccountId(String storageAccountId)
Set the resource ID of the storage account to which you would like to send Diagnostic Logs.
Parameters:
Returns:
withWorkspaceId
public DiagnosticSettingsResourceInner withWorkspaceId(String workspaceId)
Set 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.
Parameters:
Returns:
workspaceId
public String workspaceId()
Get 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.
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for