Class: Azure::ARM::Insights::Models::LogSettings
- Inherits:
-
Object
- Object
- Azure::ARM::Insights::Models::LogSettings
- Includes:
- MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_insights/models/log_settings.rb
Overview
Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log.
Instance Attribute Summary collapse
-
#category ⇒ String
this setting is applied to.
-
#enabled ⇒ Boolean
A value indicating whether this log is enabled.
-
#retention_policy ⇒ RetentionPolicy
The retention policy for this log.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for LogSettings class as Ruby Hash.
Instance Attribute Details
#category ⇒ String
this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.
20 21 22 |
# File 'lib/generated/azure_mgmt_insights/models/log_settings.rb', line 20 def category @category end |
#enabled ⇒ Boolean
Returns a value indicating whether this log is enabled.
23 24 25 |
# File 'lib/generated/azure_mgmt_insights/models/log_settings.rb', line 23 def enabled @enabled end |
#retention_policy ⇒ RetentionPolicy
Returns the retention policy for this log.
26 27 28 |
# File 'lib/generated/azure_mgmt_insights/models/log_settings.rb', line 26 def retention_policy @retention_policy end |
Class Method Details
.mapper ⇒ Object
Mapper for LogSettings class as Ruby Hash. This will be used for serialization/deserialization.
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/generated/azure_mgmt_insights/models/log_settings.rb', line 33 def self.mapper() { required: false, serialized_name: 'LogSettings', type: { name: 'Composite', class_name: 'LogSettings', model_properties: { category: { required: false, serialized_name: 'category', type: { name: 'String' } }, enabled: { required: true, serialized_name: 'enabled', type: { name: 'Boolean' } }, retention_policy: { required: false, serialized_name: 'retentionPolicy', type: { name: 'Composite', class_name: 'RetentionPolicy' } } } } } end |