LogSettings Class

Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log.

All required parameters must be populated in order to send to Azure.

Inheritance
LogSettings

Constructor

LogSettings(*, enabled: bool, category: Optional[str] = None, category_group: Optional[str] = None, retention_policy: Optional[azure.mgmt.monitor.v2021_05_01_preview.models._models_py3.RetentionPolicy] = None, **kwargs)

Variables

category
str

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.

category_group
str

Name of a Diagnostic Log category group 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.

enabled
bool

Required. a value indicating whether this log is enabled.

retention_policy
<xref:$>(<xref:python-base-namespace>)RetentionPolicy

the retention policy for this log.