Class: TencentCloud::Tse::V20201207::UpstreamHealthCheckConfig

Inherits:
Common::AbstractModel
  • Object
show all
Extended by:
Gem::Deprecate
Defined in:
lib/v20201207/models.rb

Overview

云原生网关健康检查配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enableactivehealthcheck = nil, activehealthcheck = nil, enablepassivehealthcheck = nil, passivehealthcheck = nil, successes = nil, failures = nil, timeouts = nil, healthyhttpstatuses = nil, unhealthyhttpstatuses = nil, ignorezeroweightnodes = nil, zeroweightheathcheck = nil) ⇒ UpstreamHealthCheckConfig

Returns a new instance of UpstreamHealthCheckConfig.



12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
# File 'lib/v20201207/models.rb', line 12089

def initialize(enableactivehealthcheck=nil, activehealthcheck=nil, enablepassivehealthcheck=nil, passivehealthcheck=nil, successes=nil, failures=nil, timeouts=nil, healthyhttpstatuses=nil, unhealthyhttpstatuses=nil, ignorezeroweightnodes=nil, zeroweightheathcheck=nil)
  @EnableActiveHealthCheck = enableactivehealthcheck
  @ActiveHealthCheck = activehealthcheck
  @EnablePassiveHealthCheck = enablepassivehealthcheck
  @PassiveHealthCheck = passivehealthcheck
  @Successes = successes
  @Failures = failures
  @Timeouts = timeouts
  @HealthyHttpStatuses = healthyhttpstatuses
  @UnhealthyHttpStatuses = unhealthyhttpstatuses
  @IgnoreZeroWeightNodes = ignorezeroweightnodes
  @ZeroWeightHeathCheck = zeroweightheathcheck
end

Instance Attribute Details

#ActiveHealthCheckObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • EnableActiveHealthCheck:

    开启主动健康检查

  • ActiveHealthCheck:

    主动健康检查配置

  • EnablePassiveHealthCheck:

    开启被动健康检查

  • PassiveHealthCheck:

    被动健康检查配置

  • Successes:

    连续健康阈值,单位:次

  • Failures:

    连续异常阈值,单位:次

  • Timeouts:

    超时阈值,单位:次

  • HealthyHttpStatuses:

    健康HTTP状态码

  • UnhealthyHttpStatuses:

    异常HTTP状态码

  • IgnoreZeroWeightNodes:

    健康检查监控上报的数据屏蔽权重为0的节点

  • ZeroWeightHeathCheck:

    健康检查支持权重为0节点



12084
12085
12086
# File 'lib/v20201207/models.rb', line 12084

def ActiveHealthCheck
  @ActiveHealthCheck
end

#EnableActiveHealthCheckObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • EnableActiveHealthCheck:

    开启主动健康检查

  • ActiveHealthCheck:

    主动健康检查配置

  • EnablePassiveHealthCheck:

    开启被动健康检查

  • PassiveHealthCheck:

    被动健康检查配置

  • Successes:

    连续健康阈值,单位:次

  • Failures:

    连续异常阈值,单位:次

  • Timeouts:

    超时阈值,单位:次

  • HealthyHttpStatuses:

    健康HTTP状态码

  • UnhealthyHttpStatuses:

    异常HTTP状态码

  • IgnoreZeroWeightNodes:

    健康检查监控上报的数据屏蔽权重为0的节点

  • ZeroWeightHeathCheck:

    健康检查支持权重为0节点



12084
12085
12086
# File 'lib/v20201207/models.rb', line 12084

def EnableActiveHealthCheck
  @EnableActiveHealthCheck
end

#EnablePassiveHealthCheckObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • EnableActiveHealthCheck:

    开启主动健康检查

  • ActiveHealthCheck:

    主动健康检查配置

  • EnablePassiveHealthCheck:

    开启被动健康检查

  • PassiveHealthCheck:

    被动健康检查配置

  • Successes:

    连续健康阈值,单位:次

  • Failures:

    连续异常阈值,单位:次

  • Timeouts:

    超时阈值,单位:次

  • HealthyHttpStatuses:

    健康HTTP状态码

  • UnhealthyHttpStatuses:

    异常HTTP状态码

  • IgnoreZeroWeightNodes:

    健康检查监控上报的数据屏蔽权重为0的节点

  • ZeroWeightHeathCheck:

    健康检查支持权重为0节点



