Class: Azure::ARM::Monitor::Models::RetentionPolicy
- Inherits:
-
Object
- Object
- Azure::ARM::Monitor::Models::RetentionPolicy
- Includes:
- MsRest::JSONable, MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_monitor/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.
22 23 24 |
# File 'lib/generated/azure_mgmt_monitor/models/retention_policy.rb', line 22 def days @days end |
#enabled ⇒ Boolean
enabled.
18 19 20 |
# File 'lib/generated/azure_mgmt_monitor/models/retention_policy.rb', line 18 def enabled @enabled end |
Class Method Details
.mapper ⇒ Object
Mapper for RetentionPolicy class as Ruby Hash. This will be used for serialization/deserialization.
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 54 55 56 57 |
# File 'lib/generated/azure_mgmt_monitor/models/retention_policy.rb', line 29 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', constraints: { InclusiveMinimum: 0 }, type: { name: 'Number' } } } } } end |