Class: Azure::ARM::Insights::Models::AutoscaleProfile
- Inherits:
-
Object
- Object
- Azure::ARM::Insights::Models::AutoscaleProfile
- Includes:
- MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_insights/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.
20 21 22 |
# File 'lib/generated/azure_mgmt_insights/models/autoscale_profile.rb', line 20 def capacity @capacity end |
#fixed_date ⇒ TimeWindow
element is not used if the Recurrence element is used.
29 30 31 |
# File 'lib/generated/azure_mgmt_insights/models/autoscale_profile.rb', line 29 def fixed_date @fixed_date end |
#name ⇒ String
Returns the name of the profile.
16 17 18 |
# File 'lib/generated/azure_mgmt_insights/models/autoscale_profile.rb', line 16 def name @name end |
#recurrence ⇒ Recurrence
This element is not used if the FixedDate element is used.
33 34 35 |
# File 'lib/generated/azure_mgmt_insights/models/autoscale_profile.rb', line 33 def recurrence @recurrence end |
#rules ⇒ Array<ScaleRule>
triggers and parameters for the scaling action. A maximum of 10 rules can be specified.
25 26 27 |
# File 'lib/generated/azure_mgmt_insights/models/autoscale_profile.rb', line 25 def rules @rules end |
Class Method Details
.mapper ⇒ Object
Mapper for AutoscaleProfile class as Ruby Hash. This will be used for serialization/deserialization.
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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/generated/azure_mgmt_insights/models/autoscale_profile.rb', line 40 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 |