Class: TencentCloud::Wedata::V20210820::CompareRule

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

Overview

对比规则

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(items = nil, cyclestep = nil, computeexpression = nil) ⇒ CompareRule

Returns a new instance of CompareRule.



4506
4507
4508
4509
4510
# File 'lib/v20210820/models.rb', line 4506

def initialize(items=nil, cyclestep=nil, computeexpression=nil)
  @Items = items
  @CycleStep = cyclestep
  @ComputeExpression = computeexpression
end

Instance Attribute Details

#ComputeExpressionObject

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

Parameters:

  • Items:

    比较条件列表

  • CycleStep:

    周期性模板默认周期,单位秒

  • ComputeExpression:

    o 表示 或,a 表示 且,数字表示items下标



4504
4505
4506
# File 'lib/v20210820/models.rb', line 4504

def ComputeExpression
  @ComputeExpression
end

#CycleStepObject

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

Parameters:

  • Items:

    比较条件列表

  • CycleStep:

    周期性模板默认周期,单位秒

  • ComputeExpression:

    o 表示 或,a 表示 且,数字表示items下标



4504
4505
4506
# File 'lib/v20210820/models.rb', line 4504

def CycleStep
  @CycleStep
end

#ItemsObject

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

Parameters:

  • Items:

    比较条件列表

  • CycleStep:

    周期性模板默认周期,单位秒

  • ComputeExpression:

    o 表示 或,a 表示 且,数字表示items下标



4504
4505
4506
# File 'lib/v20210820/models.rb', line 4504

def Items
  @Items
end

Instance Method Details

#deserialize(params) ⇒ Object



4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
# File 'lib/v20210820/models.rb', line 4512

def deserialize(params)
  unless params['Items'].nil?
    @Items = []
    params['Items'].each do |i|
      compareruleitem_tmp = CompareRuleItem.new
      compareruleitem_tmp.deserialize(i)
      @Items << compareruleitem_tmp
    end
  end
  @CycleStep = params['CycleStep']
  @ComputeExpression = params['ComputeExpression']
end