Class: Azure::ARM::Monitor::Models::ActivityLogAlertPatchBody

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_monitor/models/activity_log_alert_patch_body.rb

Overview

An activity log alert object for the body of patch operations.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#enabledBoolean

If an activity log alert is not enabled, then none of its actions will be activated. Default value: true .

Returns:

  • (Boolean)

    Indicates whether this activity log alert is enabled.



22
23
24
# File 'lib/generated/azure_mgmt_monitor/models/activity_log_alert_patch_body.rb', line 22

def enabled
  @enabled
end

#tagsHash{String => String}

Returns Resource tags.

Returns:

  • (Hash{String => String})

    Resource tags



17
18
19
# File 'lib/generated/azure_mgmt_monitor/models/activity_log_alert_patch_body.rb', line 17

def tags
  @tags
end

Class Method Details

.mapperObject

Mapper for ActivityLogAlertPatchBody 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
58
59
60
61
62
# File 'lib/generated/azure_mgmt_monitor/models/activity_log_alert_patch_body.rb', line 29

def self.mapper()
  {
    required: false,
    serialized_name: 'ActivityLogAlertPatchBody',
    type: {
      name: 'Composite',
      class_name: 'ActivityLogAlertPatchBody',
      model_properties: {
        tags: {
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        enabled: {
          required: false,
          serialized_name: 'properties.enabled',
          default_value: true,
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end