Class: Azure::Consumption::Mgmt::V2019_06_01::Models::Notification
- Inherits:
-
Object
- Object
- Azure::Consumption::Mgmt::V2019_06_01::Models::Notification
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-06-01/generated/azure_mgmt_consumption/models/notification.rb
Overview
The notification associated with a budget.
Instance Attribute Summary collapse
-
#contact_emails ⇒ Array<String>
to when the threshold is exceeded.
-
#contact_groups ⇒ Array<String>
to when the threshold is exceeded.
-
#contact_roles ⇒ Array<String>
to when the threshold is exceeded.
-
#enabled ⇒ Boolean
The notification is enabled or not.
-
#operator ⇒ OperatorType
include: ‘EqualTo’, ‘GreaterThan’, ‘GreaterThanOrEqualTo’.
-
#threshold ⇒ Object
sent when the cost exceeded the threshold.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Notification class as Ruby Hash.
Instance Attribute Details
#contact_emails ⇒ Array<String>
to when the threshold is exceeded.
29 30 31 |
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/notification.rb', line 29 def contact_emails @contact_emails end |
#contact_groups ⇒ Array<String>
to when the threshold is exceeded.
37 38 39 |
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/notification.rb', line 37 def contact_groups @contact_groups end |
#contact_roles ⇒ Array<String>
to when the threshold is exceeded.
33 34 35 |
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/notification.rb', line 33 def contact_roles @contact_roles end |
#enabled ⇒ Boolean
Returns The notification is enabled or not.
16 17 18 |
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/notification.rb', line 16 def enabled @enabled end |
#operator ⇒ OperatorType
include: ‘EqualTo’, ‘GreaterThan’, ‘GreaterThanOrEqualTo’
20 21 22 |
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/notification.rb', line 20 def operator @operator end |
#threshold ⇒ Object
sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.
25 26 27 |
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/notification.rb', line 25 def threshold @threshold end |
Class Method Details
.mapper ⇒ Object
Mapper for Notification class as Ruby Hash. This will be used for serialization/deserialization.
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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/2019-06-01/generated/azure_mgmt_consumption/models/notification.rb', line 44 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Notification', type: { name: 'Composite', class_name: 'Notification', model_properties: { enabled: { client_side_validation: true, required: true, serialized_name: 'enabled', type: { name: 'Boolean' } }, operator: { client_side_validation: true, required: true, serialized_name: 'operator', type: { name: 'String' } }, threshold: { client_side_validation: true, required: true, serialized_name: 'threshold', type: { name: 'Number' } }, contact_emails: { client_side_validation: true, required: true, serialized_name: 'contactEmails', constraints: { MaxItems: 50, MinItems: 1 }, type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, contact_roles: { client_side_validation: true, required: false, serialized_name: 'contactRoles', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, contact_groups: { client_side_validation: true, required: false, serialized_name: 'contactGroups', constraints: { MaxItems: 50, MinItems: 0 }, type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } } } } } end |