Class: Azure::ARM::Insights::Models::AutoscaleNotification

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/generated/azure_mgmt_insights/models/autoscale_notification.rb

Overview

Autoscale notification.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#emailEmailNotification

Returns the email notification.

Returns:



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

def email
  @email
end

#operationString

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

Returns:

  • (String)

    the operation associated with the notification and its



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

def operation
  @operation
end

#webhooksArray<WebhookNotification>

notifications.

Returns:



24
25
26
# File 'lib/generated/azure_mgmt_insights/models/autoscale_notification.rb', line 24

def webhooks
  @webhooks
end

Class Method Details

.mapperObject

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



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

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