Class: Azure::ARM::Monitor::Models::AutoscaleProfile
- Inherits:
-
Object
- Object
- Azure::ARM::Monitor::Models::AutoscaleProfile
- Includes:
- MsRest::JSONable, MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_monitor/models/autoscale_profile.rb
Overview
Autoscale profile.
Instance Attribute Summary collapse
-
#capacity ⇒ ScaleCapacity
this profile.
-
#fixed_date ⇒ TimeWindow
element is not used if the Recurrence element is used.
-
#name ⇒ String
The name of the profile.
-
#recurrence ⇒ Recurrence
This element is not used if the FixedDate element is used.
-
#rules ⇒ Array<ScaleRule>
triggers and parameters for the scaling action.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for AutoscaleProfile class as Ruby Hash.
Instance Attribute Details
#capacity ⇒ ScaleCapacity
this profile.
21 22 23 |
# File 'lib/generated/azure_mgmt_monitor/models/autoscale_profile.rb', line 21 def capacity @capacity end |
#fixed_date ⇒ TimeWindow
element is not used if the Recurrence element is used.
30 31 32 |
# File 'lib/generated/azure_mgmt_monitor/models/autoscale_profile.rb', line 30 def fixed_date @fixed_date end |
#name ⇒ String
Returns the name of the profile.
17 18 19 |
# File 'lib/generated/azure_mgmt_monitor/models/autoscale_profile.rb', line 17 def name @name end |
#recurrence ⇒ Recurrence
This element is not used if the FixedDate element is used.
34 35 36 |
# File 'lib/generated/azure_mgmt_monitor/models/autoscale_profile.rb', line 34 def recurrence @recurrence end |
#rules ⇒ Array<ScaleRule>
triggers and parameters for the scaling action. A maximum of 10 rules can be specified.
26 27 28 |
# File 'lib/generated/azure_mgmt_monitor/models/autoscale_profile.rb', line 26 def rules @rules end |
Class Method Details
.mapper ⇒ Object
Mapper for AutoscaleProfile class as Ruby Hash. This will be used for serialization/deserialization.
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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/generated/azure_mgmt_monitor/models/autoscale_profile.rb', line 41 def self.mapper() { required: false, serialized_name: 'AutoscaleProfile', type: { name: 'Composite', class_name: 'AutoscaleProfile', model_properties: { name: { required: true, serialized_name: 'name', type: { name: 'String' } }, capacity: { required: true, serialized_name: 'capacity', type: { name: 'Composite', class_name: 'ScaleCapacity' } }, rules: { required: true, serialized_name: 'rules', type: { name: 'Sequence', element: { required: false, serialized_name: 'ScaleRuleElementType', type: { name: 'Composite', class_name: 'ScaleRule' } } } }, fixed_date: { required: false, serialized_name: 'fixedDate', type: { name: 'Composite', class_name: 'TimeWindow' } }, recurrence: { required: false, serialized_name: 'recurrence', type: { name: 'Composite', class_name: 'Recurrence' } } } } } end |