Condividi tramite


ApplicationUpgradePolicy Class

Definition

Describes the policy for a monitored application upgrade.

public class ApplicationUpgradePolicy : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationUpgradePolicy>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationUpgradePolicy>
type ApplicationUpgradePolicy = class
    interface IJsonModel<ApplicationUpgradePolicy>
    interface IPersistableModel<ApplicationUpgradePolicy>
Public Class ApplicationUpgradePolicy
Implements IJsonModel(Of ApplicationUpgradePolicy), IPersistableModel(Of ApplicationUpgradePolicy)
Inheritance
ApplicationUpgradePolicy
Implements

Constructors

ApplicationUpgradePolicy()

Initializes a new instance of ApplicationUpgradePolicy.

Properties

ApplicationHealthPolicy

Defines a health policy used to evaluate the health of an application or one of its children entities.

ForceRestart

If true, then processes are forcefully restarted during upgrade even when the code version has not changed (the upgrade only changes configuration or data).

InstanceCloseDelayDurationInSeconds

Duration in seconds, to wait before a stateless instance is closed, to allow the active requests to drain gracefully. This would be effective when the instance is closing during the application/cluster upgrade, only for those instances which have a non-zero delay duration configured in the service description.

RecreateApplication

Determines whether the application should be recreated on update. If value=true, the rest of the upgrade policy parameters are not allowed.

RollingUpgradeMonitoringPolicy

The policy used for monitoring the application upgrade.

UpgradeMode

The mode used to monitor health during a rolling upgrade. The values are Monitored, and UnmonitoredAuto.

UpgradeReplicaSetCheckTimeout

The maximum amount of time to block processing of an upgrade domain and prevent loss of availability when there are unexpected issues. When this timeout expires, processing of the upgrade domain will proceed regardless of availability loss issues. The timeout is reset at the start of each upgrade domain. Valid values are between 0 and 42949672925 inclusive. (unsigned 32-bit integer).

Explicit Interface Implementations

IJsonModel<ApplicationUpgradePolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ApplicationUpgradePolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ApplicationUpgradePolicy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ApplicationUpgradePolicy>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ApplicationUpgradePolicy>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to