Class: Azure::ARM::Insights::Models::AutoscaleNotification
- Inherits:
-
Object
- Object
- Azure::ARM::Insights::Models::AutoscaleNotification
- Includes:
- MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_insights/models/autoscale_notification.rb
Overview
Autoscale notification.
Instance Attribute Summary collapse
-
#email ⇒ EmailNotification
The email notification.
-
#operation ⇒ String
value must be “scale”.
-
#webhooks ⇒ Array<WebhookNotification>
notifications.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for AutoscaleNotification class as Ruby Hash.
Instance Attribute Details
#email ⇒ EmailNotification
Returns the email notification.
20 21 22 |
# File 'lib/generated/azure_mgmt_insights/models/autoscale_notification.rb', line 20 def email @email end |
#operation ⇒ String
value must be “scale”. Default value: ‘Scale’ .
17 18 19 |
# File 'lib/generated/azure_mgmt_insights/models/autoscale_notification.rb', line 17 def operation @operation end |
#webhooks ⇒ Array<WebhookNotification>
notifications.
24 25 26 |
# File 'lib/generated/azure_mgmt_insights/models/autoscale_notification.rb', line 24 def webhooks @webhooks end |
Class Method Details
.mapper ⇒ Object
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 |