DiagnosticSettingsResourceInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. monitor. fluent. models. DiagnosticSettingsResourceInner
- com.
- com.
public final class DiagnosticSettingsResourceInner
extends ProxyResource
The diagnostic setting resource.
Constructor Summary
Constructor | Description |
---|---|
DiagnosticSettingsResourceInner() |
Creates an instance of Diagnostic |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
eventHubAuthorizationRuleId()
Get the event |
String |
eventHubName()
Get the event |
static
Diagnostic |
fromJson(JsonReader jsonReader)
Reads an instance of Diagnostic |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
logAnalyticsDestinationType()
Get the log |
List<Log |
logs()
Get the logs property: The list of logs settings. |
String |
marketplacePartnerId()
Get the marketplace |
List<Metric |
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 service |
String |
storageAccountId()
Get the storage |
System |
systemData()
Get the system |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Diagnostic |
withEventHubAuthorizationRuleId(String eventHubAuthorizationRuleId)
Set the event |
Diagnostic |
withEventHubName(String eventHubName)
Set the event |
Diagnostic |
withLogAnalyticsDestinationType(String logAnalyticsDestinationType)
Set the log |
Diagnostic |
withLogs(List<LogSettings> logs)
Set the logs property: The list of logs settings. |
Diagnostic |
withMarketplacePartnerId(String marketplacePartnerId)
Set the marketplace |
Diagnostic |
withMetrics(List<MetricSettings> metrics)
Set the metrics property: The list of metric settings. |
Diagnostic |
withServiceBusRuleId(String serviceBusRuleId)
Set the service |
Diagnostic |
withStorageAccountId(String storageAccountId)
Set the storage |
Diagnostic |
withWorkspaceId(String workspaceId)
Set the workspace |
String |
workspaceId()
Get the workspace |
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:
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:
fromJson
public static DiagnosticSettingsResourceInner fromJson(JsonReader jsonReader)
Reads an instance of DiagnosticSettingsResourceInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
DiagnosticSettingsResourceInner.id()Returns:
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:
logs
public List
Get the logs property: The list of logs settings.
Returns:
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:
metrics
public List
Get the metrics property: The list of metric settings.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
DiagnosticSettingsResourceInner.name()Returns:
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:
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:
systemData
public SystemData systemData()
Get the systemData property: The system metadata related to this resource.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
DiagnosticSettingsResourceInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
DiagnosticSettingsResourceInner.type()Returns:
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:
Returns:
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:
Returns:
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:
Returns:
withLogs
public DiagnosticSettingsResourceInner withLogs(List
Set the logs property: The list of logs settings.
Parameters:
Returns:
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:
Returns:
withMetrics
public DiagnosticSettingsResourceInner withMetrics(List
Set the metrics property: The list of metric settings.
Parameters:
Returns:
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:
Returns:
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:
Returns:
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:
Returns:
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:
Applies to
Azure SDK for Java