Class: Azure::ARM::Insights::Models::RetentionPolicy
- Inherits:
-
Object
- Object
- Azure::ARM::Insights::Models::RetentionPolicy
- Includes:
- MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_insights/models/retention_policy.rb
Overview
Specifies the retention policy for the log.
Instance Attribute Summary collapse
-
#days ⇒ Integer
of 0 will retain the events indefinitely.
-
#enabled ⇒ Boolean
enabled.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for RetentionPolicy class as Ruby Hash.
Instance Attribute Details
#days ⇒ Integer
of 0 will retain the events indefinitely.
21 22 23 |
# File 'lib/generated/azure_mgmt_insights/models/retention_policy.rb', line 21 def days @days end |
#enabled ⇒ Boolean
enabled.
17 18 19 |
# File 'lib/generated/azure_mgmt_insights/models/retention_policy.rb', line 17 def enabled @enabled end |
Class Method Details
.mapper ⇒ Object
Mapper for RetentionPolicy class as Ruby Hash. This will be used for serialization/deserialization.
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/generated/azure_mgmt_insights/models/retention_policy.rb', line 28 def self.mapper() { required: false, serialized_name: 'RetentionPolicy', type: { name: 'Composite', class_name: 'RetentionPolicy', model_properties: { enabled: { required: true, serialized_name: 'enabled', type: { name: 'Boolean' } }, days: { required: true, serialized_name: 'days', type: { name: 'Number' } } } } } end |