Class: Azure::ARM::Insights::Models::LogSettings

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

Class Method Summary collapse

Instance Attribute Details

#categoryString

this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.

Returns:

  • (String)

    Name of a Diagnostic Log category for a resource type



20
21
22
# File 'lib/generated/azure_mgmt_insights/models/log_settings.rb', line 20

def category
  @category
end

#enabledBoolean

Returns a value indicating whether this log is enabled.

Returns:

  • (Boolean)

    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_policyRetentionPolicy

Returns the retention policy for this log.

Returns:



26
27
28
# File 'lib/generated/azure_mgmt_insights/models/log_settings.rb', line 26

def retention_policy
  @retention_policy
end

Class Method Details

.mapperObject

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