Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the ApplicationUpgradeProgressInfo class.
 /// </summary>
 /// <param name="name">The name of the target application, including the 'fabric:' URI scheme.</param>
 /// <param name="typeName">The application type name as defined in the application manifest.</param>
 /// <param name="targetApplicationTypeVersion">The target application type version (found in the application manifest)
 /// for the application upgrade.</param>
 /// <param name="upgradeDomains">List of upgrade domains and their statuses. Not applicable to node-by-node
 /// upgrades.</param>
 /// <param name="upgradeUnits">List of upgrade units and their statuses.</param>
 /// <param name="upgradeState">The state of the upgrade domain. Possible values include: 'Invalid',
 /// 'RollingBackInProgress', 'RollingBackCompleted', 'RollingForwardPending', 'RollingForwardInProgress',
 /// 'RollingForwardCompleted', 'Failed'</param>
 /// <param name="nextUpgradeDomain">The name of the next upgrade domain to be processed. Not applicable to node-by-node
 /// upgrades.</param>
 /// <param name="rollingUpgradeMode">The mode used to monitor health during a rolling upgrade. The values are
 /// UnmonitoredAuto, UnmonitoredManual, Monitored, and UnmonitoredDeferred. Possible values include: 'Invalid',
 /// 'UnmonitoredAuto', 'UnmonitoredManual', 'Monitored', 'UnmonitoredDeferred'</param>
 /// <param name="upgradeDescription">Describes the parameters for an application upgrade. Note that upgrade description
 /// replaces the existing application description. This means that if the parameters are not specified, the existing
 /// parameters on the applications will be overwritten with the empty parameters list. This would result in the
 /// application using the default value of the parameters from the application manifest. If you do not want to change
 /// any existing parameter values, please get the application parameters first using the GetApplicationInfo query and
 /// then supply those values as Parameters in this ApplicationUpgradeDescription.</param>
 /// <param name="upgradeDurationInMilliseconds">The estimated total amount of time spent processing the overall
 /// upgrade.</param>
 /// <param name="upgradeDomainDurationInMilliseconds">The estimated total amount of time spent processing the current
 /// upgrade domain.</param>
 /// <param name="unhealthyEvaluations">List of health evaluations that resulted in the current aggregated health
 /// state.</param>
 /// <param name="currentUpgradeDomainProgress">Information about the current in-progress upgrade domain. Not applicable
 /// to node-by-node upgrades.</param>
 /// <param name="currentUpgradeUnitsProgress">Information about the current in-progress upgrade units.</param>
 /// <param name="startTimestampUtc">The estimated UTC datetime when the upgrade started.</param>
 /// <param name="failureTimestampUtc">The estimated UTC datetime when the upgrade failed and FailureAction was
 /// executed.</param>
 /// <param name="failureReason">The cause of an upgrade failure that resulted in FailureAction being executed. Possible
 /// values include: 'None', 'Interrupted', 'HealthCheck', 'UpgradeDomainTimeout', 'OverallUpgradeTimeout'</param>
 /// <param name="upgradeDomainProgressAtFailure">Information about the upgrade domain progress at the time of upgrade
 /// failure.</param>
 /// <param name="upgradeStatusDetails">Additional detailed information about the status of the pending upgrade.</param>
 /// <param name="isNodeByNode">Indicates whether this upgrade is node-by-node.</param>
 public ApplicationUpgradeProgressInfo(
     string name     = default(string),
     string typeName = default(string),
     string targetApplicationTypeVersion            = default(string),
     IEnumerable <UpgradeDomainInfo> upgradeDomains = default(IEnumerable <UpgradeDomainInfo>),
     IEnumerable <UpgradeUnitInfo> upgradeUnits     = default(IEnumerable <UpgradeUnitInfo>),
     UpgradeState?upgradeState      = default(UpgradeState?),
     string nextUpgradeDomain       = default(string),
     UpgradeMode?rollingUpgradeMode = Common.UpgradeMode.UnmonitoredAuto,
     ApplicationUpgradeDescription upgradeDescription              = default(ApplicationUpgradeDescription),
     string upgradeDurationInMilliseconds                          = default(string),
     string upgradeDomainDurationInMilliseconds                    = default(string),
     IEnumerable <HealthEvaluationWrapper> unhealthyEvaluations    = default(IEnumerable <HealthEvaluationWrapper>),
     CurrentUpgradeDomainProgressInfo currentUpgradeDomainProgress = default(CurrentUpgradeDomainProgressInfo),
     CurrentUpgradeUnitsProgressInfo currentUpgradeUnitsProgress   = default(CurrentUpgradeUnitsProgressInfo),
     string startTimestampUtc    = default(string),
     string failureTimestampUtc  = default(string),
     FailureReason?failureReason = default(FailureReason?),
     FailureUpgradeDomainProgressInfo upgradeDomainProgressAtFailure = default(FailureUpgradeDomainProgressInfo),
     string upgradeStatusDetails = default(string),
     bool?isNodeByNode           = false)
 {
     this.Name     = name;
     this.TypeName = typeName;
     this.TargetApplicationTypeVersion = targetApplicationTypeVersion;
     this.UpgradeDomains                      = upgradeDomains;
     this.UpgradeUnits                        = upgradeUnits;
     this.UpgradeState                        = upgradeState;
     this.NextUpgradeDomain                   = nextUpgradeDomain;
     this.RollingUpgradeMode                  = rollingUpgradeMode;
     this.UpgradeDescription                  = upgradeDescription;
     this.UpgradeDurationInMilliseconds       = upgradeDurationInMilliseconds;
     this.UpgradeDomainDurationInMilliseconds = upgradeDomainDurationInMilliseconds;
     this.UnhealthyEvaluations                = unhealthyEvaluations;
     this.CurrentUpgradeDomainProgress        = currentUpgradeDomainProgress;
     this.CurrentUpgradeUnitsProgress         = currentUpgradeUnitsProgress;
     this.StartTimestampUtc                   = startTimestampUtc;
     this.FailureTimestampUtc                 = failureTimestampUtc;
     this.FailureReason                       = failureReason;
     this.UpgradeDomainProgressAtFailure      = upgradeDomainProgressAtFailure;
     this.UpgradeStatusDetails                = upgradeStatusDetails;
     this.IsNodeByNode                        = isNodeByNode;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the ClusterUpgradeProgressObject class.
 /// </summary>
 /// <param name="codeVersion">The ServiceFabric code version of the cluster.</param>
 /// <param name="configVersion">The cluster configuration version (specified in the cluster manifest).</param>
 /// <param name="upgradeDomains">List of upgrade domains and their statuses. Not applicable to node-by-node
 /// upgrades.</param>
 /// <param name="upgradeUnits">List of upgrade units and their statuses.</param>
 /// <param name="upgradeState">The state of the upgrade domain. Possible values include: 'Invalid',
 /// 'RollingBackInProgress', 'RollingBackCompleted', 'RollingForwardPending', 'RollingForwardInProgress',
 /// 'RollingForwardCompleted', 'Failed'</param>
 /// <param name="nextUpgradeDomain">The name of the next upgrade domain to be processed. Not applicable to node-by-node
 /// upgrades.</param>
 /// <param name="rollingUpgradeMode">The mode used to monitor health during a rolling upgrade. The values are
 /// UnmonitoredAuto, UnmonitoredManual, Monitored, and UnmonitoredDeferred. Possible values include: 'Invalid',
 /// 'UnmonitoredAuto', 'UnmonitoredManual', 'Monitored', 'UnmonitoredDeferred'</param>
 /// <param name="upgradeDescription">Represents a ServiceFabric cluster upgrade</param>
 /// <param name="upgradeDurationInMilliseconds">The estimated elapsed time spent processing the current overall
 /// upgrade.</param>
 /// <param name="upgradeDomainDurationInMilliseconds">The estimated elapsed time spent processing the current upgrade
 /// domain. Not applicable to node-by-node upgrades.</param>
 /// <param name="unhealthyEvaluations">List of health evaluations that resulted in the current aggregated health
 /// state.</param>
 /// <param name="currentUpgradeDomainProgress">Information about the current in-progress upgrade domain. Not applicable
 /// to node-by-node upgrades.</param>
 /// <param name="currentUpgradeUnitsProgress">Information about the current in-progress upgrade units.</param>
 /// <param name="startTimestampUtc">The start time of the upgrade in UTC.</param>
 /// <param name="failureTimestampUtc">The failure time of the upgrade in UTC.</param>
 /// <param name="failureReason">The cause of an upgrade failure that resulted in FailureAction being executed. Possible
 /// values include: 'None', 'Interrupted', 'HealthCheck', 'UpgradeDomainTimeout', 'OverallUpgradeTimeout'</param>
 /// <param name="upgradeDomainProgressAtFailure">The detailed upgrade progress for nodes in the current upgrade domain
 /// at the point of failure. Not applicable to node-by-node upgrades.</param>
 /// <param name="isNodeByNode">Indicates whether this upgrade is node-by-node.</param>
 public ClusterUpgradeProgressObject(
     string codeVersion   = default(string),
     string configVersion = default(string),
     IEnumerable <UpgradeDomainInfo> upgradeDomains = default(IEnumerable <UpgradeDomainInfo>),
     IEnumerable <UpgradeUnitInfo> upgradeUnits     = default(IEnumerable <UpgradeUnitInfo>),
     UpgradeState?upgradeState      = default(UpgradeState?),
     string nextUpgradeDomain       = default(string),
     UpgradeMode?rollingUpgradeMode = Common.UpgradeMode.UnmonitoredAuto,
     ClusterUpgradeDescriptionObject upgradeDescription = default(ClusterUpgradeDescriptionObject),
     string upgradeDurationInMilliseconds       = default(string),
     string upgradeDomainDurationInMilliseconds = default(string),
     IEnumerable <HealthEvaluationWrapper> unhealthyEvaluations    = default(IEnumerable <HealthEvaluationWrapper>),
     CurrentUpgradeDomainProgressInfo currentUpgradeDomainProgress = default(CurrentUpgradeDomainProgressInfo),
     CurrentUpgradeUnitsProgressInfo currentUpgradeUnitsProgress   = default(CurrentUpgradeUnitsProgressInfo),
     string startTimestampUtc    = default(string),
     string failureTimestampUtc  = default(string),
     FailureReason?failureReason = default(FailureReason?),
     FailedUpgradeDomainProgressObject upgradeDomainProgressAtFailure = default(FailedUpgradeDomainProgressObject),
     bool?isNodeByNode = false)
 {
     this.CodeVersion                         = codeVersion;
     this.ConfigVersion                       = configVersion;
     this.UpgradeDomains                      = upgradeDomains;
     this.UpgradeUnits                        = upgradeUnits;
     this.UpgradeState                        = upgradeState;
     this.NextUpgradeDomain                   = nextUpgradeDomain;
     this.RollingUpgradeMode                  = rollingUpgradeMode;
     this.UpgradeDescription                  = upgradeDescription;
     this.UpgradeDurationInMilliseconds       = upgradeDurationInMilliseconds;
     this.UpgradeDomainDurationInMilliseconds = upgradeDomainDurationInMilliseconds;
     this.UnhealthyEvaluations                = unhealthyEvaluations;
     this.CurrentUpgradeDomainProgress        = currentUpgradeDomainProgress;
     this.CurrentUpgradeUnitsProgress         = currentUpgradeUnitsProgress;
     this.StartTimestampUtc                   = startTimestampUtc;
     this.FailureTimestampUtc                 = failureTimestampUtc;
     this.FailureReason                       = failureReason;
     this.UpgradeDomainProgressAtFailure      = upgradeDomainProgressAtFailure;
     this.IsNodeByNode                        = isNodeByNode;
 }