class Azure::ServiceFabric::V6_4_0_36::Models::ApplicationCapacityDescription
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
Attributes
@return [Array<ApplicationMetricDescription>] List of application capacity metric description.
@return [Integer] The maximum number of nodes where Service Fabric will 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 .
@return [Integer] The minimum number of nodes where Service Fabric will 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.
Public Class Methods
Mapper for ApplicationCapacityDescription
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/6.4.0.36/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