Class: Azure::ARM::Monitor::Models::AutoscaleNotification

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

Overview

Autoscale notification.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#emailEmailNotification

Returns the email notification.

Returns:



21
22
23
# File 'lib/generated/azure_mgmt_monitor/models/autoscale_notification.rb', line 21

def email
  @email
end

#operationString

value must be “scale”. Default value: ‘Scale’ .

Returns:

  • (String)

    the operation associated with the notification and its



18
19
20
# File 'lib/generated/azure_mgmt_monitor/models/autoscale_notification.rb', line 18

def operation
  @operation
end

#webhooksArray<WebhookNotification>

notifications.

Returns:



25
26
27
# File 'lib/generated/azure_mgmt_monitor/models/autoscale_notification.rb', line 25

def webhooks
  @webhooks
end

Class Method Details

.mapperObject

Mapper for AutoscaleNotification class as Ruby Hash. This will be used for serialization/deserialization.



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
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/generated/azure_mgmt_monitor/models/autoscale_notification.rb', line 32

def self.mapper()
  {
    required: false,
    serialized_name: 'AutoscaleNotification',
    type: {
      name: 'Composite',
      class_name: 'AutoscaleNotification',
      model_properties: {
        operation: {
          required: true,
          is_constant: true,
          serialized_name: 'operation',
          default_value: 'Scale',
          type: {
            name: 'String'
          }
        },
        email: {
          required: false,
          serialized_name: 'email',
          type: {
            name: 'Composite',
            class_name: 'EmailNotification'
          }
        },
        webhooks: {
          required: false,
          serialized_name: 'webhooks',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'WebhookNotificationElementType',
                type: {
                  name: 'Composite',
                  class_name: 'WebhookNotification'
                }
            }
          }
        }
      }
    }
  }
end