class Azure::Consumption::Mgmt::V2017_12_30_preview::Models::Notification
The notification associated with a budget.
Attributes
contact_emails[RW]
@return [Array<String>] Email addresses to send the budget notification to when the threshold is exceeded.
contact_roles[RW]
@return [Array<String>] Contact roles to send the budget notification to when the threshold is exceeded.
enabled[RW]
@return [Boolean] The notification is enabled or not.
operator[RW]
@return [OperatorType] The comparison operator. Possible values include: 'EqualTo', 'GreaterThan', 'GreaterThanOrEqualTo'
threshold[RW]
@return Threshold value associated with a notification. Notification
is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.
Public Class Methods
mapper()
click to toggle source
Mapper for Notification
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/notification.rb, line 40 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' } } } } } } } end