Class: Azure::ARM::DevTestLabs::Models::CostThresholdProperties
- Inherits:
-
Object
- Object
- Azure::ARM::DevTestLabs::Models::CostThresholdProperties
- Includes:
- MsRest::JSONable, MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb
Overview
Properties of a cost threshold item.
Instance Attribute Summary collapse
-
#display_on_chart ⇒ CostThresholdStatus
displayed on cost charts.
-
#notification_sent ⇒ String
sent for this threshold.
-
#percentage_threshold ⇒ PercentageCostThresholdProperties
cost threshold.
-
#send_notification_when_exceeded ⇒ CostThresholdStatus
sent when this threshold is exceeded.
-
#threshold_id ⇒ String
The ID of the cost threshold item.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for CostThresholdProperties class as Ruby Hash.
Instance Attribute Details
#display_on_chart ⇒ CostThresholdStatus
displayed on cost charts. Possible values include: ‘Enabled’, ‘Disabled’
26 27 28 |
# File 'lib/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb', line 26 def display_on_chart @display_on_chart end |
#notification_sent ⇒ String
sent for this threshold.
35 36 37 |
# File 'lib/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb', line 35 def notification_sent @notification_sent end |
#percentage_threshold ⇒ PercentageCostThresholdProperties
cost threshold.
21 22 23 |
# File 'lib/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb', line 21 def percentage_threshold @percentage_threshold end |
#send_notification_when_exceeded ⇒ CostThresholdStatus
sent when this threshold is exceeded. Possible values include: ‘Enabled’, ‘Disabled’
31 32 33 |
# File 'lib/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb', line 31 def send_notification_when_exceeded @send_notification_when_exceeded end |
#threshold_id ⇒ String
Returns The ID of the cost threshold item.
17 18 19 |
# File 'lib/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb', line 17 def threshold_id @threshold_id end |
Class Method Details
.mapper ⇒ Object
Mapper for CostThresholdProperties class as Ruby Hash. This will be used for serialization/deserialization.
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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb', line 42 def self.mapper() { required: false, serialized_name: 'CostThresholdProperties', type: { name: 'Composite', class_name: 'CostThresholdProperties', model_properties: { threshold_id: { required: false, serialized_name: 'thresholdId', type: { name: 'String' } }, percentage_threshold: { required: false, serialized_name: 'percentageThreshold', type: { name: 'Composite', class_name: 'PercentageCostThresholdProperties' } }, display_on_chart: { required: false, serialized_name: 'displayOnChart', type: { name: 'String' } }, send_notification_when_exceeded: { required: false, serialized_name: 'sendNotificationWhenExceeded', type: { name: 'String' } }, notification_sent: { required: false, serialized_name: 'NotificationSent', type: { name: 'String' } } } } } end |