Class: Azure::ServiceFabric::V6_3_0_9::Models::ApplicationCapacityDescription
- Inherits:
-
Object
- Object
- Azure::ServiceFabric::V6_3_0_9::Models::ApplicationCapacityDescription
- Includes:
- MsRestAzure
- Defined in:
- lib/6.3.0.9/generated/azure_service_fabric/models/application_capacity_description.rb
Overview
Describes capacity information for services of this application. This description can be used for describing the following.
-
Reserving the capacity for the services on the nodes
-
Limiting the total number of nodes that services of this application
can run on
-
Limiting the custom capacity metrics to limit the total consumption of
this metric by the services of this application
Instance Attribute Summary collapse
-
#application_metrics ⇒ Array<ApplicationMetricDescription>
capacity metric description.
-
#maximum_nodes ⇒ Integer
reserve capacity for this application.
-
#minimum_nodes ⇒ Integer
reserve capacity for this application.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ApplicationCapacityDescription class as Ruby Hash.
Instance Attribute Details
#application_metrics ⇒ Array<ApplicationMetricDescription>
capacity metric description.
38 39 40 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/application_capacity_description.rb', line 38 def application_metrics @application_metrics end |
#maximum_nodes ⇒ Integer
reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. By default, the value of this property is zero and it means that the services can be placed on any node. Default value: 0 .
34 35 36 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/application_capacity_description.rb', line 34 def maximum_nodes @maximum_nodes end |
#minimum_nodes ⇒ Integer
reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. If this property is set to zero, no capacity will be reserved. The value of this property cannot be more than the value of the MaximumNodes property.
27 28 29 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/application_capacity_description.rb', line 27 def minimum_nodes @minimum_nodes end |
Class Method Details
.mapper ⇒ Object
Mapper for ApplicationCapacityDescription class as Ruby Hash. This will be used for serialization/deserialization.
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/6.3.0.9/generated/azure_service_fabric/models/application_capacity_description.rb', line 45 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ApplicationCapacityDescription', type: { name: 'Composite', class_name: 'ApplicationCapacityDescription', model_properties: { minimum_nodes: { client_side_validation: true, required: false, serialized_name: 'MinimumNodes', constraints: { InclusiveMinimum: 0 }, type: { name: 'Number' } }, maximum_nodes: { client_side_validation: true, required: false, serialized_name: 'MaximumNodes', default_value: 0, constraints: { InclusiveMinimum: 0 }, type: { name: 'Number' } }, application_metrics: { client_side_validation: true, required: false, serialized_name: 'ApplicationMetrics', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ApplicationMetricDescriptionElementType', type: { name: 'Composite', class_name: 'ApplicationMetricDescription' } } } } } } } end |