DiagnosticSettingsResourceInner Class

  • java.lang.Object
    • ProxyResource
      • ProxyOnlyResource
        • com.microsoft.azure.management.monitor.implementation.DiagnosticSettingsResourceInner

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<LogSettings> logs()

Get the list of logs settings.

List<MetricSettings> 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.

DiagnosticSettingsResourceInner withEventHubAuthorizationRuleId(String eventHubAuthorizationRuleId)

Set the resource Id for the event hub authorization rule.

DiagnosticSettingsResourceInner withEventHubName(String eventHubName)

Set the name of the event hub. If none is specified, the default event hub will be selected.

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.).

DiagnosticSettingsResourceInner withLogs(List<LogSettings> logs)

Set the list of logs settings.

DiagnosticSettingsResourceInner withMetrics(List<MetricSettings> metrics)

Set the list of metric settings.

DiagnosticSettingsResourceInner withServiceBusRuleId(String serviceBusRuleId)

Set the service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.

DiagnosticSettingsResourceInner withStorageAccountId(String storageAccountId)

Set the resource ID of the storage account to which you would like to send Diagnostic Logs.

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.

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:

the eventHubAuthorizationRuleId value

eventHubName

public String eventHubName()

Get the name of the event hub. If none is specified, the default event hub will be selected.

Returns:

the eventHubName value

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:

the logAnalyticsDestinationType value

logs

public List logs()

Get the list of logs settings.

Returns:

the logs value

metrics

public List metrics()

Get the list of metric settings.

Returns:

the metrics value

serviceBusRuleId

public String serviceBusRuleId()

Get the service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.

Returns:

the serviceBusRuleId value

storageAccountId

public String storageAccountId()

Get the resource ID of the storage account to which you would like to send Diagnostic Logs.

Returns:

the storageAccountId value

withEventHubAuthorizationRuleId

public DiagnosticSettingsResourceInner withEventHubAuthorizationRuleId(String eventHubAuthorizationRuleId)

Set the resource Id for the event hub authorization rule.

Parameters:

eventHubAuthorizationRuleId - the eventHubAuthorizationRuleId value to set

Returns:

the DiagnosticSettingsResourceInner object itself.

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:

eventHubName - the eventHubName value to set

Returns:

the DiagnosticSettingsResourceInner object itself.

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:

logAnalyticsDestinationType - the logAnalyticsDestinationType value to set

Returns:

the DiagnosticSettingsResourceInner object itself.

withLogs

public DiagnosticSettingsResourceInner withLogs(List logs)

Set the list of logs settings.

Parameters:

logs - the logs value to set

Returns:

the DiagnosticSettingsResourceInner object itself.

withMetrics

public DiagnosticSettingsResourceInner withMetrics(List metrics)

Set the list of metric settings.

Parameters:

metrics - the metrics value to set

Returns:

the DiagnosticSettingsResourceInner object itself.

withServiceBusRuleId

public DiagnosticSettingsResourceInner withServiceBusRuleId(String serviceBusRuleId)

Set the service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.

Parameters:

serviceBusRuleId - the serviceBusRuleId value to set

Returns:

the DiagnosticSettingsResourceInner object itself.

withStorageAccountId

public DiagnosticSettingsResourceInner withStorageAccountId(String storageAccountId)

Set the resource ID of the storage account to which you would like to send Diagnostic Logs.

Parameters:

storageAccountId - the storageAccountId value to set

Returns:

the DiagnosticSettingsResourceInner object itself.

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:

workspaceId - the workspaceId value to set

Returns:

the DiagnosticSettingsResourceInner object itself.

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:

the workspaceId value

Applies to