Class: TencentCloud::Clb::V20180317::RuleHealth

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180317/models.rb

Overview

一条转发规则的健康检查状态

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(locationid = nil, domain = nil, url = nil, ruleid = nil, targets = nil) ⇒ RuleHealth

Returns a new instance of RuleHealth.



7735
7736
7737
7738
7739
7740
7741
# File 'lib/v20180317/models.rb', line 7735

def initialize(locationid=nil, domain=nil, url=nil, ruleid=nil, targets=nil)
  @LocationId = locationid
  @Domain = domain
  @Url = url
  @RuleId = ruleid
  @Targets = targets
end

Instance Attribute Details

#DomainObject

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

Parameters:

  • LocationId:

    转发规则ID

  • Domain:

    转发规则的域名

  • Url:

    转发规则的Url

  • RuleId:

    高级路由规则ID

  • Targets:

    本规则上绑定的后端服务的健康检查状态



7733
7734
7735
# File 'lib/v20180317/models.rb', line 7733

def Domain
  @Domain
end

#LocationIdObject

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

Parameters:

  • LocationId:

    转发规则ID

  • Domain:

    转发规则的域名

  • Url:

    转发规则的Url

  • RuleId:

    高级路由规则ID

  • Targets:

    本规则上绑定的后端服务的健康检查状态



7733
7734
7735
# File 'lib/v20180317/models.rb', line 7733

def LocationId
  @LocationId
end

#RuleIdObject

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

Parameters:

  • LocationId:

    转发规则ID

  • Domain:

    转发规则的域名

  • Url:

    转发规则的Url

  • RuleId:

    高级路由规则ID

  • Targets:

    本规则上绑定的后端服务的健康检查状态



7733
7734
7735
# File 'lib/v20180317/models.rb', line 7733

def RuleId
  @RuleId
end

#TargetsObject

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

Parameters:

  • LocationId:

    转发规则ID

  • Domain:

    转发规则的域名

  • Url:

    转发规则的Url

  • RuleId:

    高级路由规则ID

  • Targets:

    本规则上绑定的后端服务的健康检查状态



7733
7734
7735
# File 'lib/v20180317/models.rb', line 7733

def Targets
  @Targets
end

#UrlObject

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

Parameters:

  • LocationId:

    转发规则ID

  • Domain:

    转发规则的域名

  • Url:

    转发规则的Url

  • RuleId:

    高级路由规则ID

  • Targets:

    本规则上绑定的后端服务的健康检查状态



7733
7734
7735
# File 'lib/v20180317/models.rb', line 7733

def Url
  @Url
end

Instance Method Details

#deserialize(params) ⇒ Object



7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
# File 'lib/v20180317/models.rb', line 7743

def deserialize(params)
  @LocationId = params['LocationId']
  @Domain = params['Domain']
  @Url = params['Url']
  @RuleId = params['RuleId']
  unless params['Targets'].nil?
    @Targets = []
    params['Targets'].each do |i|
      targethealth_tmp = TargetHealth.new
      targethealth_tmp.deserialize(i)
      @Targets << targethealth_tmp
    end
  end
end