ApplicationUpdateDescription Class

Describes the parameters for updating an application instance.

Inheritance
ApplicationUpdateDescription

Constructor

ApplicationUpdateDescription(*, flags: Optional[str] = None, remove_application_capacity: bool = False, minimum_nodes: Optional[int] = None, maximum_nodes: int = 0, application_metrics=None, **kwargs)

Parameters

flags
str
Required

Flags indicating whether other properties are set. Each of the associated properties corresponds to a flag, specified below, which, if set, indicate that the property is specified. If flags are not specified for a certain property, the property will not be updated even if the new value is provided. This property can be a combination of those flags obtained using bitwise 'OR' operator. Exception is RemoveApplicationCapacity which cannot be specified along with other parameters. For example, if the provided value is 3 then the flags for MinimumNodes (1) and MaximumNodes (2) are set.

  • None - Does not indicate any other properties are set. The value is 0.
  • MinimumNodes - Indicates whether the MinimumNodes property is set. The value is 1.
  • MaximumNodes - Indicates whether the MinimumNodes property is set. The value is 2.
  • ApplicationMetrics - Indicates whether the ApplicationMetrics property is set. The value is 4.
remove_application_capacity
bool
Required

Used to clear all parameters related to Application Capacity for this application. | It is not possible to specify this parameter together with other Application Capacity parameters. Default value: False .

minimum_nodes
<xref:long>
Required

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.

maximum_nodes
<xref:long>
Required

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 .

application_metrics
list[ApplicationMetricDescription]
Required

List of application capacity metric description.