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.



2763
2764
2765
2766
2767
# File 'lib/v20210820/models.rb', line 2763

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下标



2761
2762
2763
# File 'lib/v20210820/models.rb', line 2761

def ComputeExpression
  @ComputeExpression
end

#CycleStepObject

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

Parameters:

  • Items:

    比较条件列表

  • CycleStep:

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

  • ComputeExpression:

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



2761
2762
2763
# File 'lib/v20210820/models.rb', line 2761

def CycleStep
  @CycleStep
end

#ItemsObject

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

Parameters:

  • Items:

    比较条件列表

  • CycleStep:

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

  • ComputeExpression:

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



2761
2762
2763
# File 'lib/v20210820/models.rb', line 2761

def Items
  @Items
end

Instance Method Details

#deserialize(params) ⇒ Object



2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
# File 'lib/v20210820/models.rb', line 2769

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