Class: Azure::ARM::Monitor::Models::AutoscaleNotification
- Inherits:
-
Object
- Object
- Azure::ARM::Monitor::Models::AutoscaleNotification
- Includes:
- MsRest::JSONable, MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_monitor/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.
21 22 23 |
# File 'lib/generated/azure_mgmt_monitor/models/autoscale_notification.rb', line 21 def email @email end |
#operation ⇒ String
value must be “scale”. Default value: ‘Scale’ .
18 19 20 |
# File 'lib/generated/azure_mgmt_monitor/models/autoscale_notification.rb', line 18 def operation @operation end |
#webhooks ⇒ Array<WebhookNotification>
notifications.
25 26 27 |
# File 'lib/generated/azure_mgmt_monitor/models/autoscale_notification.rb', line 25 def webhooks @webhooks end |
Class Method Details
.mapper ⇒ Object
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 |