Class LogSettings
java.lang.Object
com.microsoft.azure.management.monitor.LogSettings
Part of MultiTenantDiagnosticSettings. Specifies the settings for a
particular log.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncategory()
Get name of a Diagnostic Log category for a resource type this setting is applied to.boolean
enabled()
Get a value indicating whether this log is enabled.Get the retention policy for this log.withCategory
(String category) Set name of a Diagnostic Log category for a resource type this setting is applied to.withEnabled
(boolean enabled) Set a value indicating whether this log is enabled.withRetentionPolicy
(RetentionPolicy retentionPolicy) Set the retention policy for this log.
-
Constructor Details
-
LogSettings
public LogSettings()
-
-
Method Details
-
category
Get name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.- Returns:
- the category value
-
withCategory
Set name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.- Parameters:
category
- the category value to set- Returns:
- the LogSettings object itself.
-
enabled
public boolean enabled()Get a value indicating whether this log is enabled.- Returns:
- the enabled value
-
withEnabled
Set a value indicating whether this log is enabled.- Parameters:
enabled
- the enabled value to set- Returns:
- the LogSettings object itself.
-
retentionPolicy
Get the retention policy for this log.- Returns:
- the retentionPolicy value
-
withRetentionPolicy
Set the retention policy for this log.- Parameters:
retentionPolicy
- the retentionPolicy value to set- Returns:
- the LogSettings object itself.
-