Support not switching routes when VBR health check fails.

This commit is contained in:
sdk-team
2021-12-01 06:21:45 +00:00
parent e2a8813a1b
commit 6bdc46aefb
8 changed files with 52 additions and 28 deletions

View File

@@ -38,12 +38,13 @@ namespace AlibabaCloud
std::string linkStatus;
int healthCheckInterval;
std::string vbrInstanceId;
std::string healthCheckSourceIp;
int healthyThreshold;
std::string healthCheckSourceIp;
std::string cenId;
long packetLoss;
std::string healthCheckTargetIp;
long delay;
bool healthCheckOnly;
};

View File

@@ -35,6 +35,7 @@ namespace AlibabaCloud
struct GrantRule
{
std::string childInstanceType;
std::string orderType;
std::string cenId;
long childInstanceOwnerId;
std::string childInstanceId;

View File

@@ -45,6 +45,8 @@ namespace AlibabaCloud
void setHealthyThreshold(int healthyThreshold);
long getVbrInstanceOwnerId()const;
void setVbrInstanceOwnerId(long vbrInstanceOwnerId);
bool getHealthCheckOnly()const;
void setHealthCheckOnly(bool healthCheckOnly);
std::string getVbrInstanceRegionId()const;
void setVbrInstanceRegionId(const std::string& vbrInstanceRegionId);
std::string getResourceOwnerAccount()const;
@@ -66,6 +68,7 @@ namespace AlibabaCloud
std::string healthCheckTargetIp_;
int healthyThreshold_;
long vbrInstanceOwnerId_;
bool healthCheckOnly_;
std::string vbrInstanceRegionId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;