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.



2939
2940
2941
2942
2943
# File 'lib/v20210820/models.rb', line 2939

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



2937
2938
2939
# File 'lib/v20210820/models.rb', line 2937

def ComputeExpression
  @ComputeExpression
end

#CycleStepObject

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

Parameters:

  • Items:

    比较条件列表

  • CycleStep:

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

  • ComputeExpression:

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



2937
2938
2939
# File 'lib/v20210820/models.rb', line 2937

def CycleStep
  @CycleStep
end

#ItemsObject

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

Parameters:

  • Items:

    比较条件列表

  • CycleStep:

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

  • ComputeExpression:

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



2937
2938
2939
# File 'lib/v20210820/models.rb', line 2937

def Items
  @Items
end

Instance Method Details

#deserialize(params) ⇒ Object



2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
# File 'lib/v20210820/models.rb', line 2945

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