Class: Azure::ARM::Insights::Models::RetentionPolicy

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Attribute Details

#daysInteger

of 0 will retain the events indefinitely.

Returns:

  • (Integer)

    the number of days for the retention in days. A value



21
22
23
# File 'lib/generated/azure_mgmt_insights/models/retention_policy.rb', line 21

def days
  @days
end

#enabledBoolean

enabled.

Returns:

  • (Boolean)

    a value indicating whether the retention policy is



17
18
19
# File 'lib/generated/azure_mgmt_insights/models/retention_policy.rb', line 17

def enabled
  @enabled
end

Class Method Details

.mapperObject

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