12084
12085
12086
# File 'lib/v20201207/models.rb', line 12084

def EnablePassiveHealthCheck
  @EnablePassiveHealthCheck
end

#FailuresObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • EnableActiveHealthCheck:

    开启主动健康检查

  • ActiveHealthCheck:

    主动健康检查配置

  • EnablePassiveHealthCheck:

    开启被动健康检查

  • PassiveHealthCheck:

    被动健康检查配置

  • Successes:

    连续健康阈值,单位:次

  • Failures:

    连续异常阈值,单位:次

  • Timeouts:

    超时阈值,单位:次

  • HealthyHttpStatuses:

    健康HTTP状态码

  • UnhealthyHttpStatuses:

    异常HTTP状态码

  • IgnoreZeroWeightNodes:

    健康检查监控上报的数据屏蔽权重为0的节点

  • ZeroWeightHeathCheck:

    健康检查支持权重为0节点



12084
12085
12086
# File 'lib/v20201207/models.rb', line 12084

def Failures
  @Failures
end

#HealthyHttpStatusesObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • EnableActiveHealthCheck:

    开启主动健康检查

  • ActiveHealthCheck:

    主动健康检查配置

  • EnablePassiveHealthCheck:

    开启被动健康检查

  • PassiveHealthCheck:

    被动健康检查配置

  • Successes:

    连续健康阈值,单位:次

  • Failures:

    连续异常阈值,单位:次

  • Timeouts:

    超时阈值,单位:次

  • HealthyHttpStatuses:

    健康HTTP状态码

  • UnhealthyHttpStatuses:

    异常HTTP状态码

  • IgnoreZeroWeightNodes:

    健康检查监控上报的数据屏蔽权重为0的节点

  • ZeroWeightHeathCheck:

    健康检查支持权重为0节点



12084
12085
12086
# File 'lib/v20201207/models.rb', line 12084

def HealthyHttpStatuses
  @HealthyHttpStatuses
end

#IgnoreZeroWeightNodesObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • EnableActiveHealthCheck:

    开启主动健康检查

  • ActiveHealthCheck:

    主动健康检查配置

  • EnablePassiveHealthCheck:

    开启被动健康检查

  • PassiveHealthCheck:

    被动健康检查配置

  • Successes:

    连续健康阈值,单位:次

  • Failures:

    连续异常阈值,单位:次

  • Timeouts:

    超时阈值,单位:次

  • HealthyHttpStatuses:

    健康HTTP状态码

  • UnhealthyHttpStatuses:

    异常HTTP状态码

  • IgnoreZeroWeightNodes:

    健康检查监控上报的数据屏蔽权重为0的节点

  • ZeroWeightHeathCheck:

    健康检查支持权重为0节点



12084
12085
12086
# File 'lib/v20201207/models.rb', line 12084

def IgnoreZeroWeightNodes
  @IgnoreZeroWeightNodes
end

#PassiveHealthCheckObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • EnableActiveHealthCheck:

    开启主动健康检查

  • ActiveHealthCheck:

    主动健康检查配置

  • EnablePassiveHealthCheck:

    开启被动健康检查

  • PassiveHealthCheck:

    被动健康检查配置

  • Successes:

    连续健康阈值,单位:次

  • Failures:

    连续异常阈值,单位:次

  • Timeouts:

    超时阈值,单位:次

  • HealthyHttpStatuses:

    健康HTTP状态码

  • UnhealthyHttpStatuses:

    异常HTTP状态码

  • IgnoreZeroWeightNodes:

    健康检查监控上报的数据屏蔽权重为0的节点

  • ZeroWeightHeathCheck:

    健康检查支持权重为0节点



12084
12085
12086
# File 'lib/v20201207/models.rb', line 12084

def PassiveHealthCheck
  @PassiveHealthCheck
end

#SuccessesObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • EnableActiveHealthCheck:

    开启主动健康检查

  • ActiveHealthCheck:

    主动健康检查配置

  • EnablePassiveHealthCheck:

    开启被动健康检查

  • PassiveHealthCheck:

    被动健康检查配置

  • Successes:

    连续健康阈值,单位:次

  • Failures:

    连续异常阈值,单位:次

  • Timeouts:

    超时阈值,单位:次

  • HealthyHttpStatuses:

    健康HTTP状态码

  • UnhealthyHttpStatuses:

    异常HTTP状态码

  • IgnoreZeroWeightNodes:

    健康检查监控上报的数据屏蔽权重为0的节点

  • ZeroWeightHeathCheck:

    健康检查支持权重为0节点



