다음을 통해 공유


DiagnosticSettingsResourceInner Class

public final class DiagnosticSettingsResourceInner
extends ProxyResource

The diagnostic setting resource.

Constructor Summary

Constructor Description
DiagnosticSettingsResourceInner()

Creates an instance of DiagnosticSettingsResourceInner class.

Method Summary

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.

static DiagnosticSettingsResourceInner fromJson(JsonReader jsonReader)

Reads an instance of DiagnosticSettingsResourceInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

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.

String marketplacePartnerId()

Get the marketplacePartnerId property: The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.

List<MetricSettings> metrics()

Get the metrics property: The list of metric settings.

String name()

Get the name property: The name of the resource.

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.

SystemData systemData()

Get the systemData property: The system metadata related to this resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

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 withMarketplacePartnerId(String marketplacePartnerId)

Set the marketplacePartnerId property: The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.

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.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

DiagnosticSettingsResourceInner

public DiagnosticSettingsResourceInner()

Creates an instance of DiagnosticSettingsResourceInner class.

Method Details

eventHubAuthorizationRuleId

public String eventHubAuthorizationRuleId()

Get the eventHubAuthorizationRuleId property: The resource Id for the event hub authorization rule.

Returns:

the eventHubAuthorizationRuleId value.

eventHubName

public String eventHubName()

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

Returns:

the eventHubName value.

fromJson

public static DiagnosticSettingsResourceInner fromJson(JsonReader jsonReader)

Reads an instance of DiagnosticSettingsResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DiagnosticSettingsResourceInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

DiagnosticSettingsResourceInner.id()

Returns:

the id value.

logAnalyticsDestinationType

public String logAnalyticsDestinationType()

Get the logAnalyticsDestinationType property: 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: _. Possible values are: Dedicated and null (null is default.).

Returns:

the logAnalyticsDestinationType value.

logs

public List logs()

Get the logs property: The list of logs settings.

Returns:

the logs value.

marketplacePartnerId

public String marketplacePartnerId()

Get the marketplacePartnerId property: The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.

Returns:

the marketplacePartnerId value.

metrics

public List metrics()

Get the metrics property: The list of metric settings.

Returns:

the metrics value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DiagnosticSettingsResourceInner.name()

Returns:

the name value.

serviceBusRuleId

public String serviceBusRuleId()

Get the serviceBusRuleId property: 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 storageAccountId property: The resource ID of the storage account to which you would like to send Diagnostic Logs.

Returns:

the storageAccountId value.

systemData

public SystemData systemData()

Get the systemData property: The system metadata related to this resource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DiagnosticSettingsResourceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

DiagnosticSettingsResourceInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withEventHubAuthorizationRuleId

public DiagnosticSettingsResourceInner withEventHubAuthorizationRuleId(String eventHubAuthorizationRuleId)

Set the eventHubAuthorizationRuleId property: 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 eventHubName property: 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 the logAnalyticsDestinationType property: 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: _. 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 logs property: The list of logs settings.

Parameters:

logs - the logs value to set.

Returns:

the DiagnosticSettingsResourceInner object itself.

withMarketplacePartnerId

public DiagnosticSettingsResourceInner withMarketplacePartnerId(String marketplacePartnerId)

Set the marketplacePartnerId property: The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.

Parameters:

marketplacePartnerId - the marketplacePartnerId value to set.

Returns:

the DiagnosticSettingsResourceInner object itself.

withMetrics

public DiagnosticSettingsResourceInner withMetrics(List metrics)

Set the metrics property: 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 serviceBusRuleId property: 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 storageAccountId property: 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 workspaceId property: 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 workspaceId property: 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