12084
12085
12086
# File 'lib/v20201207/models.rb', line 12084

def Successes
  @Successes
end

#TimeoutsObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • EnableActiveHealthCheck:

    开启主动健康检查

  • ActiveHealthCheck:

    主动健康检查配置

  • EnablePassiveHealthCheck:

    开启被动健康检查

  • PassiveHealthCheck:

    被动健康检查配置

  • Successes:

    连续健康阈值,单位:次

  • Failures:

    连续异常阈值,单位:次

  • Timeouts:

    超时阈值,单位:次

  • HealthyHttpStatuses:

    健康HTTP状态码

  • UnhealthyHttpStatuses:

    异常HTTP状态码

  • IgnoreZeroWeightNodes:

    健康检查监控上报的数据屏蔽权重为0的节点

  • ZeroWeightHeathCheck:

    健康检查支持权重为0节点



12084
12085
12086
# File 'lib/v20201207/models.rb', line 12084

def Timeouts
  @Timeouts
end

#UnhealthyHttpStatusesObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • EnableActiveHealthCheck:

    开启主动健康检查

  • ActiveHealthCheck:

    主动健康检查配置

  • EnablePassiveHealthCheck:

    开启被动健康检查

  • PassiveHealthCheck:

    被动健康检查配置

  • Successes:

    连续健康阈值,单位:次

  • Failures:

    连续异常阈值,单位:次

  • Timeouts:

    超时阈值,单位:次

  • HealthyHttpStatuses:

    健康HTTP状态码

  • UnhealthyHttpStatuses:

    异常HTTP状态码

  • IgnoreZeroWeightNodes:

    健康检查监控上报的数据屏蔽权重为0的节点

  • ZeroWeightHeathCheck:

    健康检查支持权重为0节点



12084
12085
12086
# File 'lib/v20201207/models.rb', line 12084

def UnhealthyHttpStatuses
  @UnhealthyHttpStatuses
end

#ZeroWeightHeathCheckObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • EnableActiveHealthCheck:

    开启主动健康检查

  • ActiveHealthCheck:

    主动健康检查配置

  • EnablePassiveHealthCheck:

    开启被动健康检查

  • PassiveHealthCheck:

    被动健康检查配置

  • Successes:

    连续健康阈值,单位:次

  • Failures:

    连续异常阈值,单位:次

  • Timeouts:

    超时阈值,单位:次

  • HealthyHttpStatuses:

    健康HTTP状态码

  • UnhealthyHttpStatuses:

    异常HTTP状态码

  • IgnoreZeroWeightNodes:

    健康检查监控上报的数据屏蔽权重为0的节点

  • ZeroWeightHeathCheck:

    健康检查支持权重为0节点



12084
12085
12086
# File 'lib/v20201207/models.rb', line 12084

def ZeroWeightHeathCheck
  @ZeroWeightHeathCheck
end

Instance Method Details

#deserialize(params) ⇒ Object



12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
# File 'lib/v20201207/models.rb', line 12103

def deserialize(params)
  @EnableActiveHealthCheck = params['EnableActiveHealthCheck']
  unless params['ActiveHealthCheck'].nil?
    @ActiveHealthCheck = KongActiveHealthCheck.new
    @ActiveHealthCheck.deserialize(params['ActiveHealthCheck'])
  end
  @EnablePassiveHealthCheck = params['EnablePassiveHealthCheck']
  unless params['PassiveHealthCheck'].nil?
    @PassiveHealthCheck = KongPassiveHealthCheck.new
    @PassiveHealthCheck.deserialize(params['PassiveHealthCheck'])
  end
  @Successes = params['Successes']
  @Failures = params['Failures']
  @Timeouts = params['Timeouts']
  @HealthyHttpStatuses = params['HealthyHttpStatuses']
  @UnhealthyHttpStatuses = params['UnhealthyHttpStatuses']
  @IgnoreZeroWeightNodes = params['IgnoreZeroWeightNodes']
  @ZeroWeightHeathCheck = params['ZeroWeightHeathCheck']
end